<div dir="ltr"><div><div>In my clang-tool, I want to do some analysis on AST after visit some specific type of Stmt Node. So I need to go to the parent AST node of current stmt. Is there any member functions of Stmt to archieve this goal?<br></div>For example, I am visiting the AST node <span style="color:rgb(255,0,0)">StringLiteral </span>"xmloption", how can I get to the Node <span style="color:rgb(255,0,0)">InitListExpr </span>"config_generic"?(I am using the VisitStringLiteral() function to visit the StringLiteral Node).<br><br><img alt="内嵌图片 1" src="cid:ii_151fc08bae923f20" height="76" width="411"><br></div>Thanks a lot!<br></div>