Skip to content

Any solutions to capture effective sycl AST information #5445

Answered by Fznamznon
malixian asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexbatashev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5247 on February 01, 2022 07:44.