Clang AST Interpretation

前端 未结 1 1963
忘了有多久
忘了有多久 2021-01-27 22:35

I am trying to interpret parts of the Clang AST you can see in the picture below. In short I am trying to do is to check if two variables are the same at different program point

相关标签:
1条回答
  • 2021-01-27 23:02

    Those are indeed raw pointer values.

    You most likely need to check DeclRefExpr nodes and their corresponding declarations that they reference (i.e. getDecl method). Pointer to its declaration is the hex number you are looking for.

    Happy hacking with Clang!

    0 讨论(0)
提交回复
热议问题