forked from qt-creator/qt-creator
C++11: handle noexcept specifications.
Change-Id: I7da3affea2758b2e01124105e2521e1f2c5f6678 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
17
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
17
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
@@ -814,6 +814,23 @@ static inline int classify8(const char *s, bool q, bool x) {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (x && s[0] == 'n') {
|
||||
if (s[1] == 'o') {
|
||||
if (s[2] == 'e') {
|
||||
if (s[3] == 'x') {
|
||||
if (s[4] == 'c') {
|
||||
if (s[5] == 'e') {
|
||||
if (s[6] == 'p') {
|
||||
if (s[7] == 't') {
|
||||
return T_NOEXCEPT;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (s[0] == 'o') {
|
||||
if (s[1] == 'p') {
|
||||
if (s[2] == 'e') {
|
||||
|
||||
Reference in New Issue
Block a user