forked from qt-creator/qt-creator
C++11: first set of changes for decltype.
Change-Id: I49d6ff7eb1805cd07bdfcb27bb37d4c6cadc9115 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
19
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
19
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user