]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/StmtNodes.td
MFC r234353:
[FreeBSD/stable/9.git] / contrib / llvm / tools / clang / include / clang / Basic / StmtNodes.td
1 class AttrSubject;
2
3 class Stmt<bit abstract = 0> : AttrSubject {
4   bit Abstract = abstract;
5 }
6
7 class DStmt<Stmt base, bit abstract = 0> : Stmt<abstract> {
8   Stmt Base = base;
9 }
10
11 // Statements
12 def NullStmt : Stmt;
13 def CompoundStmt : Stmt;
14 def LabelStmt : Stmt;
15 def AttributedStmt : Stmt;
16 def IfStmt : Stmt;
17 def SwitchStmt : Stmt;
18 def WhileStmt : Stmt;
19 def DoStmt : Stmt;
20 def ForStmt : Stmt;
21 def GotoStmt : Stmt;
22 def IndirectGotoStmt : Stmt;
23 def ContinueStmt : Stmt;
24 def BreakStmt : Stmt;
25 def ReturnStmt : Stmt;
26 def DeclStmt  : Stmt;
27 def SwitchCase : Stmt<1>;
28 def CaseStmt : DStmt<SwitchCase>;
29 def DefaultStmt : DStmt<SwitchCase>;
30
31 // GNU Extensions
32 def AsmStmt : Stmt;
33
34 // Obj-C statements
35 def ObjCAtTryStmt : Stmt;
36 def ObjCAtCatchStmt : Stmt;
37 def ObjCAtFinallyStmt : Stmt;
38 def ObjCAtThrowStmt : Stmt;
39 def ObjCAtSynchronizedStmt : Stmt;
40 def ObjCForCollectionStmt : Stmt;
41 def ObjCAutoreleasePoolStmt : Stmt;
42
43 // C++ statments
44 def CXXCatchStmt : Stmt;
45 def CXXTryStmt : Stmt;
46 def CXXForRangeStmt : Stmt;
47
48 // Expressions
49 def Expr : Stmt<1>;
50 def PredefinedExpr : DStmt<Expr>;
51 def DeclRefExpr : DStmt<Expr>;
52 def IntegerLiteral : DStmt<Expr>;
53 def FloatingLiteral : DStmt<Expr>;
54 def ImaginaryLiteral : DStmt<Expr>;
55 def StringLiteral : DStmt<Expr>;
56 def CharacterLiteral : DStmt<Expr>;
57 def ParenExpr : DStmt<Expr>;
58 def UnaryOperator : DStmt<Expr>;
59 def OffsetOfExpr : DStmt<Expr>;
60 def UnaryExprOrTypeTraitExpr : DStmt<Expr>;
61 def ArraySubscriptExpr : DStmt<Expr>;
62 def CallExpr : DStmt<Expr>;
63 def MemberExpr : DStmt<Expr>;
64 def CastExpr : DStmt<Expr, 1>;
65 def BinaryOperator : DStmt<Expr>;
66 def CompoundAssignOperator : DStmt<BinaryOperator>;
67 def AbstractConditionalOperator : DStmt<Expr, 1>;
68 def ConditionalOperator : DStmt<AbstractConditionalOperator>;
69 def BinaryConditionalOperator : DStmt<AbstractConditionalOperator>;
70 def ImplicitCastExpr : DStmt<CastExpr>;
71 def ExplicitCastExpr : DStmt<CastExpr, 1>;
72 def CStyleCastExpr : DStmt<ExplicitCastExpr>;
73 def CompoundLiteralExpr : DStmt<Expr>;
74 def ExtVectorElementExpr : DStmt<Expr>;
75 def InitListExpr : DStmt<Expr>;
76 def DesignatedInitExpr : DStmt<Expr>;
77 def ImplicitValueInitExpr : DStmt<Expr>;
78 def ParenListExpr : DStmt<Expr>;
79 def VAArgExpr : DStmt<Expr>;
80 def GenericSelectionExpr : DStmt<Expr>;
81 def PseudoObjectExpr : DStmt<Expr>;
82
83 // Atomic expressions
84 def AtomicExpr : DStmt<Expr>;
85
86 // GNU Extensions.
87 def AddrLabelExpr : DStmt<Expr>;
88 def StmtExpr : DStmt<Expr>;
89 def ChooseExpr : DStmt<Expr>;
90 def GNUNullExpr : DStmt<Expr>;
91
92 // C++ Expressions.
93 def CXXOperatorCallExpr : DStmt<CallExpr>;
94 def CXXMemberCallExpr : DStmt<CallExpr>;
95 def CXXNamedCastExpr : DStmt<ExplicitCastExpr, 1>;
96 def CXXStaticCastExpr : DStmt<CXXNamedCastExpr>;
97 def CXXDynamicCastExpr : DStmt<CXXNamedCastExpr>;
98 def CXXReinterpretCastExpr : DStmt<CXXNamedCastExpr>;
99 def CXXConstCastExpr : DStmt<CXXNamedCastExpr>;
100 def CXXFunctionalCastExpr : DStmt<ExplicitCastExpr>;
101 def CXXTypeidExpr : DStmt<Expr>;
102 def UserDefinedLiteral : DStmt<CallExpr>;
103 def CXXBoolLiteralExpr : DStmt<Expr>;
104 def CXXNullPtrLiteralExpr : DStmt<Expr>;
105 def CXXThisExpr : DStmt<Expr>;
106 def CXXThrowExpr : DStmt<Expr>;
107 def CXXDefaultArgExpr : DStmt<Expr>;
108 def CXXScalarValueInitExpr : DStmt<Expr>;
109 def CXXNewExpr : DStmt<Expr>;
110 def CXXDeleteExpr : DStmt<Expr>;
111 def CXXPseudoDestructorExpr : DStmt<Expr>;
112 def TypeTraitExpr : DStmt<Expr>;
113 def UnaryTypeTraitExpr : DStmt<Expr>;
114 def BinaryTypeTraitExpr : DStmt<Expr>;
115 def ArrayTypeTraitExpr : DStmt<Expr>;
116 def ExpressionTraitExpr : DStmt<Expr>;
117 def DependentScopeDeclRefExpr : DStmt<Expr>;
118 def CXXConstructExpr : DStmt<Expr>;
119 def CXXBindTemporaryExpr : DStmt<Expr>;
120 def ExprWithCleanups : DStmt<Expr>;
121 def CXXTemporaryObjectExpr : DStmt<CXXConstructExpr>;
122 def CXXUnresolvedConstructExpr : DStmt<Expr>;
123 def CXXDependentScopeMemberExpr : DStmt<Expr>;
124 def OverloadExpr : DStmt<Expr, 1>;
125 def UnresolvedLookupExpr : DStmt<OverloadExpr>;
126 def UnresolvedMemberExpr : DStmt<OverloadExpr>;
127 def CXXNoexceptExpr : DStmt<Expr>;
128 def PackExpansionExpr : DStmt<Expr>;
129 def SizeOfPackExpr : DStmt<Expr>;
130 def SubstNonTypeTemplateParmExpr : DStmt<Expr>;
131 def SubstNonTypeTemplateParmPackExpr : DStmt<Expr>;
132 def MaterializeTemporaryExpr : DStmt<Expr>;
133 def LambdaExpr : DStmt<Expr>;
134
135 // Obj-C Expressions.
136 def ObjCStringLiteral : DStmt<Expr>;
137 def ObjCNumericLiteral : DStmt<Expr>;
138 def ObjCArrayLiteral : DStmt<Expr>;
139 def ObjCDictionaryLiteral : DStmt<Expr>;
140 def ObjCEncodeExpr : DStmt<Expr>;
141 def ObjCMessageExpr : DStmt<Expr>;
142 def ObjCSelectorExpr : DStmt<Expr>;
143 def ObjCProtocolExpr : DStmt<Expr>;
144 def ObjCIvarRefExpr : DStmt<Expr>;
145 def ObjCPropertyRefExpr : DStmt<Expr>;
146 def ObjCIsaExpr : DStmt<Expr>;
147 def ObjCIndirectCopyRestoreExpr : DStmt<Expr>;
148 def ObjCBoolLiteralExpr : DStmt<Expr>;
149 def ObjCSubscriptRefExpr : DStmt<Expr>;
150
151 // Obj-C ARC Expressions.
152 def ObjCBridgedCastExpr : DStmt<ExplicitCastExpr>;
153
154 // CUDA Expressions.
155 def CUDAKernelCallExpr : DStmt<CallExpr>;
156
157 // Clang Extensions.
158 def ShuffleVectorExpr : DStmt<Expr>;
159 def BlockExpr : DStmt<Expr>;
160 def OpaqueValueExpr : DStmt<Expr>;
161
162 // Microsoft Extensions.
163 def CXXUuidofExpr : DStmt<Expr>; 
164 def SEHTryStmt : Stmt;
165 def SEHExceptStmt : Stmt;
166 def SEHFinallyStmt : Stmt;
167 def MSDependentExistsStmt : Stmt;
168
169 // OpenCL Extensions.
170 def AsTypeExpr : DStmt<Expr>;