aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/Lexer.h
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2012-08-16 19:18:20 +0200
committerLeandro Melo <leandro.melo@nokia.com>2012-08-17 15:48:02 +0200
commitb9d15f12966a98c118ea3e747eb3c67920a5cfce (patch)
tree8eda7376712fc966113b557687499dcf6572cecb /src/libs/3rdparty/cplusplus/Lexer.h
parenta5900877495acaea30b885373e8e5540883fdebc (diff)
C++: Avoid looking ahead when lexing u8"literal"
This makes things slightly more efficient. But it will be more significant when we introduce R"rawliterals" since we would avoid an even further lookahead for cases like u8R"string". Change-Id: Id4bad8b917752d23daf2f4989330434979cf602f Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Lexer.h')
-rw-r--r--src/libs/3rdparty/cplusplus/Lexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/3rdparty/cplusplus/Lexer.h b/src/libs/3rdparty/cplusplus/Lexer.h
index 8e4eab9797..c61b53c31f 100644
--- a/src/libs/3rdparty/cplusplus/Lexer.h
+++ b/src/libs/3rdparty/cplusplus/Lexer.h
@@ -94,7 +94,7 @@ private:
void scanCharLiteral(Token *tok, unsigned char hint = 0);
void scanUntilQuote(Token *tok, unsigned char quote);
void scanNumericLiteral(Token *tok);
- void scanIdentifier(Token *tok);
+ void scanIdentifier(Token *tok, unsigned extraProcessedChars = 0);
inline void yyinp()
{