0

代码的 AST

源代码:

t11.a = 258;

我使用 ASTMatcher 找到了所有 DeclRefExpr

auto DeclRefExprMatcher = declRefExpr().bind("declRefExpr");

对于每一个DeclRefExpr,我都想得到它的父节点,就像图中的MemberExpr,应该怎么做呢?

4

0 回答 0