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:
@@ -279,7 +279,7 @@ void Preprocessor::skipPreprocesorDirective(Token *tk)
|
||||
}
|
||||
|
||||
StringRef Preprocessor::asStringRef(const Token &tk) const
|
||||
{ return StringRef(_source.begin() + tk.begin(), tk.length()); }
|
||||
{ return StringRef(_source.begin() + tk.bytesBegin(), tk.length()); }
|
||||
|
||||
Preprocessor::Preprocessor(std::ostream &out)
|
||||
: out(out), _lexer(0), inPreprocessorDirective(false)
|
||||
|
||||
Reference in New Issue
Block a user