0

我可以获得 VarDecl 声明的 CompoundStmt 吗?我阅读了文档形式 https://clang.llvm.org/doxygen/classclang_1_1VarDecl.html

但没有任何地方可以从 VarDecl 节点获取 CompoundStmt。

bool VisitCompoundStmt(CompoundStmt *node)
{
    //....
    return true;
}

bool VisitVarDecl(VarDecl *node)
{
    //....
    return true;
}

4

0 回答 0