[cfe-dev] how to get AST content from CXCursor?

Lou Wynn via cfe-dev cfe-dev at lists.llvm.org
Thu Oct 25 01:02:21 PDT 2018


Hi,

I'm traversing an AST by using the CXCursorVisitor. How can I get the 
node content from the cursor? For example, for a CXCursor_BinaryOperator 
cursor, I'd like to get the binary operator itself. I guess that the 
information is included in the CXCursor struct, but I haven't found 
examples of how to use it? Any help is appreciated.

-- 
Love,
Lou

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181025/6c762491/attachment.html>


More information about the cfe-dev mailing list