1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Patch for John Camelon:

- Fixing initDeclarators for outline view
This commit is contained in:
Doug Schaefer 2003-03-07 19:45:52 +00:00
parent cecdca34fd
commit e97cc0fc46

View file

@ -466,6 +466,16 @@ c, quick);
}
}
}
else if( LT(1) == Token.tLPAREN )
{
consume(); // EAT IT!
constantExpression();
if( LT(1) == Token.tRPAREN )
consume();
}
callback.declaratorEnd( declarator );
}
@ -511,6 +521,9 @@ c, quick);
for (;;) {
switch (LT(1)) {
case Token.tLPAREN:
// temporary fix for initializer/function declaration ambiguity
if( LT(2) != Token.tINTEGER )
{
// parameterDeclarationClause
Object clause = callback.argumentsBegin(declarator);
consume();
@ -531,6 +544,7 @@ c, quick);
}
}
callback.argumentsEnd(clause);
}
break;
case Token.tLBRACKET:
consume();