mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +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(IToken.tLPAREN);
|
||||
|
||||
thloop: while(true) {
|
||||
thloop: while (true) {
|
||||
switch (LT(1)) {
|
||||
case IToken.tRPAREN:
|
||||
case IToken.tEOC:
|
||||
endOffset= consume().getEndOffset();
|
||||
endOffset = consume().getEndOffset();
|
||||
break thloop;
|
||||
case IToken.tCOMMA:
|
||||
consume();
|
||||
break;
|
||||
default:
|
||||
int thoffset= LA(1).getOffset();
|
||||
IASTTypeId typeId= typeId(DeclarationOptions.TYPEID);
|
||||
if (typeId != null) {
|
||||
fc.addExceptionSpecificationTypeId(typeId);
|
||||
} else {
|
||||
int thendoffset= LA(1).getOffset();
|
||||
if (thoffset == thendoffset) {
|
||||
thendoffset= consume().getEndOffset();
|
||||
int thoffset = LA(1).getOffset();
|
||||
IASTTypeId typeId = typeId(DeclarationOptions.TYPEID);
|
||||
if (typeId != null) {
|
||||
fc.addExceptionSpecificationTypeId(typeId);
|
||||
} else {
|
||||
int thendoffset = LA(1).getOffset();
|
||||
if (thoffset == thendoffset) {
|
||||
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);
|
||||
IASTProblemTypeId typeIdProblem = createTypeIDProblem();
|
||||
typeIdProblem.setProblem(p);
|
||||
((ASTNode) typeIdProblem).setOffsetAndLength(((ASTNode) p));
|
||||
fc.addExceptionSpecificationTypeId(typeIdProblem);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue