forked from qt-creator/qt-creator
Fix compile warnings about missing override
Task-number: QTCREATORBUG-24098 Change-Id: I9c50d070d34a198b39176f6db13bc2f95521a6a8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
1872
src/libs/3rdparty/cplusplus/AST.h
vendored
1872
src/libs/3rdparty/cplusplus/AST.h
vendored
File diff suppressed because it is too large
Load Diff
308
src/libs/3rdparty/cplusplus/Bind.h
vendored
308
src/libs/3rdparty/cplusplus/Bind.h
vendored
@@ -106,180 +106,180 @@ protected:
|
||||
FullySpecifiedType trailingReturnType(TrailingReturnTypeAST *ast, const FullySpecifiedType &init);
|
||||
const StringLiteral *asStringLiteral(const AST *ast);
|
||||
|
||||
virtual bool preVisit(AST *);
|
||||
virtual void postVisit(AST *);
|
||||
bool preVisit(AST *) override;
|
||||
void postVisit(AST *) override;
|
||||
|
||||
// AST
|
||||
virtual bool visit(ObjCSelectorArgumentAST *ast);
|
||||
virtual bool visit(GnuAttributeAST *ast);
|
||||
virtual bool visit(DeclaratorAST *ast);
|
||||
virtual bool visit(QtPropertyDeclarationItemAST *ast);
|
||||
virtual bool visit(QtInterfaceNameAST *ast);
|
||||
virtual bool visit(BaseSpecifierAST *ast);
|
||||
virtual bool visit(CtorInitializerAST *ast);
|
||||
virtual bool visit(EnumeratorAST *ast);
|
||||
virtual bool visit(DynamicExceptionSpecificationAST *ast);
|
||||
virtual bool visit(MemInitializerAST *ast);
|
||||
virtual bool visit(NestedNameSpecifierAST *ast);
|
||||
virtual bool visit(NoExceptSpecificationAST *) { return true; }
|
||||
virtual bool visit(NewArrayDeclaratorAST *ast);
|
||||
virtual bool visit(NewTypeIdAST *ast);
|
||||
virtual bool visit(OperatorAST *ast);
|
||||
virtual bool visit(ParameterDeclarationClauseAST *ast);
|
||||
virtual bool visit(TranslationUnitAST *ast);
|
||||
virtual bool visit(ObjCProtocolRefsAST *ast);
|
||||
virtual bool visit(ObjCMessageArgumentAST *ast);
|
||||
virtual bool visit(ObjCTypeNameAST *ast);
|
||||
virtual bool visit(ObjCInstanceVariablesDeclarationAST *ast);
|
||||
virtual bool visit(ObjCPropertyAttributeAST *ast);
|
||||
virtual bool visit(ObjCMessageArgumentDeclarationAST *ast);
|
||||
virtual bool visit(ObjCMethodPrototypeAST *ast);
|
||||
virtual bool visit(ObjCSynthesizedPropertyAST *ast);
|
||||
virtual bool visit(LambdaIntroducerAST *ast);
|
||||
virtual bool visit(LambdaCaptureAST *ast);
|
||||
virtual bool visit(CaptureAST *ast);
|
||||
virtual bool visit(LambdaDeclaratorAST *ast);
|
||||
virtual bool visit(TrailingReturnTypeAST *ast);
|
||||
virtual bool visit(DotDesignatorAST *) { return true; }
|
||||
virtual bool visit(BracketDesignatorAST *) { return true; }
|
||||
bool visit(ObjCSelectorArgumentAST *ast) override;
|
||||
bool visit(GnuAttributeAST *ast) override;
|
||||
bool visit(DeclaratorAST *ast) override;
|
||||
bool visit(QtPropertyDeclarationItemAST *ast) override;
|
||||
bool visit(QtInterfaceNameAST *ast) override;
|
||||
bool visit(BaseSpecifierAST *ast) override;
|
||||
bool visit(CtorInitializerAST *ast) override;
|
||||
bool visit(EnumeratorAST *ast) override;
|
||||
bool visit(DynamicExceptionSpecificationAST *ast) override;
|
||||
bool visit(MemInitializerAST *ast) override;
|
||||
bool visit(NestedNameSpecifierAST *ast) override;
|
||||
bool visit(NoExceptSpecificationAST *) override { return true; }
|
||||
bool visit(NewArrayDeclaratorAST *ast) override;
|
||||
bool visit(NewTypeIdAST *ast) override;
|
||||
bool visit(OperatorAST *ast) override;
|
||||
bool visit(ParameterDeclarationClauseAST *ast) override;
|
||||
bool visit(TranslationUnitAST *ast) override;
|
||||
bool visit(ObjCProtocolRefsAST *ast) override;
|
||||
bool visit(ObjCMessageArgumentAST *ast) override;
|
||||
bool visit(ObjCTypeNameAST *ast) override;
|
||||
bool visit(ObjCInstanceVariablesDeclarationAST *ast) override;
|
||||
bool visit(ObjCPropertyAttributeAST *ast) override;
|
||||
bool visit(ObjCMessageArgumentDeclarationAST *ast) override;
|
||||
bool visit(ObjCMethodPrototypeAST *ast) override;
|
||||
bool visit(ObjCSynthesizedPropertyAST *ast) override;
|
||||
bool visit(LambdaIntroducerAST *ast) override;
|
||||
bool visit(LambdaCaptureAST *ast) override;
|
||||
bool visit(CaptureAST *ast) override;
|
||||
bool visit(LambdaDeclaratorAST *ast) override;
|
||||
bool visit(TrailingReturnTypeAST *ast) override;
|
||||
bool visit(DotDesignatorAST *) override { return true; }
|
||||
bool visit(BracketDesignatorAST *) override { return true; }
|
||||
|
||||
// StatementAST
|
||||
virtual bool visit(QtMemberDeclarationAST *ast);
|
||||
virtual bool visit(CaseStatementAST *ast);
|
||||
virtual bool visit(CompoundStatementAST *ast);
|
||||
virtual bool visit(DeclarationStatementAST *ast);
|
||||
virtual bool visit(DoStatementAST *ast);
|
||||
virtual bool visit(ExpressionOrDeclarationStatementAST *ast);
|
||||
virtual bool visit(ExpressionStatementAST *ast);
|
||||
virtual bool visit(ForeachStatementAST *ast);
|
||||
virtual bool visit(RangeBasedForStatementAST *ast);
|
||||
virtual bool visit(ForStatementAST *ast);
|
||||
virtual bool visit(IfStatementAST *ast);
|
||||
virtual bool visit(LabeledStatementAST *ast);
|
||||
virtual bool visit(BreakStatementAST *ast);
|
||||
virtual bool visit(ContinueStatementAST *ast);
|
||||
virtual bool visit(GotoStatementAST *ast);
|
||||
virtual bool visit(ReturnStatementAST *ast);
|
||||
virtual bool visit(SwitchStatementAST *ast);
|
||||
virtual bool visit(TryBlockStatementAST *ast);
|
||||
virtual bool visit(CatchClauseAST *ast);
|
||||
virtual bool visit(WhileStatementAST *ast);
|
||||
virtual bool visit(ObjCFastEnumerationAST *ast);
|
||||
virtual bool visit(ObjCSynchronizedStatementAST *ast);
|
||||
bool visit(QtMemberDeclarationAST *ast) override;
|
||||
bool visit(CaseStatementAST *ast) override;
|
||||
bool visit(CompoundStatementAST *ast) override;
|
||||
bool visit(DeclarationStatementAST *ast) override;
|
||||
bool visit(DoStatementAST *ast) override;
|
||||
bool visit(ExpressionOrDeclarationStatementAST *ast) override;
|
||||
bool visit(ExpressionStatementAST *ast) override;
|
||||
bool visit(ForeachStatementAST *ast) override;
|
||||
bool visit(RangeBasedForStatementAST *ast) override;
|
||||
bool visit(ForStatementAST *ast) override;
|
||||
bool visit(IfStatementAST *ast) override;
|
||||
bool visit(LabeledStatementAST *ast) override;
|
||||
bool visit(BreakStatementAST *ast) override;
|
||||
bool visit(ContinueStatementAST *ast) override;
|
||||
bool visit(GotoStatementAST *ast) override;
|
||||
bool visit(ReturnStatementAST *ast) override;
|
||||
bool visit(SwitchStatementAST *ast) override;
|
||||
bool visit(TryBlockStatementAST *ast) override;
|
||||
bool visit(CatchClauseAST *ast) override;
|
||||
bool visit(WhileStatementAST *ast) override;
|
||||
bool visit(ObjCFastEnumerationAST *ast) override;
|
||||
bool visit(ObjCSynchronizedStatementAST *ast) override;
|
||||
|
||||
// ExpressionAST
|
||||
virtual bool visit(AlignofExpressionAST *) { return true; }
|
||||
virtual bool visit(IdExpressionAST *ast);
|
||||
virtual bool visit(CompoundExpressionAST *ast);
|
||||
virtual bool visit(CompoundLiteralAST *ast);
|
||||
virtual bool visit(QtMethodAST *ast);
|
||||
virtual bool visit(BinaryExpressionAST *ast);
|
||||
virtual bool visit(CastExpressionAST *ast);
|
||||
virtual bool visit(ConditionAST *ast);
|
||||
virtual bool visit(ConditionalExpressionAST *ast);
|
||||
virtual bool visit(CppCastExpressionAST *ast);
|
||||
virtual bool visit(DeleteExpressionAST *ast);
|
||||
virtual bool visit(DesignatedInitializerAST *) { return true; }
|
||||
virtual bool visit(ArrayInitializerAST *ast);
|
||||
virtual bool visit(NewExpressionAST *ast);
|
||||
virtual bool visit(NoExceptOperatorExpressionAST *) { return true; }
|
||||
virtual bool visit(TypeidExpressionAST *ast);
|
||||
virtual bool visit(TypenameCallExpressionAST *ast);
|
||||
virtual bool visit(TypeConstructorCallAST *ast);
|
||||
virtual bool visit(SizeofExpressionAST *ast);
|
||||
virtual bool visit(StaticAssertDeclarationAST *) { return true; }
|
||||
virtual bool visit(PointerLiteralAST *ast);
|
||||
virtual bool visit(NumericLiteralAST *ast);
|
||||
virtual bool visit(BoolLiteralAST *ast);
|
||||
virtual bool visit(ThisExpressionAST *ast);
|
||||
virtual bool visit(NestedExpressionAST *ast);
|
||||
virtual bool visit(StringLiteralAST *ast);
|
||||
virtual bool visit(ThrowExpressionAST *ast);
|
||||
virtual bool visit(TypeIdAST *ast);
|
||||
virtual bool visit(UnaryExpressionAST *ast);
|
||||
virtual bool visit(ObjCMessageExpressionAST *ast);
|
||||
virtual bool visit(ObjCProtocolExpressionAST *ast);
|
||||
virtual bool visit(ObjCEncodeExpressionAST *ast);
|
||||
virtual bool visit(ObjCSelectorExpressionAST *ast);
|
||||
virtual bool visit(LambdaExpressionAST *ast);
|
||||
virtual bool visit(BracedInitializerAST *ast);
|
||||
virtual bool visit(ExpressionListParenAST *ast);
|
||||
bool visit(AlignofExpressionAST *) override { return true; }
|
||||
bool visit(IdExpressionAST *ast) override;
|
||||
bool visit(CompoundExpressionAST *ast) override;
|
||||
bool visit(CompoundLiteralAST *ast) override;
|
||||
bool visit(QtMethodAST *ast) override;
|
||||
bool visit(BinaryExpressionAST *ast) override;
|
||||
bool visit(CastExpressionAST *ast) override;
|
||||
bool visit(ConditionAST *ast) override;
|
||||
bool visit(ConditionalExpressionAST *ast) override;
|
||||
bool visit(CppCastExpressionAST *ast) override;
|
||||
bool visit(DeleteExpressionAST *ast) override;
|
||||
bool visit(DesignatedInitializerAST *) override { return true; }
|
||||
bool visit(ArrayInitializerAST *ast) override;
|
||||
bool visit(NewExpressionAST *ast) override;
|
||||
bool visit(NoExceptOperatorExpressionAST *) override { return true; }
|
||||
bool visit(TypeidExpressionAST *ast) override;
|
||||
bool visit(TypenameCallExpressionAST *ast) override;
|
||||
bool visit(TypeConstructorCallAST *ast) override;
|
||||
bool visit(SizeofExpressionAST *ast) override;
|
||||
bool visit(StaticAssertDeclarationAST *) override { return true; }
|
||||
bool visit(PointerLiteralAST *ast) override;
|
||||
bool visit(NumericLiteralAST *ast) override;
|
||||
bool visit(BoolLiteralAST *ast) override;
|
||||
bool visit(ThisExpressionAST *ast) override;
|
||||
bool visit(NestedExpressionAST *ast) override;
|
||||
bool visit(StringLiteralAST *ast) override;
|
||||
bool visit(ThrowExpressionAST *ast) override;
|
||||
bool visit(TypeIdAST *ast) override;
|
||||
bool visit(UnaryExpressionAST *ast) override;
|
||||
bool visit(ObjCMessageExpressionAST *ast) override;
|
||||
bool visit(ObjCProtocolExpressionAST *ast) override;
|
||||
bool visit(ObjCEncodeExpressionAST *ast) override;
|
||||
bool visit(ObjCSelectorExpressionAST *ast) override;
|
||||
bool visit(LambdaExpressionAST *ast) override;
|
||||
bool visit(BracedInitializerAST *ast) override;
|
||||
bool visit(ExpressionListParenAST *ast) override;
|
||||
|
||||
// DeclarationAST
|
||||
virtual bool visit(SimpleDeclarationAST *ast);
|
||||
virtual bool visit(EmptyDeclarationAST *ast);
|
||||
virtual bool visit(AccessDeclarationAST *ast);
|
||||
virtual bool visit(QtObjectTagAST *ast);
|
||||
virtual bool visit(QtPrivateSlotAST *ast);
|
||||
virtual bool visit(QtPropertyDeclarationAST *ast);
|
||||
virtual bool visit(QtEnumDeclarationAST *ast);
|
||||
virtual bool visit(QtFlagsDeclarationAST *ast);
|
||||
virtual bool visit(QtInterfacesDeclarationAST *ast);
|
||||
virtual bool visit(AliasDeclarationAST *ast);
|
||||
virtual bool visit(AsmDefinitionAST *ast);
|
||||
virtual bool visit(ExceptionDeclarationAST *ast);
|
||||
virtual bool visit(FunctionDefinitionAST *ast);
|
||||
virtual bool visit(LinkageBodyAST *ast);
|
||||
virtual bool visit(LinkageSpecificationAST *ast);
|
||||
virtual bool visit(NamespaceAST *ast);
|
||||
virtual bool visit(NamespaceAliasDefinitionAST *ast);
|
||||
virtual bool visit(ParameterDeclarationAST *ast);
|
||||
virtual bool visit(TemplateDeclarationAST *ast);
|
||||
virtual bool visit(TypenameTypeParameterAST *ast);
|
||||
virtual bool visit(TemplateTypeParameterAST *ast);
|
||||
virtual bool visit(UsingAST *ast);
|
||||
virtual bool visit(UsingDirectiveAST *ast);
|
||||
virtual bool visit(ObjCClassForwardDeclarationAST *ast);
|
||||
virtual bool visit(ObjCClassDeclarationAST *ast);
|
||||
virtual bool visit(ObjCProtocolForwardDeclarationAST *ast);
|
||||
virtual bool visit(ObjCProtocolDeclarationAST *ast);
|
||||
virtual bool visit(ObjCVisibilityDeclarationAST *ast);
|
||||
virtual bool visit(ObjCPropertyDeclarationAST *ast);
|
||||
virtual bool visit(ObjCMethodDeclarationAST *ast);
|
||||
virtual bool visit(ObjCSynthesizedPropertiesDeclarationAST *ast);
|
||||
virtual bool visit(ObjCDynamicPropertiesDeclarationAST *ast);
|
||||
bool visit(SimpleDeclarationAST *ast) override;
|
||||
bool visit(EmptyDeclarationAST *ast) override;
|
||||
bool visit(AccessDeclarationAST *ast) override;
|
||||
bool visit(QtObjectTagAST *ast) override;
|
||||
bool visit(QtPrivateSlotAST *ast) override;
|
||||
bool visit(QtPropertyDeclarationAST *ast) override;
|
||||
bool visit(QtEnumDeclarationAST *ast) override;
|
||||
bool visit(QtFlagsDeclarationAST *ast) override;
|
||||
bool visit(QtInterfacesDeclarationAST *ast) override;
|
||||
bool visit(AliasDeclarationAST *ast) override;
|
||||
bool visit(AsmDefinitionAST *ast) override;
|
||||
bool visit(ExceptionDeclarationAST *ast) override;
|
||||
bool visit(FunctionDefinitionAST *ast) override;
|
||||
bool visit(LinkageBodyAST *ast) override;
|
||||
bool visit(LinkageSpecificationAST *ast) override;
|
||||
bool visit(NamespaceAST *ast) override;
|
||||
bool visit(NamespaceAliasDefinitionAST *ast) override;
|
||||
bool visit(ParameterDeclarationAST *ast) override;
|
||||
bool visit(TemplateDeclarationAST *ast) override;
|
||||
bool visit(TypenameTypeParameterAST *ast) override;
|
||||
bool visit(TemplateTypeParameterAST *ast) override;
|
||||
bool visit(UsingAST *ast) override;
|
||||
bool visit(UsingDirectiveAST *ast) override;
|
||||
bool visit(ObjCClassForwardDeclarationAST *ast) override;
|
||||
bool visit(ObjCClassDeclarationAST *ast) override;
|
||||
bool visit(ObjCProtocolForwardDeclarationAST *ast) override;
|
||||
bool visit(ObjCProtocolDeclarationAST *ast) override;
|
||||
bool visit(ObjCVisibilityDeclarationAST *ast) override;
|
||||
bool visit(ObjCPropertyDeclarationAST *ast) override;
|
||||
bool visit(ObjCMethodDeclarationAST *ast) override;
|
||||
bool visit(ObjCSynthesizedPropertiesDeclarationAST *ast) override;
|
||||
bool visit(ObjCDynamicPropertiesDeclarationAST *ast) override;
|
||||
|
||||
// NameAST
|
||||
virtual bool visit(ObjCSelectorAST *ast);
|
||||
virtual bool visit(QualifiedNameAST *ast);
|
||||
virtual bool visit(OperatorFunctionIdAST *ast);
|
||||
virtual bool visit(ConversionFunctionIdAST *ast);
|
||||
virtual bool visit(AnonymousNameAST *ast);
|
||||
virtual bool visit(SimpleNameAST *ast);
|
||||
virtual bool visit(DestructorNameAST *ast);
|
||||
virtual bool visit(TemplateIdAST *ast);
|
||||
bool visit(ObjCSelectorAST *ast) override;
|
||||
bool visit(QualifiedNameAST *ast) override;
|
||||
bool visit(OperatorFunctionIdAST *ast) override;
|
||||
bool visit(ConversionFunctionIdAST *ast) override;
|
||||
bool visit(AnonymousNameAST *ast) override;
|
||||
bool visit(SimpleNameAST *ast) override;
|
||||
bool visit(DestructorNameAST *ast) override;
|
||||
bool visit(TemplateIdAST *ast) override;
|
||||
|
||||
// SpecifierAST
|
||||
virtual bool visit(SimpleSpecifierAST *ast);
|
||||
virtual bool visit(AlignmentSpecifierAST *ast);
|
||||
virtual bool visit(GnuAttributeSpecifierAST *ast);
|
||||
virtual bool visit(MsvcDeclspecSpecifierAST *ast);
|
||||
virtual bool visit(StdAttributeSpecifierAST *ast);
|
||||
virtual bool visit(TypeofSpecifierAST *ast);
|
||||
virtual bool visit(DecltypeSpecifierAST *ast);
|
||||
virtual bool visit(ClassSpecifierAST *ast);
|
||||
virtual bool visit(NamedTypeSpecifierAST *ast);
|
||||
virtual bool visit(ElaboratedTypeSpecifierAST *ast);
|
||||
virtual bool visit(EnumSpecifierAST *ast);
|
||||
bool visit(SimpleSpecifierAST *ast) override;
|
||||
bool visit(AlignmentSpecifierAST *ast) override;
|
||||
bool visit(GnuAttributeSpecifierAST *ast) override;
|
||||
bool visit(MsvcDeclspecSpecifierAST *ast) override;
|
||||
bool visit(StdAttributeSpecifierAST *ast) override;
|
||||
bool visit(TypeofSpecifierAST *ast) override;
|
||||
bool visit(DecltypeSpecifierAST *ast) override;
|
||||
bool visit(ClassSpecifierAST *ast) override;
|
||||
bool visit(NamedTypeSpecifierAST *ast) override;
|
||||
bool visit(ElaboratedTypeSpecifierAST *ast) override;
|
||||
bool visit(EnumSpecifierAST *ast) override;
|
||||
|
||||
// PtrOperatorAST
|
||||
virtual bool visit(PointerToMemberAST *ast);
|
||||
virtual bool visit(PointerAST *ast);
|
||||
virtual bool visit(ReferenceAST *ast);
|
||||
bool visit(PointerToMemberAST *ast) override;
|
||||
bool visit(PointerAST *ast) override;
|
||||
bool visit(ReferenceAST *ast) override;
|
||||
|
||||
// PostfixAST
|
||||
virtual bool visit(CallAST *ast);
|
||||
virtual bool visit(ArrayAccessAST *ast);
|
||||
virtual bool visit(PostIncrDecrAST *ast);
|
||||
virtual bool visit(MemberAccessAST *ast);
|
||||
bool visit(CallAST *ast) override;
|
||||
bool visit(ArrayAccessAST *ast) override;
|
||||
bool visit(PostIncrDecrAST *ast) override;
|
||||
bool visit(MemberAccessAST *ast) override;
|
||||
|
||||
// CoreDeclaratorAST
|
||||
virtual bool visit(DeclaratorIdAST *ast);
|
||||
virtual bool visit(NestedDeclaratorAST *ast);
|
||||
bool visit(DeclaratorIdAST *ast) override;
|
||||
bool visit(NestedDeclaratorAST *ast) override;
|
||||
|
||||
// PostfixDeclaratorAST
|
||||
virtual bool visit(FunctionDeclaratorAST *ast);
|
||||
virtual bool visit(ArrayDeclaratorAST *ast);
|
||||
bool visit(FunctionDeclaratorAST *ast) override;
|
||||
bool visit(ArrayDeclaratorAST *ast) override;
|
||||
|
||||
private:
|
||||
static const int kMaxDepth;
|
||||
|
72
src/libs/3rdparty/cplusplus/CoreTypes.h
vendored
72
src/libs/3rdparty/cplusplus/CoreTypes.h
vendored
@@ -35,29 +35,29 @@ public:
|
||||
return &t;
|
||||
}
|
||||
|
||||
virtual const UndefinedType *asUndefinedType() const
|
||||
const UndefinedType *asUndefinedType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual UndefinedType *asUndefinedType()
|
||||
UndefinedType *asUndefinedType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT VoidType: public Type
|
||||
{
|
||||
public:
|
||||
virtual const VoidType *asVoidType() const
|
||||
const VoidType *asVoidType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual VoidType *asVoidType()
|
||||
VoidType *asVoidType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT IntegerType: public Type
|
||||
@@ -81,15 +81,15 @@ public:
|
||||
|
||||
int kind() const;
|
||||
|
||||
virtual IntegerType *asIntegerType()
|
||||
IntegerType *asIntegerType() override
|
||||
{ return this; }
|
||||
|
||||
virtual const IntegerType *asIntegerType() const
|
||||
const IntegerType *asIntegerType() const override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
int _kind;
|
||||
@@ -110,15 +110,15 @@ public:
|
||||
|
||||
int kind() const;
|
||||
|
||||
virtual const FloatType *asFloatType() const
|
||||
const FloatType *asFloatType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual FloatType *asFloatType()
|
||||
FloatType *asFloatType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
int _kind;
|
||||
@@ -132,15 +132,15 @@ public:
|
||||
|
||||
FullySpecifiedType elementType() const;
|
||||
|
||||
virtual const PointerType *asPointerType() const
|
||||
const PointerType *asPointerType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual PointerType *asPointerType()
|
||||
PointerType *asPointerType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _elementType;
|
||||
@@ -155,15 +155,15 @@ public:
|
||||
const Name *memberName() const;
|
||||
FullySpecifiedType elementType() const;
|
||||
|
||||
virtual const PointerToMemberType *asPointerToMemberType() const
|
||||
const PointerToMemberType *asPointerToMemberType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual PointerToMemberType *asPointerToMemberType()
|
||||
PointerToMemberType *asPointerToMemberType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
const Name *_memberName;
|
||||
@@ -179,15 +179,15 @@ public:
|
||||
FullySpecifiedType elementType() const;
|
||||
bool isRvalueReference() const;
|
||||
|
||||
virtual const ReferenceType *asReferenceType() const
|
||||
const ReferenceType *asReferenceType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ReferenceType *asReferenceType()
|
||||
ReferenceType *asReferenceType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _elementType;
|
||||
@@ -203,15 +203,15 @@ public:
|
||||
FullySpecifiedType elementType() const;
|
||||
unsigned size() const;
|
||||
|
||||
virtual const ArrayType *asArrayType() const
|
||||
const ArrayType *asArrayType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ArrayType *asArrayType()
|
||||
ArrayType *asArrayType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _elementType;
|
||||
@@ -226,15 +226,15 @@ public:
|
||||
|
||||
const Name *name() const;
|
||||
|
||||
virtual const NamedType *asNamedType() const
|
||||
const NamedType *asNamedType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual NamedType *asNamedType()
|
||||
NamedType *asNamedType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
const Name *_name;
|
||||
|
8
src/libs/3rdparty/cplusplus/Literals.h
vendored
8
src/libs/3rdparty/cplusplus/Literals.h
vendored
@@ -112,14 +112,14 @@ public:
|
||||
: Literal(chars, size)
|
||||
{ }
|
||||
|
||||
virtual const Identifier *identifier() const { return this; }
|
||||
const Identifier *identifier() const override { return this; }
|
||||
|
||||
virtual const Identifier *asNameId() const
|
||||
const Identifier *asNameId() const override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
};
|
||||
|
||||
} // namespace CPlusPlus
|
||||
|
58
src/libs/3rdparty/cplusplus/Names.h
vendored
58
src/libs/3rdparty/cplusplus/Names.h
vendored
@@ -35,17 +35,17 @@ public:
|
||||
|
||||
virtual ~QualifiedNameId();
|
||||
|
||||
virtual const Identifier *identifier() const;
|
||||
const Identifier *identifier() const override;
|
||||
|
||||
const Name *base() const;
|
||||
const Name *name() const;
|
||||
|
||||
virtual const QualifiedNameId *asQualifiedNameId() const
|
||||
const QualifiedNameId *asQualifiedNameId() const override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
const Name *_base;
|
||||
@@ -58,16 +58,16 @@ public:
|
||||
DestructorNameId(const Name *name);
|
||||
virtual ~DestructorNameId();
|
||||
|
||||
virtual const Name *name() const;
|
||||
const Name *name() const;
|
||||
|
||||
virtual const Identifier *identifier() const;
|
||||
const Identifier *identifier() const override;
|
||||
|
||||
virtual const DestructorNameId *asDestructorNameId() const
|
||||
const DestructorNameId *asDestructorNameId() const override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
const Name *_name;
|
||||
@@ -130,13 +130,13 @@ public:
|
||||
|
||||
virtual ~TemplateNameId();
|
||||
|
||||
virtual const Identifier *identifier() const;
|
||||
const Identifier *identifier() const override;
|
||||
|
||||
// ### find a better name
|
||||
int templateArgumentCount() const;
|
||||
const TemplateArgument &templateArgumentAt(int index) const;
|
||||
|
||||
virtual const TemplateNameId *asTemplateNameId() const
|
||||
const TemplateNameId *asTemplateNameId() const override
|
||||
{ return this; }
|
||||
|
||||
typedef std::vector<TemplateArgument>::const_iterator TemplateArgumentIterator;
|
||||
@@ -151,8 +151,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
const Identifier *_identifier;
|
||||
@@ -224,14 +224,14 @@ public:
|
||||
|
||||
Kind kind() const;
|
||||
|
||||
virtual const Identifier *identifier() const;
|
||||
const Identifier *identifier() const override;
|
||||
|
||||
virtual const OperatorNameId *asOperatorNameId() const
|
||||
const OperatorNameId *asOperatorNameId() const override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
Kind _kind;
|
||||
@@ -245,14 +245,14 @@ public:
|
||||
|
||||
FullySpecifiedType type() const;
|
||||
|
||||
virtual const Identifier *identifier() const;
|
||||
const Identifier *identifier() const override;
|
||||
|
||||
virtual const ConversionNameId *asConversionNameId() const
|
||||
const ConversionNameId *asConversionNameId() const override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _type;
|
||||
@@ -267,13 +267,13 @@ public:
|
||||
|
||||
virtual ~SelectorNameId();
|
||||
|
||||
virtual const Identifier *identifier() const;
|
||||
const Identifier *identifier() const override;
|
||||
|
||||
int nameCount() const;
|
||||
const Name *nameAt(int index) const;
|
||||
bool hasArguments() const;
|
||||
|
||||
virtual const SelectorNameId *asSelectorNameId() const
|
||||
const SelectorNameId *asSelectorNameId() const override
|
||||
{ return this; }
|
||||
|
||||
typedef std::vector<const Name *>::const_iterator NameIterator;
|
||||
@@ -282,8 +282,8 @@ public:
|
||||
NameIterator lastName() const { return _names.end(); }
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
std::vector<const Name *> _names;
|
||||
@@ -298,14 +298,14 @@ public:
|
||||
|
||||
int classTokenIndex() const;
|
||||
|
||||
virtual const Identifier *identifier() const;
|
||||
const Identifier *identifier() const override;
|
||||
|
||||
virtual const AnonymousNameId *asAnonymousNameId() const
|
||||
const AnonymousNameId *asAnonymousNameId() const override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void accept0(NameVisitor *visitor) const;
|
||||
virtual bool match0(const Name *otherName, Matcher *matcher) const;
|
||||
void accept0(NameVisitor *visitor) const override;
|
||||
bool match0(const Name *otherName, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
int _classTokenIndex;
|
||||
|
20
src/libs/3rdparty/cplusplus/SafeMatcher.h
vendored
20
src/libs/3rdparty/cplusplus/SafeMatcher.h
vendored
@@ -37,17 +37,17 @@ public:
|
||||
SafeMatcher();
|
||||
~SafeMatcher();
|
||||
|
||||
bool match(const PointerToMemberType *type, const PointerToMemberType *otherType);
|
||||
bool match(const PointerType *type, const PointerType *otherType);
|
||||
bool match(const ReferenceType *type, const ReferenceType *otherType);
|
||||
bool match(const ArrayType *type, const ArrayType *otherType);
|
||||
bool match(const NamedType *type, const NamedType *otherType);
|
||||
bool match(const PointerToMemberType *type, const PointerToMemberType *otherType) override;
|
||||
bool match(const PointerType *type, const PointerType *otherType) override;
|
||||
bool match(const ReferenceType *type, const ReferenceType *otherType) override;
|
||||
bool match(const ArrayType *type, const ArrayType *otherType) override;
|
||||
bool match(const NamedType *type, const NamedType *otherType) override;
|
||||
|
||||
bool match(const TemplateNameId *name, const TemplateNameId *otherName);
|
||||
bool match(const DestructorNameId *name, const DestructorNameId *otherName);
|
||||
bool match(const ConversionNameId *name, const ConversionNameId *otherName);
|
||||
bool match(const QualifiedNameId *name, const QualifiedNameId *otherName);
|
||||
bool match(const SelectorNameId *name, const SelectorNameId *otherName);
|
||||
bool match(const TemplateNameId *name, const TemplateNameId *otherName) override;
|
||||
bool match(const DestructorNameId *name, const DestructorNameId *otherName) override;
|
||||
bool match(const ConversionNameId *name, const ConversionNameId *otherName) override;
|
||||
bool match(const QualifiedNameId *name, const QualifiedNameId *otherName) override;
|
||||
bool match(const SelectorNameId *name, const SelectorNameId *otherName) override;
|
||||
|
||||
private:
|
||||
std::vector<const Type *> _blockedTypes;
|
||||
|
4
src/libs/3rdparty/cplusplus/Scope.h
vendored
4
src/libs/3rdparty/cplusplus/Scope.h
vendored
@@ -65,10 +65,10 @@ public:
|
||||
int endOffset() const;
|
||||
void setEndOffset(int offset);
|
||||
|
||||
virtual const Scope *asScope() const
|
||||
const Scope *asScope() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Scope *asScope()
|
||||
Scope *asScope() override
|
||||
{ return this; }
|
||||
|
||||
private:
|
||||
|
284
src/libs/3rdparty/cplusplus/Symbols.h
vendored
284
src/libs/3rdparty/cplusplus/Symbols.h
vendored
@@ -39,16 +39,16 @@ public:
|
||||
virtual ~UsingNamespaceDirective();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const UsingNamespaceDirective *asUsingNamespaceDirective() const
|
||||
const UsingNamespaceDirective *asUsingNamespaceDirective() const override
|
||||
{ return this; }
|
||||
|
||||
virtual UsingNamespaceDirective *asUsingNamespaceDirective()
|
||||
UsingNamespaceDirective *asUsingNamespaceDirective() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT UsingDeclaration: public Symbol
|
||||
@@ -59,16 +59,16 @@ public:
|
||||
virtual ~UsingDeclaration();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const UsingDeclaration *asUsingDeclaration() const
|
||||
const UsingDeclaration *asUsingDeclaration() const override
|
||||
{ return this; }
|
||||
|
||||
virtual UsingDeclaration *asUsingDeclaration()
|
||||
UsingDeclaration *asUsingDeclaration() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT NamespaceAlias: public Symbol
|
||||
@@ -82,16 +82,16 @@ public:
|
||||
void setNamespaceName(const Name *namespaceName);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const NamespaceAlias *asNamespaceAlias() const
|
||||
const NamespaceAlias *asNamespaceAlias() const override
|
||||
{ return this; }
|
||||
|
||||
virtual NamespaceAlias *asNamespaceAlias()
|
||||
NamespaceAlias *asNamespaceAlias() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
|
||||
private:
|
||||
const Name *_namespaceName;
|
||||
@@ -108,13 +108,13 @@ public:
|
||||
void setInitializer(StringLiteral const* initializer);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
const StringLiteral *getInitializer() const;
|
||||
|
||||
virtual const Declaration *asDeclaration() const
|
||||
const Declaration *asDeclaration() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Declaration *asDeclaration()
|
||||
Declaration *asDeclaration() override
|
||||
{ return this; }
|
||||
|
||||
virtual EnumeratorDeclaration *asEnumeratorDeclarator()
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
{ return nullptr; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _type;
|
||||
@@ -140,10 +140,10 @@ public:
|
||||
const StringLiteral *constantValue() const;
|
||||
void setConstantValue(const StringLiteral *constantValue);
|
||||
|
||||
virtual EnumeratorDeclaration *asEnumeratorDeclarator()
|
||||
EnumeratorDeclaration *asEnumeratorDeclarator() override
|
||||
{ return this; }
|
||||
|
||||
virtual const EnumeratorDeclaration *asEnumeratorDeclarator() const
|
||||
const EnumeratorDeclaration *asEnumeratorDeclarator() const override
|
||||
{ return this; }
|
||||
|
||||
private:
|
||||
@@ -165,16 +165,16 @@ public:
|
||||
void setInitializer(const StringLiteral *initializer);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const Argument *asArgument() const
|
||||
const Argument *asArgument() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Argument *asArgument()
|
||||
Argument *asArgument() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
|
||||
private:
|
||||
const StringLiteral *_initializer;
|
||||
@@ -193,16 +193,16 @@ public:
|
||||
bool isClassDeclarator() const { return _isClassDeclarator; }
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const TypenameArgument *asTypenameArgument() const
|
||||
const TypenameArgument *asTypenameArgument() const override
|
||||
{ return this; }
|
||||
|
||||
virtual TypenameArgument *asTypenameArgument()
|
||||
TypenameArgument *asTypenameArgument() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _type;
|
||||
@@ -217,16 +217,16 @@ public:
|
||||
virtual ~Block();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const Block *asBlock() const
|
||||
const Block *asBlock() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Block *asBlock()
|
||||
Block *asBlock() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT ForwardClassDeclaration: public Symbol, public Type
|
||||
@@ -237,25 +237,25 @@ public:
|
||||
virtual ~ForwardClassDeclaration();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ForwardClassDeclaration *asForwardClassDeclaration() const
|
||||
const ForwardClassDeclaration *asForwardClassDeclaration() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ForwardClassDeclaration *asForwardClassDeclaration()
|
||||
ForwardClassDeclaration *asForwardClassDeclaration() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const ForwardClassDeclaration *asForwardClassDeclarationType() const
|
||||
const ForwardClassDeclaration *asForwardClassDeclarationType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ForwardClassDeclaration *asForwardClassDeclarationType()
|
||||
ForwardClassDeclaration *asForwardClassDeclarationType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT Enum: public Scope, public Type
|
||||
@@ -269,25 +269,25 @@ public:
|
||||
void setScoped(bool scoped);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const Enum *asEnum() const
|
||||
const Enum *asEnum() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Enum *asEnum()
|
||||
Enum *asEnum() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const Enum *asEnumType() const
|
||||
const Enum *asEnumType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Enum *asEnumType()
|
||||
Enum *asEnumType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
bool _isScoped;
|
||||
@@ -375,25 +375,25 @@ public:
|
||||
void setExceptionSpecification(const StringLiteral *spec);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const Function *asFunction() const
|
||||
const Function *asFunction() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Function *asFunction()
|
||||
Function *asFunction() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const Function *asFunctionType() const
|
||||
const Function *asFunctionType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Function *asFunctionType()
|
||||
Function *asFunctionType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _returnType;
|
||||
@@ -430,25 +430,25 @@ public:
|
||||
Symbol *declaration() const;
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const Template *asTemplate() const
|
||||
const Template *asTemplate() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Template *asTemplate()
|
||||
Template *asTemplate() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const Template *asTemplateType() const
|
||||
const Template *asTemplateType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Template *asTemplateType()
|
||||
Template *asTemplateType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
};
|
||||
|
||||
|
||||
@@ -460,19 +460,19 @@ public:
|
||||
virtual ~Namespace();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const Namespace *asNamespace() const
|
||||
const Namespace *asNamespace() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Namespace *asNamespace()
|
||||
Namespace *asNamespace() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const Namespace *asNamespaceType() const
|
||||
const Namespace *asNamespaceType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Namespace *asNamespaceType()
|
||||
Namespace *asNamespaceType() override
|
||||
{ return this; }
|
||||
|
||||
bool isInline() const
|
||||
@@ -482,9 +482,9 @@ public:
|
||||
{ _isInline = onoff; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
bool _isInline;
|
||||
@@ -504,17 +504,17 @@ public:
|
||||
void setVariadic(bool isVariadic);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
void setType(const FullySpecifiedType &type);
|
||||
|
||||
virtual const BaseClass *asBaseClass() const
|
||||
const BaseClass *asBaseClass() const override
|
||||
{ return this; }
|
||||
|
||||
virtual BaseClass *asBaseClass()
|
||||
BaseClass *asBaseClass() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
|
||||
private:
|
||||
bool _isVariadic = false;
|
||||
@@ -546,25 +546,25 @@ public:
|
||||
void addBaseClass(BaseClass *baseClass);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const Class *asClass() const
|
||||
const Class *asClass() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Class *asClass()
|
||||
Class *asClass() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const Class *asClassType() const
|
||||
const Class *asClassType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual Class *asClassType()
|
||||
Class *asClassType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
Key _key;
|
||||
@@ -604,16 +604,16 @@ public:
|
||||
int flags() const;
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const QtPropertyDeclaration *asQtPropertyDeclaration() const
|
||||
const QtPropertyDeclaration *asQtPropertyDeclaration() const override
|
||||
{ return this; }
|
||||
|
||||
virtual QtPropertyDeclaration *asQtPropertyDeclaration()
|
||||
QtPropertyDeclaration *asQtPropertyDeclaration() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _type;
|
||||
@@ -628,16 +628,16 @@ public:
|
||||
virtual ~QtEnum();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const QtEnum *asQtEnum() const
|
||||
const QtEnum *asQtEnum() const override
|
||||
{ return this; }
|
||||
|
||||
virtual QtEnum *asQtEnum()
|
||||
QtEnum *asQtEnum() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT ObjCBaseClass: public Symbol
|
||||
@@ -648,16 +648,16 @@ public:
|
||||
virtual ~ObjCBaseClass();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCBaseClass *asObjCBaseClass() const
|
||||
const ObjCBaseClass *asObjCBaseClass() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCBaseClass *asObjCBaseClass()
|
||||
ObjCBaseClass *asObjCBaseClass() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT ObjCBaseProtocol: public Symbol
|
||||
@@ -668,16 +668,16 @@ public:
|
||||
virtual ~ObjCBaseProtocol();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCBaseProtocol *asObjCBaseProtocol() const
|
||||
const ObjCBaseProtocol *asObjCBaseProtocol() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCBaseProtocol *asObjCBaseProtocol()
|
||||
ObjCBaseProtocol *asObjCBaseProtocol() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT ObjCForwardProtocolDeclaration: public Symbol, public Type
|
||||
@@ -688,25 +688,25 @@ public:
|
||||
virtual ~ObjCForwardProtocolDeclaration();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclaration() const
|
||||
const ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclaration() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclaration()
|
||||
ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclaration() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclarationType() const
|
||||
const ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclarationType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclarationType()
|
||||
ObjCForwardProtocolDeclaration *asObjCForwardProtocolDeclarationType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT ObjCProtocol: public Scope, public Type
|
||||
@@ -721,25 +721,25 @@ public:
|
||||
void addProtocol(ObjCBaseProtocol *protocol);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCProtocol *asObjCProtocol() const
|
||||
const ObjCProtocol *asObjCProtocol() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCProtocol *asObjCProtocol()
|
||||
ObjCProtocol *asObjCProtocol() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const ObjCProtocol *asObjCProtocolType() const
|
||||
const ObjCProtocol *asObjCProtocolType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCProtocol *asObjCProtocolType()
|
||||
ObjCProtocol *asObjCProtocolType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
std::vector<ObjCBaseProtocol *> _protocols;
|
||||
@@ -753,25 +753,25 @@ public:
|
||||
virtual ~ObjCForwardClassDeclaration();
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCForwardClassDeclaration *asObjCForwardClassDeclaration() const
|
||||
const ObjCForwardClassDeclaration *asObjCForwardClassDeclaration() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCForwardClassDeclaration *asObjCForwardClassDeclaration()
|
||||
ObjCForwardClassDeclaration *asObjCForwardClassDeclaration() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const ObjCForwardClassDeclaration *asObjCForwardClassDeclarationType() const
|
||||
const ObjCForwardClassDeclaration *asObjCForwardClassDeclarationType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCForwardClassDeclaration *asObjCForwardClassDeclarationType()
|
||||
ObjCForwardClassDeclaration *asObjCForwardClassDeclarationType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT ObjCClass: public Scope, public Type
|
||||
@@ -796,25 +796,25 @@ public:
|
||||
void addProtocol(ObjCBaseProtocol *protocol);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCClass *asObjCClass() const
|
||||
const ObjCClass *asObjCClass() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCClass *asObjCClass()
|
||||
ObjCClass *asObjCClass() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const ObjCClass *asObjCClassType() const
|
||||
const ObjCClass *asObjCClassType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCClass *asObjCClassType()
|
||||
ObjCClass *asObjCClassType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
const Name *_categoryName;
|
||||
@@ -846,25 +846,25 @@ public:
|
||||
void setVariadic(bool isVariadic);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCMethod *asObjCMethod() const
|
||||
const ObjCMethod *asObjCMethod() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCMethod *asObjCMethod()
|
||||
ObjCMethod *asObjCMethod() override
|
||||
{ return this; }
|
||||
|
||||
// Type's interface
|
||||
virtual const ObjCMethod *asObjCMethodType() const
|
||||
const ObjCMethod *asObjCMethodType() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCMethod *asObjCMethodType()
|
||||
ObjCMethod *asObjCMethodType() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
virtual void accept0(TypeVisitor *visitor);
|
||||
virtual bool match0(const Type *otherType, Matcher *matcher) const;
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
void accept0(TypeVisitor *visitor) override;
|
||||
bool match0(const Type *otherType, Matcher *matcher) const override;
|
||||
|
||||
private:
|
||||
FullySpecifiedType _returnType;
|
||||
@@ -918,16 +918,16 @@ public:
|
||||
void setType(const FullySpecifiedType &type);
|
||||
|
||||
// Symbol's interface
|
||||
virtual FullySpecifiedType type() const;
|
||||
FullySpecifiedType type() const override;
|
||||
|
||||
virtual const ObjCPropertyDeclaration *asObjCPropertyDeclaration() const
|
||||
const ObjCPropertyDeclaration *asObjCPropertyDeclaration() const override
|
||||
{ return this; }
|
||||
|
||||
virtual ObjCPropertyDeclaration *asObjCPropertyDeclaration()
|
||||
ObjCPropertyDeclaration *asObjCPropertyDeclaration() override
|
||||
{ return this; }
|
||||
|
||||
protected:
|
||||
virtual void visitSymbol0(SymbolVisitor *visitor);
|
||||
void visitSymbol0(SymbolVisitor *visitor) override;
|
||||
|
||||
private:
|
||||
const Name *_getterName;
|
||||
|
104
src/libs/3rdparty/cplusplus/Templates.h
vendored
104
src/libs/3rdparty/cplusplus/Templates.h
vendored
@@ -72,26 +72,26 @@ public:
|
||||
FullySpecifiedType cloneType(const FullySpecifiedType &type, Subst *subst);
|
||||
|
||||
protected:
|
||||
virtual void visit(UndefinedType *type);
|
||||
virtual void visit(VoidType *type);
|
||||
virtual void visit(IntegerType *type);
|
||||
virtual void visit(FloatType *type);
|
||||
virtual void visit(PointerToMemberType *type);
|
||||
virtual void visit(PointerType *type);
|
||||
virtual void visit(ReferenceType *type);
|
||||
virtual void visit(ArrayType *type);
|
||||
virtual void visit(NamedType *type);
|
||||
virtual void visit(Function *type);
|
||||
virtual void visit(Namespace *type);
|
||||
virtual void visit(Template *type);
|
||||
virtual void visit(Class *type);
|
||||
virtual void visit(Enum *type);
|
||||
virtual void visit(ForwardClassDeclaration *type);
|
||||
virtual void visit(ObjCClass *type);
|
||||
virtual void visit(ObjCProtocol *type);
|
||||
virtual void visit(ObjCMethod *type);
|
||||
virtual void visit(ObjCForwardClassDeclaration *type);
|
||||
virtual void visit(ObjCForwardProtocolDeclaration *type);
|
||||
void visit(UndefinedType *type) override;
|
||||
void visit(VoidType *type) override;
|
||||
void visit(IntegerType *type) override;
|
||||
void visit(FloatType *type) override;
|
||||
void visit(PointerToMemberType *type) override;
|
||||
void visit(PointerType *type) override;
|
||||
void visit(ReferenceType *type) override;
|
||||
void visit(ArrayType *type) override;
|
||||
void visit(NamedType *type) override;
|
||||
void visit(Function *type) override;
|
||||
void visit(Namespace *type) override;
|
||||
void visit(Template *type) override;
|
||||
void visit(Class *type) override;
|
||||
void visit(Enum *type) override;
|
||||
void visit(ForwardClassDeclaration *type) override;
|
||||
void visit(ObjCClass *type) override;
|
||||
void visit(ObjCProtocol *type) override;
|
||||
void visit(ObjCMethod *type) override;
|
||||
void visit(ObjCForwardClassDeclaration *type) override;
|
||||
void visit(ObjCForwardProtocolDeclaration *type) override;
|
||||
|
||||
protected:
|
||||
typedef std::pair <const FullySpecifiedType, Subst *> TypeSubstPair;
|
||||
@@ -112,14 +112,14 @@ public:
|
||||
const Name *cloneName(const Name *name, Subst *subst);
|
||||
|
||||
protected:
|
||||
virtual void visit(const Identifier *name);
|
||||
virtual void visit(const AnonymousNameId *name);
|
||||
virtual void visit(const TemplateNameId *name);
|
||||
virtual void visit(const DestructorNameId *name);
|
||||
virtual void visit(const OperatorNameId *name);
|
||||
virtual void visit(const ConversionNameId *name);
|
||||
virtual void visit(const QualifiedNameId *name);
|
||||
virtual void visit(const SelectorNameId *name);
|
||||
void visit(const Identifier *name) override;
|
||||
void visit(const AnonymousNameId *name) override;
|
||||
void visit(const TemplateNameId *name) override;
|
||||
void visit(const DestructorNameId *name) override;
|
||||
void visit(const OperatorNameId *name) override;
|
||||
void visit(const ConversionNameId *name) override;
|
||||
void visit(const QualifiedNameId *name) override;
|
||||
void visit(const SelectorNameId *name) override;
|
||||
|
||||
protected:
|
||||
typedef std::pair <const Name *, Subst *> NameSubstPair;
|
||||
@@ -140,34 +140,34 @@ public:
|
||||
Symbol *cloneSymbol(Symbol *symbol, Subst *subst);
|
||||
|
||||
protected:
|
||||
virtual bool visit(UsingNamespaceDirective *symbol);
|
||||
virtual bool visit(UsingDeclaration *symbol);
|
||||
virtual bool visit(NamespaceAlias *symbol);
|
||||
virtual bool visit(Declaration *symbol);
|
||||
virtual bool visit(Argument *symbol);
|
||||
virtual bool visit(TypenameArgument *symbol);
|
||||
virtual bool visit(BaseClass *symbol);
|
||||
virtual bool visit(Enum *symbol);
|
||||
virtual bool visit(Function *symbol);
|
||||
virtual bool visit(Namespace *symbol);
|
||||
virtual bool visit(Template *symbol);
|
||||
virtual bool visit(Class *symbol);
|
||||
virtual bool visit(Block *symbol);
|
||||
virtual bool visit(ForwardClassDeclaration *symbol);
|
||||
bool visit(UsingNamespaceDirective *symbol) override;
|
||||
bool visit(UsingDeclaration *symbol) override;
|
||||
bool visit(NamespaceAlias *symbol) override;
|
||||
bool visit(Declaration *symbol) override;
|
||||
bool visit(Argument *symbol) override;
|
||||
bool visit(TypenameArgument *symbol) override;
|
||||
bool visit(BaseClass *symbol) override;
|
||||
bool visit(Enum *symbol) override;
|
||||
bool visit(Function *symbol) override;
|
||||
bool visit(Namespace *symbol) override;
|
||||
bool visit(Template *symbol) override;
|
||||
bool visit(Class *symbol) override;
|
||||
bool visit(Block *symbol) override;
|
||||
bool visit(ForwardClassDeclaration *symbol) override;
|
||||
|
||||
// Qt
|
||||
virtual bool visit(QtPropertyDeclaration *symbol);
|
||||
virtual bool visit(QtEnum *symbol);
|
||||
bool visit(QtPropertyDeclaration *symbol) override;
|
||||
bool visit(QtEnum *symbol) override;
|
||||
|
||||
// Objective-C
|
||||
virtual bool visit(ObjCBaseClass *symbol);
|
||||
virtual bool visit(ObjCBaseProtocol *symbol);
|
||||
virtual bool visit(ObjCClass *symbol);
|
||||
virtual bool visit(ObjCForwardClassDeclaration *symbol);
|
||||
virtual bool visit(ObjCProtocol *symbol);
|
||||
virtual bool visit(ObjCForwardProtocolDeclaration *symbol);
|
||||
virtual bool visit(ObjCMethod *symbol);
|
||||
virtual bool visit(ObjCPropertyDeclaration *symbol);
|
||||
bool visit(ObjCBaseClass *symbol) override;
|
||||
bool visit(ObjCBaseProtocol *symbol) override;
|
||||
bool visit(ObjCClass *symbol) override;
|
||||
bool visit(ObjCForwardClassDeclaration *symbol) override;
|
||||
bool visit(ObjCProtocol *symbol) override;
|
||||
bool visit(ObjCForwardProtocolDeclaration *symbol) override;
|
||||
bool visit(ObjCMethod *symbol) override;
|
||||
bool visit(ObjCPropertyDeclaration *symbol) override;
|
||||
|
||||
protected:
|
||||
typedef std::pair <Symbol *, Subst *> SymbolSubstPair;
|
||||
|
@@ -243,27 +243,27 @@ protected:
|
||||
/// Creates bindings for the symbols reachable from the \a root symbol.
|
||||
void process(Symbol *root);
|
||||
|
||||
virtual bool visit(Template *templ);
|
||||
virtual bool visit(Namespace *ns);
|
||||
virtual bool visit(Class *klass);
|
||||
virtual bool visit(ForwardClassDeclaration *klass);
|
||||
virtual bool visit(Enum *e);
|
||||
virtual bool visit(Declaration *decl);
|
||||
virtual bool visit(Function *function);
|
||||
virtual bool visit(Block *block);
|
||||
bool visit(Template *templ) override;
|
||||
bool visit(Namespace *ns) override;
|
||||
bool visit(Class *klass) override;
|
||||
bool visit(ForwardClassDeclaration *klass) override;
|
||||
bool visit(Enum *e) override;
|
||||
bool visit(Declaration *decl) override;
|
||||
bool visit(Function *function) override;
|
||||
bool visit(Block *block) override;
|
||||
|
||||
virtual bool visit(BaseClass *b);
|
||||
virtual bool visit(UsingNamespaceDirective *u);
|
||||
virtual bool visit(UsingDeclaration *u);
|
||||
virtual bool visit(NamespaceAlias *a);
|
||||
bool visit(BaseClass *b) override;
|
||||
bool visit(UsingNamespaceDirective *u) override;
|
||||
bool visit(UsingDeclaration *u) override;
|
||||
bool visit(NamespaceAlias *a) override;
|
||||
|
||||
virtual bool visit(ObjCClass *klass);
|
||||
virtual bool visit(ObjCBaseClass *b);
|
||||
virtual bool visit(ObjCForwardClassDeclaration *klass);
|
||||
virtual bool visit(ObjCProtocol *proto);
|
||||
virtual bool visit(ObjCBaseProtocol *b);
|
||||
virtual bool visit(ObjCForwardProtocolDeclaration *proto);
|
||||
virtual bool visit(ObjCMethod *);
|
||||
bool visit(ObjCClass *klass) override;
|
||||
bool visit(ObjCBaseClass *b) override;
|
||||
bool visit(ObjCForwardClassDeclaration *klass) override;
|
||||
bool visit(ObjCProtocol *proto) override;
|
||||
bool visit(ObjCBaseProtocol *b) override;
|
||||
bool visit(ObjCForwardProtocolDeclaration *proto) override;
|
||||
bool visit(ObjCMethod *) override;
|
||||
|
||||
private:
|
||||
Symbol *instantiateTemplateFunction(const Name *instantiationName,
|
||||
|
Reference in New Issue
Block a user