[Uml-devel] KDE_3_3_BRANCH: kdesdk/umbrello/umbrello/classparser
Oliver Kellogg
okellogg at users.sourceforge.net
Tue Aug 10 11:37:12 UTC 2004
CVS commit by okellogg:
Backport of following fix on HEAD:
> CVS commit by okellogg:
>
> Unreopen bug 82977 for enum literals.
M +13 -6 parser.cpp 1.5.2.1
--- kdesdk/umbrello/umbrello/classparser/parser.cpp #1.5:1.5.2.1
@@ -1412,6 +1412,13 @@ bool Parser::parseEnumSpecifier( TypeSpe
ast->addEnumerator( enumerator );
+ QString comment;
while( lex->lookAhead(0) == ',' ){
- lex->nextToken();
+ comment = "";
+ advanceAndCheckTrailingComment( comment );
+ if ( !comment.isEmpty() ){
+ EnumeratorAST *lastLit = ast->enumeratorList().last();
+ if( lastLit )
+ lastLit->setComment( comment );
+ }
if( !parseEnumerator(enumerator) ){
More information about the umbrello-devel
mailing list