diff options
Diffstat (limited to 'src/shared/cplusplus/Lexer.cpp')
-rw-r--r-- | src/shared/cplusplus/Lexer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/shared/cplusplus/Lexer.cpp b/src/shared/cplusplus/Lexer.cpp index 36b2ba8b0b..3b75c68421 100644 --- a/src/shared/cplusplus/Lexer.cpp +++ b/src/shared/cplusplus/Lexer.cpp @@ -119,6 +119,12 @@ bool Lexer::qtMocRunEnabled() const void Lexer::setQtMocRunEnabled(bool onoff) { f._qtMocRunEnabled = onoff; } +bool Lexer::cxx0xEnabled() const +{ return f._cxx0xEnabled; } + +void Lexer::setCxxOxEnabled(bool onoff) +{ f._cxx0xEnabled = onoff; } + bool Lexer::objCEnabled() const { return f._objCEnabled; } @@ -680,7 +686,7 @@ void Lexer::scan_helper(Token *tok) yyinp(); int yylen = _currentChar - yytext; if (f._scanKeywords) - tok->f.kind = classify(yytext, yylen, f._qtMocRunEnabled); + tok->f.kind = classify(yytext, yylen, f._qtMocRunEnabled, f._cxx0xEnabled); else tok->f.kind = T_IDENTIFIER; |