[cfe-dev] Parent of a Stmt
edwin.vane at intel.com
Fri Nov 16 07:34:06 PST 2012
I'm not sure if there are better ways but I've seen this accomplished in the clang/tools/extra/loop-convert tool. It runs an AST traversal and produces a parent map of its own. Then you can use that map later to get the info you need. May not be suitable for your situation but it's worth a look. You can find this project at http://llvm.org/git/clang-tools-extra.git.
From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of madil90
Sent: Friday, November 16, 2012 8:46 AM
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] Parent of a Stmt
I need to find the parent of a Stmt? How can I do this in clang (I am parsing an AST)?
View this message in context: http://clang-developers.42468.n3.nabble.com/Parent-of-a-Stmt-tp4028305.html
Sent from the Clang Developers mailing list archive at Nabble.com.
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
More information about the cfe-dev