diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-07-31 23:53:01 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-08-19 13:34:38 +0000 |
commit | e9197468083e98392f11ee51100734243a435f91 (patch) | |
tree | 28bef2a518b9fb9239deb0d9a774fb662fc093c6 /src/libs/3rdparty/cplusplus/Symbols.h | |
parent | e920921f277fd8cbde509f92c5b3913f228da1c0 (diff) |
C++: Store template typename argument declarator type
Differentiate class from typename. Used by a follow-up commit for pretty
printing, preserving the original declarator.
Change-Id: I496505f5062abb69d5552e5422db256d49d164c4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Symbols.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Symbols.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Symbols.h b/src/libs/3rdparty/cplusplus/Symbols.h index a545644cfa..4cd8141beb 100644 --- a/src/libs/3rdparty/cplusplus/Symbols.h +++ b/src/libs/3rdparty/cplusplus/Symbols.h @@ -187,6 +187,8 @@ public: virtual ~TypenameArgument(); void setType(const FullySpecifiedType &type); + void setClassDeclarator(bool isClassDecl) { _isClassDeclarator = isClassDecl; } + bool isClassDeclarator() const { return _isClassDeclarator; } // Symbol's interface virtual FullySpecifiedType type() const; @@ -202,6 +204,7 @@ protected: private: FullySpecifiedType _type; + bool _isClassDeclarator; }; class CPLUSPLUS_EXPORT Block: public Scope |