[cfe-commits] [patch] \brief comment parser whitespace handling

João Matos ripzonetriton at gmail.com
Thu Aug 16 16:34:14 PDT 2012


Sure, I'll try to do that tomorrow.

On Thu, Aug 16, 2012 at 11:20 PM, João Matos <ripzonetriton at gmail.com>wrote:

> Actually I don't think this fix is correct. It will end up eating
> whitespace from a comment when the next token is not a newline.
>
> On Thu, Aug 16, 2012 at 11:09 PM, João Matos <ripzonetriton at gmail.com>wrote:
>
>> Attached is a patch that fixes a problem when handling \brief style
>> comments.
>> If the line after the first paragraph has any whitespace (following the *
>> comment tokens), then the end of the paragraph check will fail, since it
>> gets a text token, instead of an expected newline.
>>
>> Found this while trying to parse the SDL headers, so I'm attaching an
>> extract of it that shows the problem in question. It only happens on the
>> second struct (SDL_Rect).
>>
>> I'm not sure if this is the right fix, but it fixes it on this header.
>>
>> --
>> João Matos
>>
>
>
>
> --
> João Matos
>



-- 
João Matos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120817/07bec26b/attachment.html>


More information about the cfe-commits mailing list