forked from qt-creator/qt-creator
C++: Clarify units of a Token
This will avoid confusion when later more length and indices methods are
added.
In Token:
length() --> bytes()
begin() --> bytesBegin()
end() --> bytesEnd()
Change-Id: I244c69b022e239ee762b4114559e707f93ff344f
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -266,7 +266,7 @@ int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) const
|
||||
if (tk.is(T_EOF_SYMBOL)) {
|
||||
break;
|
||||
} else if (tk.is(T_LPAREN)) {
|
||||
return scanner.startPosition() + tk.begin();
|
||||
return scanner.startPosition() + tk.bytesBegin();
|
||||
} else if (tk.is(T_RPAREN)) {
|
||||
int matchingBrace = scanner.startOfMatchingBrace(index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user