[cfe-dev] Regarding parsing of comment in Clang
Arpit Sancheti
arpit.sancheti2002 at gmail.com
Sat Aug 3 09:29:47 PDT 2013
Respected Sir/Ma'am
I want to know how and when is the prologue/epilogue of a function
generated?
What I want to do is add a pre-condition and post-condition for every
function and every loop which is encountered in my function.
Thanks in advance
--Surbhi
On Sat, Aug 3, 2013 at 2:59 AM, Arpit Sancheti <arpit.sancheti2002 at gmail.com
> wrote:
> 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/8ff8cef0/attachment.html>
More information about the cfe-dev
mailing list