[cfe-dev] Using RecursiveASTVisitor with comment nodes

Stephen Pegoraro via cfe-dev cfe-dev at lists.llvm.org
Mon Oct 23 18:38:29 PDT 2017


I'm working on a doc-comment tool using RecursiveASTVisitor however it
doesn't seem to work with member functions named Visit[Comment
Type]Comment.
E.g. VisitFullComment never gets called. When dumping the AST for the same
source it clearly shows the comments nested under a FunctionDecl node.

Do I have to extract the comments directly from declaration nodes? Or can I
extract them independently?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171024/fac85aa6/attachment.html>


More information about the cfe-dev mailing list