diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-05-18 23:19:32 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-05-20 10:45:31 +0000 |
commit | de68ac54073cc3389abcc4cdaa0131bca7a44874 (patch) | |
tree | b47119b05b81694b142188b7164d8492ff092e85 /src/libs/3rdparty/cplusplus/FullySpecifiedType.h | |
parent | 57e3714db45920287118dddb9bc5d9df691110ec (diff) |
C++: fix code completion for decltyped type
example:
struct Foo { int bar; };
Foo foo() { return Foo; }
typedef decltype(foo()) TypedefedFooWithDecltype;
void fun()
{
decltype(foo()) decltypeFoo;
decltypeFoo.;// code completion should work here
TypedefedFooWithDecltype typedefedFooWithDecltype;
typedefedFooWithDecltype.;// code completion should work here
}
Started-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
Task-number: QTCREATORBUG-14483
Change-Id: I296ceed9d896c68cf0651265afb08a1fc42f9a68
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/FullySpecifiedType.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/FullySpecifiedType.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/FullySpecifiedType.h b/src/libs/3rdparty/cplusplus/FullySpecifiedType.h index 7526a923c9..498e190330 100644 --- a/src/libs/3rdparty/cplusplus/FullySpecifiedType.h +++ b/src/libs/3rdparty/cplusplus/FullySpecifiedType.h @@ -58,6 +58,9 @@ public: bool isAuto() const; void setAuto(bool isAuto); + bool isDecltype() const; + void setDecltype(bool isDecltype); + bool isRegister() const; void setRegister(bool isRegister); @@ -125,6 +128,7 @@ private: // storage class specifiers unsigned _isFriend: 1; unsigned _isAuto: 1; + unsigned _isDecltype: 1; unsigned _isRegister: 1; unsigned _isStatic: 1; unsigned _isExtern: 1; |