-
I use the command |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
AFAIK there is no other official way to examine AST coming from clang. The AST dump you are seeing is quite big because It is possible to hack locally built clang by adding calls to |
Beta Was this translation helpful? Give feedback.
AFAIK there is no other official way to examine AST coming from clang. The AST dump you are seeing is quite big because
-ast-dump
shows it for the whole translation unit which becomes quite big together with all included standard C++ and DPC++ headers.It is possible to hack locally built clang by adding calls to
dump()
method of concrete AST nodes, but it requires some knowledge of codebase and it can be hard to achieve concrete set of dumped nodes, so please don't see it as like I'm suggesting this as a solution.