diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-24 12:54:25 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-24 13:49:02 +0100 |
commit | 8329d7db943bef3f7929d3802fc31f60e314e179 (patch) | |
tree | dabef77315dda11ce9f01250e788a4b5e044a9a4 /src/shared/cplusplus/Lexer.h | |
parent | 35be3a9f6c916ddb087628d66bb4bb4e76a1daa5 (diff) | |
download | qt-creator-8329d7db943bef3f7929d3802fc31f60e314e179.tar.gz |
Recognize C++0x lambda expressions.
Diffstat (limited to 'src/shared/cplusplus/Lexer.h')
-rw-r--r-- | src/shared/cplusplus/Lexer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/cplusplus/Lexer.h b/src/shared/cplusplus/Lexer.h index 36bb8b1285..f528455452 100644 --- a/src/shared/cplusplus/Lexer.h +++ b/src/shared/cplusplus/Lexer.h @@ -77,6 +77,9 @@ public: bool qtMocRunEnabled() const; void setQtMocRunEnabled(bool onoff); + bool cxx0xEnabled() const; + void setCxxOxEnabled(bool onoff); + bool objCEnabled() const; void setObjCEnabled(bool onoff); @@ -111,7 +114,7 @@ public: private: void scan_helper(Token *tok); void setSource(const char *firstChar, const char *lastChar); - static int classify(const char *string, int length, bool q); + static int classify(const char *string, int length, bool q, bool cxx0x); static int classifyObjCAtKeyword(const char *s, int n); static int classifyOperator(const char *string, int length); @@ -135,6 +138,7 @@ private: unsigned _scanKeywords: 1; unsigned _scanAngleStringLiteralTokens: 1; unsigned _qtMocRunEnabled: 1; + unsigned _cxx0xEnabled: 1; unsigned _objCEnabled: 1; }; |