mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
Formatting.
This commit is contained in:
parent
1aae35abf1
commit
8a535a1187
1 changed files with 17 additions and 17 deletions
|
@ -3486,32 +3486,32 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
consume(); // throw
|
consume(); // throw
|
||||||
consume(IToken.tLPAREN);
|
consume(IToken.tLPAREN);
|
||||||
|
|
||||||
thloop: while(true) {
|
thloop: while (true) {
|
||||||
switch (LT(1)) {
|
switch (LT(1)) {
|
||||||
case IToken.tRPAREN:
|
case IToken.tRPAREN:
|
||||||
case IToken.tEOC:
|
case IToken.tEOC:
|
||||||
endOffset= consume().getEndOffset();
|
endOffset = consume().getEndOffset();
|
||||||
break thloop;
|
break thloop;
|
||||||
case IToken.tCOMMA:
|
case IToken.tCOMMA:
|
||||||
consume();
|
consume();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
int thoffset= LA(1).getOffset();
|
int thoffset = LA(1).getOffset();
|
||||||
IASTTypeId typeId= typeId(DeclarationOptions.TYPEID);
|
IASTTypeId typeId = typeId(DeclarationOptions.TYPEID);
|
||||||
if (typeId != null) {
|
if (typeId != null) {
|
||||||
fc.addExceptionSpecificationTypeId(typeId);
|
fc.addExceptionSpecificationTypeId(typeId);
|
||||||
} else {
|
} else {
|
||||||
int thendoffset= LA(1).getOffset();
|
int thendoffset = LA(1).getOffset();
|
||||||
if (thoffset == thendoffset) {
|
if (thoffset == thendoffset) {
|
||||||
thendoffset= consume().getEndOffset();
|
thendoffset = consume().getEndOffset();
|
||||||
|
}
|
||||||
|
IASTProblem p = createProblem(IProblem.SYNTAX_ERROR, thoffset, thendoffset-thoffset);
|
||||||
|
IASTProblemTypeId typeIdProblem = createTypeIDProblem();
|
||||||
|
typeIdProblem.setProblem(p);
|
||||||
|
((ASTNode) typeIdProblem).setOffsetAndLength(((ASTNode) p));
|
||||||
|
fc.addExceptionSpecificationTypeId(typeIdProblem);
|
||||||
}
|
}
|
||||||
IASTProblem p= createProblem(IProblem.SYNTAX_ERROR, thoffset, thendoffset-thoffset);
|
break;
|
||||||
IASTProblemTypeId typeIdProblem = createTypeIDProblem();
|
|
||||||
typeIdProblem.setProblem(p);
|
|
||||||
((ASTNode) typeIdProblem).setOffsetAndLength(((ASTNode) p));
|
|
||||||
fc.addExceptionSpecificationTypeId(typeIdProblem);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue