[Uml-devel] kdesdk/umbrello/umbrello/classparser
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Dec 16 11:01:02 UTC 2004
CVS commit by okellogg:
parse{EnumSpecifier,Enumerator}: Skip possible comments.
M +16 -0 parser.cpp 1.10
--- kdesdk/umbrello/umbrello/classparser/parser.cpp #1.9:1.10
@@ -1394,4 +1394,12 @@ bool Parser::parseEnumSpecifier( TypeSpe
//kdDebug(9007)<< "--- tok = " << lex->lookAhead(0).text() << " -- " << "Parser::parseEnumSpecifier()" << endl;
+ QString comment;
+ while( lex->lookAhead(0) == Token_comment ) {
+ comment += lex->lookAhead(0).text();
+ lex->nextToken();
+ }
+ if( lex->lookAhead(0).isNull() )
+ return false;
+
int start = lex->index();
@@ -2133,4 +2141,12 @@ bool Parser::parseEnumerator( Enumerator
//kdDebug(9007)<< "--- tok = " << lex->lookAhead(0).text() << " -- " << "Parser::parseEnumerator()" << endl;
+ QString comment;
+ while( lex->lookAhead(0) == Token_comment ) {
+ comment += lex->lookAhead(0).text();
+ lex->nextToken();
+ }
+ if( lex->lookAhead(0).isNull() )
+ return false;
+
int start = lex->index();
More information about the umbrello-devel
mailing list