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

Attachment: BriefCommentParser.patch
Description: Binary data

/**
 *  \brief  The structure that defines a point
 *
 *  \sa SDL_EnclosePoints
 */
typedef struct
{
    int x;
    int y;
} SDL_Point;

/**
 *  \brief A rectangle, with the origin at the upper left.
 *  
 *  \sa SDL_RectEmpty
 *  \sa SDL_RectEquals
 *  \sa SDL_HasIntersection
 *  \sa SDL_IntersectRect
 *  \sa SDL_UnionRect
 *  \sa SDL_EnclosePoints
 */
typedef struct SDL_Rect
{
    int x, y;
    int w, h;
} SDL_Rect;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to