mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Code formatting.
This commit is contained in:
parent
62b0e8bd2e
commit
b24cf5d723
1 changed files with 3 additions and 3 deletions
|
@ -869,9 +869,9 @@ public final class CIndenter {
|
||||||
|
|
||||||
// Align parentheses
|
// Align parentheses
|
||||||
if (matchParen) {
|
if (matchParen) {
|
||||||
if (skipScope(Symbols.TokenLPAREN, Symbols.TokenRPAREN))
|
if (skipScope(Symbols.TokenLPAREN, Symbols.TokenRPAREN)) {
|
||||||
return fPosition;
|
return fPosition;
|
||||||
else {
|
} else {
|
||||||
// if we can't find the matching paren, the heuristic is to unindent
|
// if we can't find the matching paren, the heuristic is to unindent
|
||||||
// by one against the normal position
|
// by one against the normal position
|
||||||
int pos= findReferencePosition(offset, danglingElse, matchBrace, false, matchCase,
|
int pos= findReferencePosition(offset, danglingElse, matchBrace, false, matchCase,
|
||||||
|
@ -2021,7 +2021,7 @@ public final class CIndenter {
|
||||||
if (depth == 0)
|
if (depth == 0)
|
||||||
return true;
|
return true;
|
||||||
} else if (fToken == Symbols.TokenEOF) {
|
} else if (fToken == Symbols.TokenEOF) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue