Mercurial > projects > qtd
annotate generator/parser/default_visitor.h @ 362:bcbfffef4f9e
Undecorated D types can be registered with Qt
author | Max Samukha <maxter@maxter.com> |
---|---|
date | Wed, 09 Jun 2010 16:37:24 +0300 |
parents | 09a0f1d048f2 |
children |
rev | line source |
---|---|
1 | 1 /**************************************************************************** |
2 ** | |
52
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
3 ** Copyright (C) 1992-2009 Nokia. All rights reserved. |
1 | 4 ** Copyright (C) 2002-2005 Roberto Raggi <roberto@kdevelop.org> |
5 ** | |
6 ** This file is part of Qt Jambi. | |
7 ** | |
52
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
8 ** Commercial Usage |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
9 Licensees holding valid Qt Commercial licenses may use this file in |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
10 accordance with the Qt Commercial License Agreement provided with the |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
11 Software or, alternatively, in accordance with the terms contained in |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
12 a written agreement between you and Nokia. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
13 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
14 GNU Lesser General Public License Usage |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
15 Alternatively, this file may be used under the terms of the GNU Lesser |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
16 General Public License version 2.1 as published by the Free Software |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
17 Foundation and appearing in the file LICENSE.LGPL included in the |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
18 packaging of this file. Please review the following information to |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
19 ensure the GNU Lesser General Public License version 2.1 requirements |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
20 will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
21 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
22 In addition, as a special exception, Nokia gives you certain |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
23 additional rights. These rights are described in the Nokia Qt LGPL |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
24 Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
25 package. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
26 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
27 GNU General Public License Usage |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
28 Alternatively, this file may be used under the terms of the GNU |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
29 General Public License version 3.0 as published by the Free Software |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
30 Foundation and appearing in the file LICENSE.GPL included in the |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
31 packaging of this file. Please review the following information to |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
32 ensure the GNU General Public License version 3.0 requirements will be |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
33 met: http://www.gnu.org/copyleft/gpl.html. |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
34 |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
35 If you are unsure which license is appropriate for your use, please |
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
1
diff
changeset
|
36 contact the sales department at qt-sales@nokia.com. |
1 | 37 |
38 ** | |
39 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | |
40 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
41 ** | |
42 ****************************************************************************/ | |
43 | |
44 | |
45 #ifndef DEFAULT_VISITOR_H | |
46 #define DEFAULT_VISITOR_H | |
47 | |
48 #include "visitor.h" | |
49 | |
50 class DefaultVisitor: public Visitor | |
51 { | |
52 public: | |
53 DefaultVisitor() {} | |
54 | |
55 protected: | |
56 virtual void visitAccessSpecifier(AccessSpecifierAST *); | |
57 virtual void visitAsmDefinition(AsmDefinitionAST *); | |
58 virtual void visitBaseClause(BaseClauseAST *); | |
59 virtual void visitBaseSpecifier(BaseSpecifierAST *); | |
60 virtual void visitBinaryExpression(BinaryExpressionAST *); | |
61 virtual void visitCastExpression(CastExpressionAST *); | |
62 virtual void visitClassMemberAccess(ClassMemberAccessAST *); | |
63 virtual void visitClassSpecifier(ClassSpecifierAST *); | |
64 virtual void visitCompoundStatement(CompoundStatementAST *); | |
65 virtual void visitCondition(ConditionAST *); | |
66 virtual void visitConditionalExpression(ConditionalExpressionAST *); | |
67 virtual void visitCppCastExpression(CppCastExpressionAST *); | |
68 virtual void visitCtorInitializer(CtorInitializerAST *); | |
69 virtual void visitDeclarationStatement(DeclarationStatementAST *); | |
70 virtual void visitDeclarator(DeclaratorAST *); | |
71 virtual void visitDeleteExpression(DeleteExpressionAST *); | |
72 virtual void visitDoStatement(DoStatementAST *); | |
73 virtual void visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *); | |
74 virtual void visitEnumSpecifier(EnumSpecifierAST *); | |
75 virtual void visitEnumerator(EnumeratorAST *); | |
76 virtual void visitExceptionSpecification(ExceptionSpecificationAST *); | |
77 virtual void visitExpressionOrDeclarationStatement(ExpressionOrDeclarationStatementAST *); | |
78 virtual void visitExpressionStatement(ExpressionStatementAST *); | |
79 virtual void visitForStatement(ForStatementAST *); | |
80 virtual void visitFunctionCall(FunctionCallAST *); | |
81 virtual void visitFunctionDefinition(FunctionDefinitionAST *); | |
82 virtual void visitIfStatement(IfStatementAST *); | |
83 virtual void visitIncrDecrExpression(IncrDecrExpressionAST *); | |
84 virtual void visitInitDeclarator(InitDeclaratorAST *); | |
85 virtual void visitInitializer(InitializerAST *); | |
86 virtual void visitInitializerClause(InitializerClauseAST *); | |
87 virtual void visitLabeledStatement(LabeledStatementAST *); | |
88 virtual void visitLinkageBody(LinkageBodyAST *); | |
89 virtual void visitLinkageSpecification(LinkageSpecificationAST *); | |
90 virtual void visitMemInitializer(MemInitializerAST *); | |
91 virtual void visitName(NameAST *); | |
92 virtual void visitNamespace(NamespaceAST *); | |
93 virtual void visitNamespaceAliasDefinition(NamespaceAliasDefinitionAST *); | |
94 virtual void visitNewDeclarator(NewDeclaratorAST *); | |
95 virtual void visitNewExpression(NewExpressionAST *); | |
96 virtual void visitNewInitializer(NewInitializerAST *); | |
97 virtual void visitNewTypeId(NewTypeIdAST *); | |
98 virtual void visitOperator(OperatorAST *); | |
99 virtual void visitOperatorFunctionId(OperatorFunctionIdAST *); | |
100 virtual void visitParameterDeclaration(ParameterDeclarationAST *); | |
101 virtual void visitParameterDeclarationClause(ParameterDeclarationClauseAST *); | |
102 virtual void visitPostfixExpression(PostfixExpressionAST *); | |
103 virtual void visitPrimaryExpression(PrimaryExpressionAST *); | |
104 virtual void visitPtrOperator(PtrOperatorAST *); | |
105 virtual void visitPtrToMember(PtrToMemberAST *); | |
106 virtual void visitReturnStatement(ReturnStatementAST *); | |
107 virtual void visitSimpleDeclaration(SimpleDeclarationAST *); | |
108 virtual void visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *); | |
109 virtual void visitSizeofExpression(SizeofExpressionAST *); | |
110 virtual void visitStringLiteral(StringLiteralAST *); | |
111 virtual void visitSubscriptExpression(SubscriptExpressionAST *); | |
112 virtual void visitSwitchStatement(SwitchStatementAST *); | |
113 virtual void visitTemplateArgument(TemplateArgumentAST *); | |
114 virtual void visitTemplateDeclaration(TemplateDeclarationAST *); | |
115 virtual void visitTemplateParameter(TemplateParameterAST *); | |
116 virtual void visitThrowExpression(ThrowExpressionAST *); | |
117 virtual void visitTranslationUnit(TranslationUnitAST *); | |
118 virtual void visitTryBlockStatement(TryBlockStatementAST *); | |
119 virtual void visitTypeId(TypeIdAST *); | |
120 virtual void visitTypeIdentification(TypeIdentificationAST *); | |
121 virtual void visitTypeParameter(TypeParameterAST *); | |
122 virtual void visitTypedef(TypedefAST *); | |
123 virtual void visitUnaryExpression(UnaryExpressionAST *); | |
124 virtual void visitUnqualifiedName(UnqualifiedNameAST *); | |
125 virtual void visitUsing(UsingAST *); | |
126 virtual void visitUsingDirective(UsingDirectiveAST *); | |
127 virtual void visitWhileStatement(WhileStatementAST *); | |
128 virtual void visitWinDeclSpec(WinDeclSpecAST *); | |
129 | |
130 private: | |
131 typedef void (Visitor::*visitor_fun_ptr)(AST *); | |
132 static visitor_fun_ptr _S_table[]; | |
133 }; | |
134 | |
135 #endif // VISITOR_H | |
136 | |
137 // kate: space-indent on; indent-width 2; replace-tabs on; |