forked from qt-creator/qt-creator
C++11: Correct scoping for scoped enums.
Fixes completion, highlighting and find usages. Change-Id: I1ea12c6a9c7a4f8ba0f9d55e31d6b7986233e7d8 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
6
src/libs/3rdparty/cplusplus/Symbols.h
vendored
6
src/libs/3rdparty/cplusplus/Symbols.h
vendored
@@ -279,10 +279,16 @@ public:
|
||||
virtual Enum *asEnumType()
|
||||
{ return this; }
|
||||
|
||||
bool isScoped() const;
|
||||
void setScoped(bool scoped);
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
|
||||
|
||||
private:
|
||||
bool _isScoped;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT Function: public Scope, public Type
|
||||
|
||||
Reference in New Issue
Block a user