forked from qt-creator/qt-creator
CPlusPlus: Provide information about the "static" specifier
... to the function type. This fixes the issue for function *definitions*. For function *declarations*, we need to amend the parser. Task-number: QTCREATORBUG-24894 Change-Id: I02043d8b974c2c64dcd739c7e05ce44fd277b5d3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
1
src/libs/3rdparty/cplusplus/Symbols.cpp
vendored
1
src/libs/3rdparty/cplusplus/Symbols.cpp
vendored
@@ -405,6 +405,7 @@ FullySpecifiedType Function::type() const
|
||||
FullySpecifiedType ty(const_cast<Function *>(this));
|
||||
ty.setConst(isConst());
|
||||
ty.setVolatile(isVolatile());
|
||||
ty.setStatic(isStatic());
|
||||
return ty;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user