[cfe-dev] Regarding parsing of comment in Clang

João Matos ripzonetriton at gmail.com
Fri Aug 2 13:06:30 PDT 2013


On Fri, Aug 2, 2013 at 8:04 PM, Arpit Sancheti <arpit.sancheti2002 at gmail.com
> wrote:

> Respected Sir/ Ma'am
> Thanks for the information, but the question is still the same that how
> can I retrieve the comments in my parser so that I can parse them.
> clang::CommentOptions::ParseAllComments will start parsing all comments but
> how can I get those comment in my parser. What are the function to retrieve
> them or I just have include the header files in which these are define.
> One more question is that ACSL have some more comment command, if I am not
> wrong then those are to be first  defined in CommentCommandList.inc
> Thanking You
> --Surbhi
>

I recently did some work to parse comments with the Clang APIs, it might
help you figure out how to start using the APIs.

https://github.com/mono/CppSharp/blob/master/src/Parser/Comments.cpp#L249



-- 
João Matos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130802/e906477b/attachment.html>


More information about the cfe-dev mailing list