aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/Token.h
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2014-10-24 14:55:43 +0200
committerFrancois Ferrand <thetypz@gmail.com>2016-03-08 17:24:22 +0000
commit41b232962a9222ddc594ef7d564041af0c476cb9 (patch)
treee38343360733bd601d388c08a9fb20ff43744023 /src/libs/3rdparty/cplusplus/Token.h
parent90571432280a36f5e9ef5da468f832cf1d973f66 (diff)
C++: fix trigraph parsing in macros.
Trigraphs must only be parsed before/during preprocessing. The preprocessor will now replace trigraphs with their standard form, and re-lexing in TranslationUnit will not try to parse any trigraph. Also added a few missing trigraphs: ??=, ??', ??! and ??-. Task-number: QTCREATORBUG-13253 Change-Id: I1723ed53b00090b878c22b83b7e963b647b65f72 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Token.h')
-rw-r--r--src/libs/3rdparty/cplusplus/Token.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/3rdparty/cplusplus/Token.h b/src/libs/3rdparty/cplusplus/Token.h
index 39a74031c9..afe732d493 100644
--- a/src/libs/3rdparty/cplusplus/Token.h
+++ b/src/libs/3rdparty/cplusplus/Token.h
@@ -371,8 +371,10 @@ public:
// The token is C++11 user-defined literal such as:
// 12_km, 0.5_Pa, 'c'_X, "abd"_L, u16"xyz"_M
unsigned userDefinedLiteral : 1;
+ // Indicates the token is a trigraph
+ unsigned trigraph : 1;
// Unused...
- unsigned pad : 2;
+ unsigned pad : 1;
// The token length in bytes and UTF16 chars.
unsigned bytes : 16;
unsigned utf16chars : 16;