abstract syntax tree - Clang dump AST without debug info -
i need drop debug info ast, such from:
[oriz@ llvm_test]$ cat foo.h void foo() {} [oriz@ llvm_test]$ clang++ -cc1 foo.h -ast-dump -fcolor-diagnostics -ast-dump-filter foo dumping foo: functiondecl 0x59c1578 <foo.h:1:1, col:13> col:6 foo 'void ()' `-compoundstmt 0x59c1660 <col:12, col:13>
to:
[oriz@ llvm_test]$ clang++ -cc1 foo.h -ast-dump -fcolor-diagnostics -ast-dump-filter foo dumping foo: functiondecl foo 'void ()' `-compoundstmt
the motivation diffing between asts
i didn't find relevant cli argument of clang++
Comments
Post a Comment