diff options
author | hjk <hjk121@nokiamail.com> | 2013-10-06 02:41:22 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-10-15 16:22:28 +0200 |
commit | 2b532c73ee96314c4af5d7ff0ecd4c31c6f81730 (patch) | |
tree | 3d7d4fc1adb7800a13fdf2ca37fee9f1ed485d76 /src/libs/3rdparty/cplusplus/Token.h | |
parent | 0a600e041afd7478aef528c61776a0fc660fd175 (diff) |
CPlusPlus: Make (sub-)languague selection more generic
Change-Id: I4e2df6992b446adec662ab07671acd41715e41fd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Token.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Token.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Token.h b/src/libs/3rdparty/cplusplus/Token.h index 3d253151bd..6107c52538 100644 --- a/src/libs/3rdparty/cplusplus/Token.h +++ b/src/libs/3rdparty/cplusplus/Token.h @@ -373,6 +373,22 @@ public: }; }; +struct LanguageFeatures +{ + LanguageFeatures() : flags(0) {} + + union { + unsigned int flags; + struct { + unsigned int qtEnabled : 1; // If Qt is used. + unsigned int qtMocRunEnabled : 1; + unsigned int qtKeywordsEnabled : 1; // If Qt is used but QT_NO_KEYWORDS defined + unsigned int cxx11Enabled : 1; + unsigned int objCEnabled : 1; + }; + }; +}; + } // namespace CPlusPlus |