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/cplusplus/SimpleLexer.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/cplusplus/SimpleLexer.h')
-rw-r--r-- | src/libs/cplusplus/SimpleLexer.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/libs/cplusplus/SimpleLexer.h b/src/libs/cplusplus/SimpleLexer.h index dac658f01f..a730b2d42a 100644 --- a/src/libs/cplusplus/SimpleLexer.h +++ b/src/libs/cplusplus/SimpleLexer.h @@ -30,6 +30,7 @@ #define CPLUSPLUS_SIMPLELEXER_H #include <cplusplus/CPlusPlusForwardDeclarations.h> +#include <cplusplus/Token.h> #include <QString> #include <QList> @@ -48,14 +49,8 @@ public: bool skipComments() const; void setSkipComments(bool skipComments); - bool qtMocRunEnabled() const; - void setQtMocRunEnabled(bool enabled); - - bool objCEnabled() const; - void setObjCEnabled(bool onoff); - - bool cxx0xEnabled() const; - void setCxx0xEnabled(bool enabled); + LanguageFeatures languageFeatures() const { return _languageFeatures; } + void setLanguageFeatures(LanguageFeatures features) { _languageFeatures = features; } bool endedJoined() const; @@ -74,11 +69,9 @@ public: private: int _lastState; + LanguageFeatures _languageFeatures; bool _skipComments: 1; - bool _qtMocRunEnabled: 1; - bool _objCEnabled: 1; bool _endedJoined: 1; - bool _cxx0xEnabled: 1; }; } // namespace CPlusPlus |