mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix problem introduce by my last patch
This commit is contained in:
parent
2474e4f8b6
commit
d3dedc7ac9
1 changed files with 7 additions and 6 deletions
|
@ -2475,13 +2475,14 @@ public abstract class Parser extends ExpressionParser implements IParser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check for optional pure virtual
|
// check for optional pure virtual
|
||||||
char[] image = LA(2).getCharImage();
|
if (LT(1) == IToken.tASSIGN && LT(2) == IToken.tINTEGER )
|
||||||
if (LT(1) == IToken.tASSIGN && LT(2) == IToken.tINTEGER
|
|
||||||
&& ( image.length == 1 && image[0] == '0' ) ) //$NON-NLS-1$
|
|
||||||
{
|
{
|
||||||
consume(IToken.tASSIGN);
|
char[] image = LA(2).getCharImage();
|
||||||
consume(IToken.tINTEGER);
|
if( image.length == 1 && image[0] == '0' ){
|
||||||
d.setPureVirtual(true);
|
consume(IToken.tASSIGN);
|
||||||
|
consume(IToken.tINTEGER);
|
||||||
|
d.setPureVirtual(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (afterCVModifier != LA(1) || LT(1) == IToken.tSEMI) {
|
if (afterCVModifier != LA(1) || LT(1) == IToken.tSEMI) {
|
||||||
// There were C++-specific clauses after
|
// There were C++-specific clauses after
|
||||||
|
|
Loading…
Add table
Reference in a new issue