[cfe-dev] Regarding parsing of comment in Clang

Arpit Sancheti arpit.sancheti2002 at gmail.com
Fri Aug 2 14:29:44 PDT 2013


Respected Sir,
Thanks for the information. Now the question arises is "how to apply
semantics rules on these comment...??". Do you have something for applying
semantics rules on comment with grammer.
Thanks in advance
--Surbhi


On Sat, Aug 3, 2013 at 2:30 AM, Arpit Sancheti <arpit.sancheti2002 at gmail.com
> wrote:

> Thanks a lot Joao, for this information I think this will guide me a lot.
> Can you also tell that to add some more comment command I have to defined
> them in CommentCommandList.inc..?
>
> --Surbhi
>
>
> On Sat, Aug 3, 2013 at 1:36 AM, João Matos <ripzonetriton at gmail.com>wrote:
>
>> 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/20130803/6773e2b9/attachment.html>


More information about the cfe-dev mailing list