diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-10 14:41:58 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-10 16:29:04 +0100 |
commit | 3f5dc36a5361c9c7e515e6213bf5c6e64e4dd7bd (patch) | |
tree | a53e577c56cdfda1ee4151084e8b82ec3540d778 /src/libs/3rdparty/cplusplus/Keywords.cpp | |
parent | 07d335b21525be20d36cb9a1fe017497184016e0 (diff) |
C++11: first set of changes for decltype.
Change-Id: I49d6ff7eb1805cd07bdfcb27bb37d4c6cadc9115
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Keywords.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Keywords.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/libs/3rdparty/cplusplus/Keywords.cpp b/src/libs/3rdparty/cplusplus/Keywords.cpp index 49c7e442d0..fd5fc7d112 100644 --- a/src/libs/3rdparty/cplusplus/Keywords.cpp +++ b/src/libs/3rdparty/cplusplus/Keywords.cpp @@ -788,7 +788,7 @@ static inline int classify8(const char *s, bool q, bool x) { if (s[5] == 'y') { if (s[6] == 'p') { if (s[7] == 'e') { - return T___TYPEOF; + return T_DECLTYPE; } } } @@ -1110,6 +1110,23 @@ static inline int classify10(const char *s, bool q, bool) { } } } + else if (s[2] == 'd') { + if (s[3] == 'e') { + if (s[4] == 'c') { + if (s[5] == 'l') { + if (s[6] == 't') { + if (s[7] == 'y') { + if (s[8] == 'p') { + if (s[9] == 'e') { + return T___DECLTYPE; + } + } + } + } + } + } + } + } else if (s[2] == 't') { if (s[3] == 'y') { if (s[4] == 'p') { |