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

João Matos ripzonetriton at gmail.com
Thu Aug 16 15:09:32 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120816/0c572977/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BriefCommentParser.patch
Type: application/octet-stream
Size: 1592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120816/0c572977/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SDL.h
Type: text/x-chdr
Size: 421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120816/0c572977/attachment.h>


More information about the cfe-commits mailing list