<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
As I understand, you should take a look at the ParentMap class and
its methods.<br>
<br>
<br>
<div class="moz-cite-prefix">01.01.2016 10:16, 周书林 via cfe-dev
пишет:<br>
</div>
<blockquote
cite="mid:CAE0pyrvmE1S9Gi5WdO-gZipDJ65nHLrCTXDPWY34tPE3DTfJyg@mail.gmail.com"
type="cite">
<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:part1.01040102.00020408@ya.ru"
width="411" height="76"><br>
</div>
Thanks a lot!<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>