diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2011-08-30 11:06:24 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2011-08-30 11:13:00 +0200 |
commit | c264f5b23c95f7177921d747e8bb9317be81dec8 (patch) | |
tree | 4f24c4a7d75037c5c4991b3e16eae459c7689575 | |
parent | 27aee5dcd24d44a652fbf93cf76af122df9316c9 (diff) | |
download | qt-creator-c264f5b23c95f7177921d747e8bb9317be81dec8.tar.gz |
Regenerate the default AST visitors.
Change-Id: I429c9d454a1b896abf642225ef7b506481fac708
Reviewed-on: http://codereview.qt.nokia.com/3867
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
-rw-r--r-- | src/libs/3rdparty/cplusplus/ASTMatcher.h | 116 | ||||
-rw-r--r-- | src/libs/3rdparty/cplusplus/ASTVisitor.h | 378 |
2 files changed, 252 insertions, 242 deletions
diff --git a/src/libs/3rdparty/cplusplus/ASTMatcher.h b/src/libs/3rdparty/cplusplus/ASTMatcher.h index bb4883c19b..0f826aee00 100644 --- a/src/libs/3rdparty/cplusplus/ASTMatcher.h +++ b/src/libs/3rdparty/cplusplus/ASTMatcher.h @@ -1,3 +1,23 @@ +// Copyright (c) 2008 Roberto Raggi <roberto.raggi@gmail.com> +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + #ifndef ASTMATCHER_H #define ASTMATCHER_H @@ -12,24 +32,19 @@ public: virtual ~ASTMatcher(); virtual bool match(AccessDeclarationAST *node, AccessDeclarationAST *pattern); - virtual bool match(QtObjectTagAST *node, QtObjectTagAST *pattern); - virtual bool match(QtPrivateSlotAST *node, QtPrivateSlotAST *pattern); - virtual bool match(QtPropertyDeclarationAST *node, QtPropertyDeclarationAST *pattern); - virtual bool match(QtEnumDeclarationAST *node, QtEnumDeclarationAST *pattern); - virtual bool match(QtFlagsDeclarationAST *node, QtFlagsDeclarationAST *pattern); - virtual bool match(QtInterfaceNameAST *node, QtInterfaceNameAST *pattern); - virtual bool match(QtInterfacesDeclarationAST *node, QtInterfacesDeclarationAST *pattern); virtual bool match(ArrayAccessAST *node, ArrayAccessAST *pattern); virtual bool match(ArrayDeclaratorAST *node, ArrayDeclaratorAST *pattern); virtual bool match(ArrayInitializerAST *node, ArrayInitializerAST *pattern); virtual bool match(AsmDefinitionAST *node, AsmDefinitionAST *pattern); - virtual bool match(AttributeSpecifierAST *node, AttributeSpecifierAST *pattern); virtual bool match(AttributeAST *node, AttributeAST *pattern); + virtual bool match(AttributeSpecifierAST *node, AttributeSpecifierAST *pattern); virtual bool match(BaseSpecifierAST *node, BaseSpecifierAST *pattern); virtual bool match(BinaryExpressionAST *node, BinaryExpressionAST *pattern); virtual bool match(BoolLiteralAST *node, BoolLiteralAST *pattern); + virtual bool match(BracedInitializerAST *node, BracedInitializerAST *pattern); virtual bool match(BreakStatementAST *node, BreakStatementAST *pattern); virtual bool match(CallAST *node, CallAST *pattern); + virtual bool match(CaptureAST *node, CaptureAST *pattern); virtual bool match(CaseStatementAST *node, CaseStatementAST *pattern); virtual bool match(CastExpressionAST *node, CastExpressionAST *pattern); virtual bool match(CatchClauseAST *node, CatchClauseAST *pattern); @@ -43,8 +58,8 @@ public: virtual bool match(ConversionFunctionIdAST *node, ConversionFunctionIdAST *pattern); virtual bool match(CppCastExpressionAST *node, CppCastExpressionAST *pattern); virtual bool match(CtorInitializerAST *node, CtorInitializerAST *pattern); - virtual bool match(DeclaratorAST *node, DeclaratorAST *pattern); virtual bool match(DeclarationStatementAST *node, DeclarationStatementAST *pattern); + virtual bool match(DeclaratorAST *node, DeclaratorAST *pattern); virtual bool match(DeclaratorIdAST *node, DeclaratorIdAST *pattern); virtual bool match(DeleteExpressionAST *node, DeleteExpressionAST *pattern); virtual bool match(DestructorNameAST *node, DestructorNameAST *pattern); @@ -57,14 +72,18 @@ public: virtual bool match(ExceptionSpecificationAST *node, ExceptionSpecificationAST *pattern); virtual bool match(ExpressionOrDeclarationStatementAST *node, ExpressionOrDeclarationStatementAST *pattern); virtual bool match(ExpressionStatementAST *node, ExpressionStatementAST *pattern); - virtual bool match(ForeachStatementAST *node, ForeachStatementAST *pattern); virtual bool match(ForStatementAST *node, ForStatementAST *pattern); + virtual bool match(ForeachStatementAST *node, ForeachStatementAST *pattern); virtual bool match(FunctionDeclaratorAST *node, FunctionDeclaratorAST *pattern); virtual bool match(FunctionDefinitionAST *node, FunctionDefinitionAST *pattern); virtual bool match(GotoStatementAST *node, GotoStatementAST *pattern); virtual bool match(IdExpressionAST *node, IdExpressionAST *pattern); virtual bool match(IfStatementAST *node, IfStatementAST *pattern); virtual bool match(LabeledStatementAST *node, LabeledStatementAST *pattern); + virtual bool match(LambdaCaptureAST *node, LambdaCaptureAST *pattern); + virtual bool match(LambdaDeclaratorAST *node, LambdaDeclaratorAST *pattern); + virtual bool match(LambdaExpressionAST *node, LambdaExpressionAST *pattern); + virtual bool match(LambdaIntroducerAST *node, LambdaIntroducerAST *pattern); virtual bool match(LinkageBodyAST *node, LinkageBodyAST *pattern); virtual bool match(LinkageSpecificationAST *node, LinkageSpecificationAST *pattern); virtual bool match(MemInitializerAST *node, MemInitializerAST *pattern); @@ -75,12 +94,37 @@ public: virtual bool match(NestedDeclaratorAST *node, NestedDeclaratorAST *pattern); virtual bool match(NestedExpressionAST *node, NestedExpressionAST *pattern); virtual bool match(NestedNameSpecifierAST *node, NestedNameSpecifierAST *pattern); - virtual bool match(NewPlacementAST *node, NewPlacementAST *pattern); virtual bool match(NewArrayDeclaratorAST *node, NewArrayDeclaratorAST *pattern); virtual bool match(NewExpressionAST *node, NewExpressionAST *pattern); virtual bool match(NewInitializerAST *node, NewInitializerAST *pattern); + virtual bool match(NewPlacementAST *node, NewPlacementAST *pattern); virtual bool match(NewTypeIdAST *node, NewTypeIdAST *pattern); virtual bool match(NumericLiteralAST *node, NumericLiteralAST *pattern); + virtual bool match(ObjCClassDeclarationAST *node, ObjCClassDeclarationAST *pattern); + virtual bool match(ObjCClassForwardDeclarationAST *node, ObjCClassForwardDeclarationAST *pattern); + virtual bool match(ObjCDynamicPropertiesDeclarationAST *node, ObjCDynamicPropertiesDeclarationAST *pattern); + virtual bool match(ObjCEncodeExpressionAST *node, ObjCEncodeExpressionAST *pattern); + virtual bool match(ObjCFastEnumerationAST *node, ObjCFastEnumerationAST *pattern); + virtual bool match(ObjCInstanceVariablesDeclarationAST *node, ObjCInstanceVariablesDeclarationAST *pattern); + virtual bool match(ObjCMessageArgumentAST *node, ObjCMessageArgumentAST *pattern); + virtual bool match(ObjCMessageArgumentDeclarationAST *node, ObjCMessageArgumentDeclarationAST *pattern); + virtual bool match(ObjCMessageExpressionAST *node, ObjCMessageExpressionAST *pattern); + virtual bool match(ObjCMethodDeclarationAST *node, ObjCMethodDeclarationAST *pattern); + virtual bool match(ObjCMethodPrototypeAST *node, ObjCMethodPrototypeAST *pattern); + virtual bool match(ObjCPropertyAttributeAST *node, ObjCPropertyAttributeAST *pattern); + virtual bool match(ObjCPropertyDeclarationAST *node, ObjCPropertyDeclarationAST *pattern); + virtual bool match(ObjCProtocolDeclarationAST *node, ObjCProtocolDeclarationAST *pattern); + virtual bool match(ObjCProtocolExpressionAST *node, ObjCProtocolExpressionAST *pattern); + virtual bool match(ObjCProtocolForwardDeclarationAST *node, ObjCProtocolForwardDeclarationAST *pattern); + virtual bool match(ObjCProtocolRefsAST *node, ObjCProtocolRefsAST *pattern); + virtual bool match(ObjCSelectorAST *node, ObjCSelectorAST *pattern); + virtual bool match(ObjCSelectorArgumentAST *node, ObjCSelectorArgumentAST *pattern); + virtual bool match(ObjCSelectorExpressionAST *node, ObjCSelectorExpressionAST *pattern); + virtual bool match(ObjCSynchronizedStatementAST *node, ObjCSynchronizedStatementAST *pattern); + virtual bool match(ObjCSynthesizedPropertiesDeclarationAST *node, ObjCSynthesizedPropertiesDeclarationAST *pattern); + virtual bool match(ObjCSynthesizedPropertyAST *node, ObjCSynthesizedPropertyAST *pattern); + virtual bool match(ObjCTypeNameAST *node, ObjCTypeNameAST *pattern); + virtual bool match(ObjCVisibilityDeclarationAST *node, ObjCVisibilityDeclarationAST *pattern); virtual bool match(OperatorAST *node, OperatorAST *pattern); virtual bool match(OperatorFunctionIdAST *node, OperatorFunctionIdAST *pattern); virtual bool match(ParameterDeclarationAST *node, ParameterDeclarationAST *pattern); @@ -88,6 +132,16 @@ public: virtual bool match(PointerAST *node, PointerAST *pattern); virtual bool match(PointerToMemberAST *node, PointerToMemberAST *pattern); virtual bool match(PostIncrDecrAST *node, PostIncrDecrAST *pattern); + virtual bool match(QtEnumDeclarationAST *node, QtEnumDeclarationAST *pattern); + virtual bool match(QtFlagsDeclarationAST *node, QtFlagsDeclarationAST *pattern); + virtual bool match(QtInterfaceNameAST *node, QtInterfaceNameAST *pattern); + virtual bool match(QtInterfacesDeclarationAST *node, QtInterfacesDeclarationAST *pattern); + virtual bool match(QtMemberDeclarationAST *node, QtMemberDeclarationAST *pattern); + virtual bool match(QtMethodAST *node, QtMethodAST *pattern); + virtual bool match(QtObjectTagAST *node, QtObjectTagAST *pattern); + virtual bool match(QtPrivateSlotAST *node, QtPrivateSlotAST *pattern); + virtual bool match(QtPropertyDeclarationAST *node, QtPropertyDeclarationAST *pattern); + virtual bool match(QtPropertyDeclarationItemAST *node, QtPropertyDeclarationItemAST *pattern); virtual bool match(QualifiedNameAST *node, QualifiedNameAST *pattern); virtual bool match(ReferenceAST *node, ReferenceAST *pattern); virtual bool match(ReturnStatementAST *node, ReturnStatementAST *pattern); @@ -102,55 +156,21 @@ public: virtual bool match(TemplateTypeParameterAST *node, TemplateTypeParameterAST *pattern); virtual bool match(ThisExpressionAST *node, ThisExpressionAST *pattern); virtual bool match(ThrowExpressionAST *node, ThrowExpressionAST *pattern); + virtual bool match(TrailingReturnTypeAST *node, TrailingReturnTypeAST *pattern); virtual bool match(TranslationUnitAST *node, TranslationUnitAST *pattern); virtual bool match(TryBlockStatementAST *node, TryBlockStatementAST *pattern); virtual bool match(TypeConstructorCallAST *node, TypeConstructorCallAST *pattern); virtual bool match(TypeIdAST *node, TypeIdAST *pattern); virtual bool match(TypeidExpressionAST *node, TypeidExpressionAST *pattern); - virtual bool match(TypeofSpecifierAST *node, TypeofSpecifierAST *pattern); virtual bool match(TypenameCallExpressionAST *node, TypenameCallExpressionAST *pattern); virtual bool match(TypenameTypeParameterAST *node, TypenameTypeParameterAST *pattern); + virtual bool match(TypeofSpecifierAST *node, TypeofSpecifierAST *pattern); virtual bool match(UnaryExpressionAST *node, UnaryExpressionAST *pattern); virtual bool match(UsingAST *node, UsingAST *pattern); virtual bool match(UsingDirectiveAST *node, UsingDirectiveAST *pattern); virtual bool match(WhileStatementAST *node, WhileStatementAST *pattern); - virtual bool match(QtMethodAST *node, QtMethodAST *pattern); - virtual bool match(QtMemberDeclarationAST *node, QtMemberDeclarationAST *pattern); - virtual bool match(ObjCClassDeclarationAST *node, ObjCClassDeclarationAST *pattern); - virtual bool match(QtPropertyDeclarationItemAST *node, QtPropertyDeclarationItemAST *pattern); - virtual bool match(ObjCClassForwardDeclarationAST *node, ObjCClassForwardDeclarationAST *pattern); - virtual bool match(ObjCProtocolDeclarationAST *node, ObjCProtocolDeclarationAST *pattern); - virtual bool match(ObjCProtocolForwardDeclarationAST *node, ObjCProtocolForwardDeclarationAST *pattern); - virtual bool match(ObjCProtocolRefsAST *node, ObjCProtocolRefsAST *pattern); - virtual bool match(ObjCSelectorAST *node, ObjCSelectorAST *pattern); - virtual bool match(ObjCMessageExpressionAST *node, ObjCMessageExpressionAST *pattern); - virtual bool match(ObjCMessageArgumentAST *node, ObjCMessageArgumentAST *pattern); - virtual bool match(ObjCProtocolExpressionAST *node, ObjCProtocolExpressionAST *pattern); - virtual bool match(ObjCTypeNameAST *node, ObjCTypeNameAST *pattern); - virtual bool match(ObjCEncodeExpressionAST *node, ObjCEncodeExpressionAST *pattern); - virtual bool match(ObjCSelectorArgumentAST *node, ObjCSelectorArgumentAST *pattern); - virtual bool match(ObjCSelectorExpressionAST *node, ObjCSelectorExpressionAST *pattern); - virtual bool match(ObjCInstanceVariablesDeclarationAST *node, ObjCInstanceVariablesDeclarationAST *pattern); - virtual bool match(ObjCVisibilityDeclarationAST *node, ObjCVisibilityDeclarationAST *pattern); - virtual bool match(ObjCPropertyAttributeAST *node, ObjCPropertyAttributeAST *pattern); - virtual bool match(ObjCPropertyDeclarationAST *node, ObjCPropertyDeclarationAST *pattern); - virtual bool match(ObjCMethodPrototypeAST *node, ObjCMethodPrototypeAST *pattern); - virtual bool match(ObjCMethodDeclarationAST *node, ObjCMethodDeclarationAST *pattern); - virtual bool match(ObjCMessageArgumentDeclarationAST *node, ObjCMessageArgumentDeclarationAST *pattern); - virtual bool match(ObjCSynthesizedPropertyAST *node, ObjCSynthesizedPropertyAST *pattern); - virtual bool match(ObjCSynthesizedPropertiesDeclarationAST *node, ObjCSynthesizedPropertiesDeclarationAST *pattern); - virtual bool match(ObjCDynamicPropertiesDeclarationAST *node, ObjCDynamicPropertiesDeclarationAST *pattern); - virtual bool match(ObjCFastEnumerationAST *node, ObjCFastEnumerationAST *pattern); - virtual bool match(ObjCSynchronizedStatementAST *node, ObjCSynchronizedStatementAST *pattern); - virtual bool match(LambdaExpressionAST *node, LambdaExpressionAST *pattern); - virtual bool match(LambdaIntroducerAST *node, LambdaIntroducerAST *pattern); - virtual bool match(LambdaCaptureAST *node, LambdaCaptureAST *pattern); - virtual bool match(LambdaDeclaratorAST *node, LambdaDeclaratorAST *pattern); - virtual bool match(CaptureAST *node, CaptureAST *pattern); - virtual bool match(TrailingReturnTypeAST *node, TrailingReturnTypeAST *pattern); - virtual bool match(BracedInitializerAST *node, BracedInitializerAST *pattern); }; } // namespace CPlusPlus -#endif // ASTMATCHER_H +#endif // CPLUSPLUS_ASTMATCHER_H diff --git a/src/libs/3rdparty/cplusplus/ASTVisitor.h b/src/libs/3rdparty/cplusplus/ASTVisitor.h index da124052ba..5508b775a2 100644 --- a/src/libs/3rdparty/cplusplus/ASTVisitor.h +++ b/src/libs/3rdparty/cplusplus/ASTVisitor.h @@ -24,7 +24,6 @@ #include "CPlusPlusForwardDeclarations.h" #include "ASTfwd.h" - namespace CPlusPlus { class CPLUSPLUS_EXPORT ASTVisitor @@ -75,22 +74,19 @@ public: virtual void postVisit(AST *) {} virtual bool visit(AccessDeclarationAST *) { return true; } - virtual bool visit(QtObjectTagAST *) { return true; } - virtual bool visit(QtPrivateSlotAST *) { return true; } - virtual bool visit(QtPropertyDeclarationAST *) { return true; } - virtual bool visit(QtEnumDeclarationAST *) { return true; } - virtual bool visit(QtFlagsDeclarationAST *) { return true; } virtual bool visit(ArrayAccessAST *) { return true; } virtual bool visit(ArrayDeclaratorAST *) { return true; } virtual bool visit(ArrayInitializerAST *) { return true; } virtual bool visit(AsmDefinitionAST *) { return true; } - virtual bool visit(AttributeSpecifierAST *) { return true; } virtual bool visit(AttributeAST *) { return true; } + virtual bool visit(AttributeSpecifierAST *) { return true; } virtual bool visit(BaseSpecifierAST *) { return true; } virtual bool visit(BinaryExpressionAST *) { return true; } virtual bool visit(BoolLiteralAST *) { return true; } + virtual bool visit(BracedInitializerAST *) { return true; } virtual bool visit(BreakStatementAST *) { return true; } virtual bool visit(CallAST *) { return true; } + virtual bool visit(CaptureAST *) { return true; } virtual bool visit(CaseStatementAST *) { return true; } virtual bool visit(CastExpressionAST *) { return true; } virtual bool visit(CatchClauseAST *) { return true; } @@ -104,8 +100,8 @@ public: virtual bool visit(ConversionFunctionIdAST *) { return true; } virtual bool visit(CppCastExpressionAST *) { return true; } virtual bool visit(CtorInitializerAST *) { return true; } - virtual bool visit(DeclaratorAST *) { return true; } virtual bool visit(DeclarationStatementAST *) { return true; } + virtual bool visit(DeclaratorAST *) { return true; } virtual bool visit(DeclaratorIdAST *) { return true; } virtual bool visit(DeleteExpressionAST *) { return true; } virtual bool visit(DestructorNameAST *) { return true; } @@ -118,14 +114,18 @@ public: virtual bool visit(ExceptionSpecificationAST *) { return true; } virtual bool visit(ExpressionOrDeclarationStatementAST *) { return true; } virtual bool visit(ExpressionStatementAST *) { return true; } - virtual bool visit(ForeachStatementAST *) { return true; } virtual bool visit(ForStatementAST *) { return true; } + virtual bool visit(ForeachStatementAST *) { return true; } virtual bool visit(FunctionDeclaratorAST *) { return true; } virtual bool visit(FunctionDefinitionAST *) { return true; } virtual bool visit(GotoStatementAST *) { return true; } virtual bool visit(IdExpressionAST *) { return true; } virtual bool visit(IfStatementAST *) { return true; } virtual bool visit(LabeledStatementAST *) { return true; } + virtual bool visit(LambdaCaptureAST *) { return true; } + virtual bool visit(LambdaDeclaratorAST *) { return true; } + virtual bool visit(LambdaExpressionAST *) { return true; } + virtual bool visit(LambdaIntroducerAST *) { return true; } virtual bool visit(LinkageBodyAST *) { return true; } virtual bool visit(LinkageSpecificationAST *) { return true; } virtual bool visit(MemInitializerAST *) { return true; } @@ -136,12 +136,37 @@ public: virtual bool visit(NestedDeclaratorAST *) { return true; } virtual bool visit(NestedExpressionAST *) { return true; } virtual bool visit(NestedNameSpecifierAST *) { return true; } - virtual bool visit(NewPlacementAST *) { return true; } virtual bool visit(NewArrayDeclaratorAST *) { return true; } virtual bool visit(NewExpressionAST *) { return true; } virtual bool visit(NewInitializerAST *) { return true; } + virtual bool visit(NewPlacementAST *) { return true; } virtual bool visit(NewTypeIdAST *) { return true; } virtual bool visit(NumericLiteralAST *) { return true; } + virtual bool visit(ObjCClassDeclarationAST *) { return true; } + virtual bool visit(ObjCClassForwardDeclarationAST *) { return true; } + virtual bool visit(ObjCDynamicPropertiesDeclarationAST *) { return true; } + virtual bool visit(ObjCEncodeExpressionAST *) { return true; } + virtual bool visit(ObjCFastEnumerationAST *) { return true; } + virtual bool visit(ObjCInstanceVariablesDeclarationAST *) { return true; } + virtual bool visit(ObjCMessageArgumentAST *) { return true; } + virtual bool visit(ObjCMessageArgumentDeclarationAST *) { return true; } + virtual bool visit(ObjCMessageExpressionAST *) { return true; } + virtual bool visit(ObjCMethodDeclarationAST *) { return true; } + virtual bool visit(ObjCMethodPrototypeAST *) { return true; } + virtual bool visit(ObjCPropertyAttributeAST *) { return true; } + virtual bool visit(ObjCPropertyDeclarationAST *) { return true; } + virtual bool visit(ObjCProtocolDeclarationAST *) { return true; } + virtual bool visit(ObjCProtocolExpressionAST *) { return true; } + virtual bool visit(ObjCProtocolForwardDeclarationAST *) { return true; } + virtual bool visit(ObjCProtocolRefsAST *) { return true; } + virtual bool visit(ObjCSelectorAST *) { return true; } + virtual bool visit(ObjCSelectorArgumentAST *) { return true; } + virtual bool visit(ObjCSelectorExpressionAST *) { return true; } + virtual bool visit(ObjCSynchronizedStatementAST *) { return true; } + virtual bool visit(ObjCSynthesizedPropertiesDeclarationAST *) { return true; } + virtual bool visit(ObjCSynthesizedPropertyAST *) { return true; } + virtual bool visit(ObjCTypeNameAST *) { return true; } + virtual bool visit(ObjCVisibilityDeclarationAST *) { return true; } virtual bool visit(OperatorAST *) { return true; } virtual bool visit(OperatorFunctionIdAST *) { return true; } virtual bool visit(ParameterDeclarationAST *) { return true; } @@ -149,6 +174,16 @@ public: virtual bool visit(PointerAST *) { return true; } virtual bool visit(PointerToMemberAST *) { return true; } virtual bool visit(PostIncrDecrAST *) { return true; } + virtual bool visit(QtEnumDeclarationAST *) { return true; } + virtual bool visit(QtFlagsDeclarationAST *) { return true; } + virtual bool visit(QtInterfaceNameAST *) { return true; } + virtual bool visit(QtInterfacesDeclarationAST *) { return true; } + virtual bool visit(QtMemberDeclarationAST *) { return true; } + virtual bool visit(QtMethodAST *) { return true; } + virtual bool visit(QtObjectTagAST *) { return true; } + virtual bool visit(QtPrivateSlotAST *) { return true; } + virtual bool visit(QtPropertyDeclarationAST *) { return true; } + virtual bool visit(QtPropertyDeclarationItemAST *) { return true; } virtual bool visit(QualifiedNameAST *) { return true; } virtual bool visit(ReferenceAST *) { return true; } virtual bool visit(ReturnStatementAST *) { return true; } @@ -163,208 +198,163 @@ public: virtual bool visit(TemplateTypeParameterAST *) { return true; } virtual bool visit(ThisExpressionAST *) { return true; } virtual bool visit(ThrowExpressionAST *) { return true; } + virtual bool visit(TrailingReturnTypeAST *) { return true; } virtual bool visit(TranslationUnitAST *) { return true; } virtual bool visit(TryBlockStatementAST *) { return true; } virtual bool visit(TypeConstructorCallAST *) { return true; } virtual bool visit(TypeIdAST *) { return true; } virtual bool visit(TypeidExpressionAST *) { return true; } - virtual bool visit(TypeofSpecifierAST *) { return true; } virtual bool visit(TypenameCallExpressionAST *) { return true; } virtual bool visit(TypenameTypeParameterAST *) { return true; } + virtual bool visit(TypeofSpecifierAST *) { return true; } virtual bool visit(UnaryExpressionAST *) { return true; } virtual bool visit(UsingAST *) { return true; } virtual bool visit(UsingDirectiveAST *) { return true; } virtual bool visit(WhileStatementAST *) { return true; } - virtual bool visit(QtMethodAST *) { return true; } - virtual bool visit(QtMemberDeclarationAST *) { return true; } - virtual bool visit(QtPropertyDeclarationItemAST *) { return true; } - virtual bool visit(QtInterfacesDeclarationAST *) { return true; } - virtual bool visit(QtInterfaceNameAST *) { return true; } - - // C++0x - virtual bool visit(LambdaExpressionAST *) { return true; } - virtual bool visit(LambdaIntroducerAST *) { return true; } - virtual bool visit(LambdaCaptureAST *) { return true; } - virtual bool visit(LambdaDeclaratorAST *) { return true; } - virtual bool visit(CaptureAST *) { return true; } - virtual bool visit(TrailingReturnTypeAST *) { return true; } - virtual bool visit(BracedInitializerAST *) { return true; } - - // ObjC++ - virtual bool visit(ObjCClassDeclarationAST *) { return true; } - virtual bool visit(ObjCClassForwardDeclarationAST *) { return true; } - virtual bool visit(ObjCProtocolDeclarationAST *) { return true; } - virtual bool visit(ObjCProtocolForwardDeclarationAST *) { return true; } - virtual bool visit(ObjCProtocolRefsAST *) { return true; } - virtual bool visit(ObjCSelectorAST *) { return true; } - virtual bool visit(ObjCMessageExpressionAST *) { return true; } - virtual bool visit(ObjCMessageArgumentAST *) { return true; } - virtual bool visit(ObjCProtocolExpressionAST *) { return true; } - virtual bool visit(ObjCTypeNameAST *) { return true; } - virtual bool visit(ObjCEncodeExpressionAST *) { return true; } - virtual bool visit(ObjCSelectorArgumentAST *) { return true; } - virtual bool visit(ObjCSelectorExpressionAST *) { return true; } - virtual bool visit(ObjCInstanceVariablesDeclarationAST *) { return true; } - virtual bool visit(ObjCVisibilityDeclarationAST *) { return true; } - virtual bool visit(ObjCPropertyAttributeAST *) { return true; } - virtual bool visit(ObjCPropertyDeclarationAST *) { return true; } - virtual bool visit(ObjCMethodPrototypeAST *) { return true; } - virtual bool visit(ObjCMethodDeclarationAST *) { return true; } - virtual bool visit(ObjCMessageArgumentDeclarationAST *) { return true; } - virtual bool visit(ObjCSynthesizedPropertyAST *) { return true; } - virtual bool visit(ObjCSynthesizedPropertiesDeclarationAST *) { return true; } - virtual bool visit(ObjCDynamicPropertiesDeclarationAST *) { return true; } - virtual bool visit(ObjCFastEnumerationAST *) { return true; } - virtual bool visit(ObjCSynchronizedStatementAST *) { return true; } - virtual void endVisit(AccessDeclarationAST *) { } + virtual void endVisit(AccessDeclarationAST *) {} + virtual void endVisit(ArrayAccessAST *) {} + virtual void endVisit(ArrayDeclaratorAST *) {} + virtual void endVisit(ArrayInitializerAST *) {} + virtual void endVisit(AsmDefinitionAST *) {} + virtual void endVisit(AttributeAST *) {} + virtual void endVisit(AttributeSpecifierAST *) {} + virtual void endVisit(BaseSpecifierAST *) {} + virtual void endVisit(BinaryExpressionAST *) {} + virtual void endVisit(BoolLiteralAST *) {} + virtual void endVisit(BracedInitializerAST *) {} + virtual void endVisit(BreakStatementAST *) {} + virtual void endVisit(CallAST *) {} + virtual void endVisit(CaptureAST *) {} + virtual void endVisit(CaseStatementAST *) {} + virtual void endVisit(CastExpressionAST *) {} + virtual void endVisit(CatchClauseAST *) {} + virtual void endVisit(ClassSpecifierAST *) {} + virtual void endVisit(CompoundExpressionAST *) {} + virtual void endVisit(CompoundLiteralAST *) {} + virtual void endVisit(CompoundStatementAST *) {} + virtual void endVisit(ConditionAST *) {} + virtual void endVisit(ConditionalExpressionAST *) {} + virtual void endVisit(ContinueStatementAST *) {} + virtual void endVisit(ConversionFunctionIdAST *) {} + virtual void endVisit(CppCastExpressionAST *) {} + virtual void endVisit(CtorInitializerAST *) {} + virtual void endVisit(DeclarationStatementAST *) {} + virtual void endVisit(DeclaratorAST *) {} + virtual void endVisit(DeclaratorIdAST *) {} + virtual void endVisit(DeleteExpressionAST *) {} + virtual void endVisit(DestructorNameAST *) {} + virtual void endVisit(DoStatementAST *) {} + virtual void endVisit(ElaboratedTypeSpecifierAST *) {} + virtual void endVisit(EmptyDeclarationAST *) {} + virtual void endVisit(EnumSpecifierAST *) {} + virtual void endVisit(EnumeratorAST *) {} + virtual void endVisit(ExceptionDeclarationAST *) {} + virtual void endVisit(ExceptionSpecificationAST *) {} + virtual void endVisit(ExpressionOrDeclarationStatementAST *) {} + virtual void endVisit(ExpressionStatementAST *) {} + virtual void endVisit(ForStatementAST *) {} + virtual void endVisit(ForeachStatementAST *) {} + virtual void endVisit(FunctionDeclaratorAST *) {} + virtual void endVisit(FunctionDefinitionAST *) {} + virtual void endVisit(GotoStatementAST *) {} + virtual void endVisit(IdExpressionAST *) {} + virtual void endVisit(IfStatementAST *) {} + virtual void endVisit(LabeledStatementAST *) {} + virtual void endVisit(LambdaCaptureAST *) {} + virtual void endVisit(LambdaDeclaratorAST *) {} + virtual void endVisit(LambdaExpressionAST *) {} + virtual void endVisit(LambdaIntroducerAST *) {} + virtual void endVisit(LinkageBodyAST *) {} + virtual void endVisit(LinkageSpecificationAST *) {} + virtual void endVisit(MemInitializerAST *) {} + virtual void endVisit(MemberAccessAST *) {} + virtual void endVisit(NamedTypeSpecifierAST *) {} + virtual void endVisit(NamespaceAST *) {} + virtual void endVisit(NamespaceAliasDefinitionAST *) {} + virtual void endVisit(NestedDeclaratorAST *) {} + virtual void endVisit(NestedExpressionAST *) {} + virtual void endVisit(NestedNameSpecifierAST *) {} + virtual void endVisit(NewArrayDeclaratorAST *) {} + virtual void endVisit(NewExpressionAST *) {} + virtual void endVisit(NewInitializerAST *) {} + virtual void endVisit(NewPlacementAST *) {} + virtual void endVisit(NewTypeIdAST *) {} + virtual void endVisit(NumericLiteralAST *) {} + virtual void endVisit(ObjCClassDeclarationAST *) {} + virtual void endVisit(ObjCClassForwardDeclarationAST *) {} + virtual void endVisit(ObjCDynamicPropertiesDeclarationAST *) {} + virtual void endVisit(ObjCEncodeExpressionAST *) {} + virtual void endVisit(ObjCFastEnumerationAST *) {} + virtual void endVisit(ObjCInstanceVariablesDeclarationAST *) {} + virtual void endVisit(ObjCMessageArgumentAST *) {} + virtual void endVisit(ObjCMessageArgumentDeclarationAST *) {} + virtual void endVisit(ObjCMessageExpressionAST *) {} + virtual void endVisit(ObjCMethodDeclarationAST *) {} + virtual void endVisit(ObjCMethodPrototypeAST *) {} + virtual void endVisit(ObjCPropertyAttributeAST *) {} + virtual void endVisit(ObjCPropertyDeclarationAST *) {} + virtual void endVisit(ObjCProtocolDeclarationAST *) {} + virtual void endVisit(ObjCProtocolExpressionAST *) {} + virtual void endVisit(ObjCProtocolForwardDeclarationAST *) {} + virtual void endVisit(ObjCProtocolRefsAST *) {} + virtual void endVisit(ObjCSelectorAST *) {} + virtual void endVisit(ObjCSelectorArgumentAST *) {} + virtual void endVisit(ObjCSelectorExpressionAST *) {} + virtual void endVisit(ObjCSynchronizedStatementAST *) {} + virtual void endVisit(ObjCSynthesizedPropertiesDeclarationAST *) {} + virtual void endVisit(ObjCSynthesizedPropertyAST *) {} + virtual void endVisit(ObjCTypeNameAST *) {} + virtual void endVisit(ObjCVisibilityDeclarationAST *) {} + virtual void endVisit(OperatorAST *) {} + virtual void endVisit(OperatorFunctionIdAST *) {} + virtual void endVisit(ParameterDeclarationAST *) {} + virtual void endVisit(ParameterDeclarationClauseAST *) {} + virtual void endVisit(PointerAST *) {} + virtual void endVisit(PointerToMemberAST *) {} + virtual void endVisit(PostIncrDecrAST *) {} + virtual void endVisit(QtEnumDeclarationAST *) {} + virtual void endVisit(QtFlagsDeclarationAST *) {} + virtual void endVisit(QtInterfaceNameAST *) {} + virtual void endVisit(QtInterfacesDeclarationAST *) {} + virtual void endVisit(QtMemberDeclarationAST *) {} + virtual void endVisit(QtMethodAST *) {} virtual void endVisit(QtObjectTagAST *) {} virtual void endVisit(QtPrivateSlotAST *) {} - virtual void endVisit(QtPropertyDeclarationAST *) { } - virtual void endVisit(QtEnumDeclarationAST *) { } - virtual void endVisit(QtFlagsDeclarationAST *) { } - virtual void endVisit(ArrayAccessAST *) { } - virtual void endVisit(ArrayDeclaratorAST *) { } - virtual void endVisit(ArrayInitializerAST *) { } - virtual void endVisit(AsmDefinitionAST *) { } - virtual void endVisit(AttributeSpecifierAST *) { } - virtual void endVisit(AttributeAST *) { } - virtual void endVisit(BaseSpecifierAST *) { } - virtual void endVisit(BinaryExpressionAST *) { } - virtual void endVisit(BoolLiteralAST *) { } - virtual void endVisit(BreakStatementAST *) { } - virtual void endVisit(CallAST *) { } - virtual void endVisit(CaseStatementAST *) { } - virtual void endVisit(CastExpressionAST *) { } - virtual void endVisit(CatchClauseAST *) { } - virtual void endVisit(ClassSpecifierAST *) { } - virtual void endVisit(CompoundExpressionAST *) { } - virtual void endVisit(CompoundLiteralAST *) { } - virtual void endVisit(CompoundStatementAST *) { } - virtual void endVisit(ConditionAST *) { } - virtual void endVisit(ConditionalExpressionAST *) { } - virtual void endVisit(ContinueStatementAST *) { } - virtual void endVisit(ConversionFunctionIdAST *) { } - virtual void endVisit(CppCastExpressionAST *) { } - virtual void endVisit(CtorInitializerAST *) { } - virtual void endVisit(DeclaratorAST *) { } - virtual void endVisit(DeclarationStatementAST *) { } - virtual void endVisit(DeclaratorIdAST *) { } - virtual void endVisit(DeleteExpressionAST *) { } - virtual void endVisit(DestructorNameAST *) { } - virtual void endVisit(DoStatementAST *) { } - virtual void endVisit(ElaboratedTypeSpecifierAST *) { } - virtual void endVisit(EmptyDeclarationAST *) { } - virtual void endVisit(EnumSpecifierAST *) { } - virtual void endVisit(EnumeratorAST *) { } - virtual void endVisit(ExceptionDeclarationAST *) { } - virtual void endVisit(ExceptionSpecificationAST *) { } - virtual void endVisit(ExpressionOrDeclarationStatementAST *) { } - virtual void endVisit(ExpressionStatementAST *) { } - virtual void endVisit(ForeachStatementAST *) { } - virtual void endVisit(ForStatementAST *) { } - virtual void endVisit(FunctionDeclaratorAST *) { } - virtual void endVisit(FunctionDefinitionAST *) { } - virtual void endVisit(GotoStatementAST *) { } - virtual void endVisit(IdExpressionAST *) { } - virtual void endVisit(IfStatementAST *) { } - virtual void endVisit(LabeledStatementAST *) { } - virtual void endVisit(LinkageBodyAST *) { } - virtual void endVisit(LinkageSpecificationAST *) { } - virtual void endVisit(MemInitializerAST *) { } - virtual void endVisit(MemberAccessAST *) { } - virtual void endVisit(NamedTypeSpecifierAST *) { } - virtual void endVisit(NamespaceAST *) { } - virtual void endVisit(NamespaceAliasDefinitionAST *) { } - virtual void endVisit(NestedDeclaratorAST *) { } - virtual void endVisit(NestedExpressionAST *) { } - virtual void endVisit(NestedNameSpecifierAST *) { } - virtual void endVisit(NewPlacementAST *) { } - virtual void endVisit(NewArrayDeclaratorAST *) { } - virtual void endVisit(NewExpressionAST *) { } - virtual void endVisit(NewInitializerAST *) { } - virtual void endVisit(NewTypeIdAST *) { } - virtual void endVisit(NumericLiteralAST *) { } - virtual void endVisit(OperatorAST *) { } - virtual void endVisit(OperatorFunctionIdAST *) { } - virtual void endVisit(ParameterDeclarationAST *) { } - virtual void endVisit(ParameterDeclarationClauseAST *) { } - virtual void endVisit(PointerAST *) { } - virtual void endVisit(PointerToMemberAST *) { } - virtual void endVisit(PostIncrDecrAST *) { } - virtual void endVisit(QualifiedNameAST *) { } - virtual void endVisit(ReferenceAST *) { } - virtual void endVisit(ReturnStatementAST *) { } - virtual void endVisit(SimpleDeclarationAST *) { } - virtual void endVisit(SimpleNameAST *) { } - virtual void endVisit(SimpleSpecifierAST *) { } - virtual void endVisit(SizeofExpressionAST *) { } - virtual void endVisit(StringLiteralAST *) { } - virtual void endVisit(SwitchStatementAST *) { } - virtual void endVisit(TemplateDeclarationAST *) { } - virtual void endVisit(TemplateIdAST *) { } - virtual void endVisit(TemplateTypeParameterAST *) { } - virtual void endVisit(ThisExpressionAST *) { } - virtual void endVisit(ThrowExpressionAST *) { } - virtual void endVisit(TranslationUnitAST *) { } - virtual void endVisit(TryBlockStatementAST *) { } - virtual void endVisit(TypeConstructorCallAST *) { } - virtual void endVisit(TypeIdAST *) { } - virtual void endVisit(TypeidExpressionAST *) { } - virtual void endVisit(TypeofSpecifierAST *) { } - virtual void endVisit(TypenameCallExpressionAST *) { } - virtual void endVisit(TypenameTypeParameterAST *) { } - virtual void endVisit(UnaryExpressionAST *) { } - virtual void endVisit(UsingAST *) { } - virtual void endVisit(UsingDirectiveAST *) { } - virtual void endVisit(WhileStatementAST *) { } - virtual void endVisit(QtMethodAST *) { } - virtual void endVisit(QtMemberDeclarationAST *) { } - virtual void endVisit(QtPropertyDeclarationItemAST *) { } - virtual void endVisit(QtInterfacesDeclarationAST *) { } - virtual void endVisit(QtInterfaceNameAST *) { } - - // C++0x - virtual void endVisit(LambdaExpressionAST *) { } - virtual void endVisit(LambdaIntroducerAST *) { } - virtual void endVisit(LambdaCaptureAST *) { } - virtual void endVisit(LambdaDeclaratorAST *) { } - virtual void endVisit(CaptureAST *) { } - virtual void endVisit(TrailingReturnTypeAST *) { } - virtual void endVisit(BracedInitializerAST *) { } - - // ObjC++ - virtual void endVisit(ObjCClassDeclarationAST *) { } - virtual void endVisit(ObjCClassForwardDeclarationAST *) { } - virtual void endVisit(ObjCProtocolDeclarationAST *) { } - virtual void endVisit(ObjCProtocolForwardDeclarationAST *) { } - virtual void endVisit(ObjCProtocolRefsAST *) { } - virtual void endVisit(ObjCSelectorAST *) { } - virtual void endVisit(ObjCMessageExpressionAST *) { } - virtual void endVisit(ObjCMessageArgumentAST *) { } - virtual void endVisit(ObjCProtocolExpressionAST *) { } - virtual void endVisit(ObjCTypeNameAST *) { } - virtual void endVisit(ObjCEncodeExpressionAST *) { } - virtual void endVisit(ObjCSelectorArgumentAST *) { } - virtual void endVisit(ObjCSelectorExpressionAST *) { } - virtual void endVisit(ObjCInstanceVariablesDeclarationAST *) { } - virtual void endVisit(ObjCVisibilityDeclarationAST *) { } - virtual void endVisit(ObjCPropertyAttributeAST *) { } - virtual void endVisit(ObjCPropertyDeclarationAST *) { } - virtual void endVisit(ObjCMethodPrototypeAST *) { } - virtual void endVisit(ObjCMethodDeclarationAST *) { } - virtual void endVisit(ObjCMessageArgumentDeclarationAST *) { } - virtual void endVisit(ObjCSynthesizedPropertyAST *) { } - virtual void endVisit(ObjCSynthesizedPropertiesDeclarationAST *) { } - virtual void endVisit(ObjCDynamicPropertiesDeclarationAST *) { } - virtual void endVisit(ObjCFastEnumerationAST *) { } - virtual void endVisit(ObjCSynchronizedStatementAST *) { } + virtual void endVisit(QtPropertyDeclarationAST *) {} + virtual void endVisit(QtPropertyDeclarationItemAST *) {} + virtual void endVisit(QualifiedNameAST *) {} + virtual void endVisit(ReferenceAST *) {} + virtual void endVisit(ReturnStatementAST *) {} + virtual void endVisit(SimpleDeclarationAST *) {} + virtual void endVisit(SimpleNameAST *) {} + virtual void endVisit(SimpleSpecifierAST *) {} + virtual void endVisit(SizeofExpressionAST *) {} + virtual void endVisit(StringLiteralAST *) {} + virtual void endVisit(SwitchStatementAST *) {} + virtual void endVisit(TemplateDeclarationAST *) {} + virtual void endVisit(TemplateIdAST *) {} + virtual void endVisit(TemplateTypeParameterAST *) {} + virtual void endVisit(ThisExpressionAST *) {} + virtual void endVisit(ThrowExpressionAST *) {} + virtual void endVisit(TrailingReturnTypeAST *) {} + virtual void endVisit(TranslationUnitAST *) {} + virtual void endVisit(TryBlockStatementAST *) {} + virtual void endVisit(TypeConstructorCallAST *) {} + virtual void endVisit(TypeIdAST *) {} + virtual void endVisit(TypeidExpressionAST *) {} + virtual void endVisit(TypenameCallExpressionAST *) {} + virtual void endVisit(TypenameTypeParameterAST *) {} + virtual void endVisit(TypeofSpecifierAST *) {} + virtual void endVisit(UnaryExpressionAST *) {} + virtual void endVisit(UsingAST *) {} + virtual void endVisit(UsingDirectiveAST *) {} + virtual void endVisit(WhileStatementAST *) {} private: - TranslationUnit *_translationUnit; + TranslationUnit *_translationUnit; }; } // namespace CPlusPlus - #endif // CPLUSPLUS_ASTVISITOR_H |