forked from qt-creator/qt-creator
Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
c67f7f6349
commit
ad9e7ccab6
@@ -263,19 +263,20 @@ int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) const
|
||||
forever {
|
||||
const Token &tk = scanner[index - 1];
|
||||
|
||||
if (tk.is(T_EOF_SYMBOL))
|
||||
if (tk.is(T_EOF_SYMBOL)) {
|
||||
break;
|
||||
else if (tk.is(T_LPAREN))
|
||||
} else if (tk.is(T_LPAREN)) {
|
||||
return scanner.startPosition() + tk.begin();
|
||||
else if (tk.is(T_RPAREN)) {
|
||||
} else if (tk.is(T_RPAREN)) {
|
||||
int matchingBrace = scanner.startOfMatchingBrace(index);
|
||||
|
||||
if (matchingBrace == index) // If no matching brace found
|
||||
return -1;
|
||||
|
||||
index = matchingBrace;
|
||||
} else
|
||||
} else {
|
||||
--index;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user