[cfe-dev] Parsing All Comments

James Dennett via cfe-dev cfe-dev at lists.llvm.org
Fri Oct 16 00:40:29 PDT 2015


On Fri, Oct 16, 2015 at 12:29 AM, Chengnian Sun via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi,
>
> I am trying to parse the comment attached to declarations. However, it
> seems that clang only parses documentation comments, but not line comments
> or block comments.
>

Can you give examples of what you're hoping to parse, and how you might
access it?


> Is there a way do enable the parser to parse all the comments?
>
> I am using LibTooling and new to it, and cannot find a way to this. Your
> help is greatly appreciated.
>
> Thank you.
>
>
You might look at CommentOptions::ParseAllComments in case that's related
to what you're trying to do.

-- James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151016/7538a5cc/attachment.html>


More information about the cfe-dev mailing list