mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Code streamlining.
This commit is contained in:
parent
253c5f1f03
commit
bc8b98729f
1 changed files with 17 additions and 16 deletions
|
@ -3441,7 +3441,9 @@ public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor,
|
||||||
try {
|
try {
|
||||||
statement.accept(this);
|
statement.accept(this);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
if (i < statementsLength - 1) {
|
if (i >= statementsLength - 1) {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
reportFormattingProblem(e);
|
reportFormattingProblem(e);
|
||||||
exitAlignments();
|
exitAlignments();
|
||||||
skipToNode(statements.get(i + 1));
|
skipToNode(statements.get(i + 1));
|
||||||
|
@ -3451,7 +3453,6 @@ public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor,
|
||||||
while (scribe.indentationLevel > indentLevel) {
|
while (scribe.indentationLevel > indentLevel) {
|
||||||
scribe.unIndent();
|
scribe.unIndent();
|
||||||
}
|
}
|
||||||
} else throw e;
|
|
||||||
}
|
}
|
||||||
previousStatement= statement;
|
previousStatement= statement;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue