diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-02 11:40:01 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-02 12:22:20 +0100 |
commit | dd4299073e55a21f593817316f7e013e02f62b4e (patch) | |
tree | 26ffa0c085ba81f16c8fa6071f9873250203902b /src/libs/3rdparty/cplusplus/Keywords.cpp | |
parent | a2f9ee870e6b17d8526f365a56bc7621abda15dc (diff) |
C++11: handle noexcept specifications.
Change-Id: I7da3affea2758b2e01124105e2521e1f2c5f6678
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 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Keywords.cpp b/src/libs/3rdparty/cplusplus/Keywords.cpp index a87a4bd7a9..a09e0f0520 100644 --- a/src/libs/3rdparty/cplusplus/Keywords.cpp +++ b/src/libs/3rdparty/cplusplus/Keywords.cpp @@ -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') { |