]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/clang/Basic/StmtNodes.td
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / 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 def CapturedStmt : Stmt;
31
32 // Asm statements
33 def AsmStmt : Stmt<1>;
34 def GCCAsmStmt : DStmt<AsmStmt>;
35 def MSAsmStmt : DStmt<AsmStmt>;
36
37 // Obj-C statements
38 def ObjCAtTryStmt : Stmt;
39 def ObjCAtCatchStmt : Stmt;
40 def ObjCAtFinallyStmt : Stmt;
41 def ObjCAtThrowStmt : Stmt;
42 def ObjCAtSynchronizedStmt : Stmt;
43 def ObjCForCollectionStmt : Stmt;
44 def ObjCAutoreleasePoolStmt : Stmt;
45
46 // C++ statements
47 def CXXCatchStmt : Stmt;
48 def CXXTryStmt : Stmt;
49 def CXXForRangeStmt : Stmt;
50
51 // C++ Coroutines TS statements
52 def CoroutineBodyStmt : Stmt;
53 def CoreturnStmt : Stmt;
54
55 // Expressions
56 def Expr : Stmt<1>;
57 def PredefinedExpr : DStmt<Expr>;
58 def DeclRefExpr : DStmt<Expr>;
59 def IntegerLiteral : DStmt<Expr>;
60 def FixedPointLiteral : DStmt<Expr>;
61 def FloatingLiteral : DStmt<Expr>;
62 def ImaginaryLiteral : DStmt<Expr>;
63 def StringLiteral : DStmt<Expr>;
64 def CharacterLiteral : DStmt<Expr>;
65 def ParenExpr : DStmt<Expr>;
66 def UnaryOperator : DStmt<Expr>;
67 def OffsetOfExpr : DStmt<Expr>;
68 def UnaryExprOrTypeTraitExpr : DStmt<Expr>;
69 def ArraySubscriptExpr : DStmt<Expr>;
70 def OMPArraySectionExpr : DStmt<Expr>;
71 def CallExpr : DStmt<Expr>;
72 def MemberExpr : DStmt<Expr>;
73 def CastExpr : DStmt<Expr, 1>;
74 def BinaryOperator : DStmt<Expr>;
75 def CompoundAssignOperator : DStmt<BinaryOperator>;
76 def AbstractConditionalOperator : DStmt<Expr, 1>;
77 def ConditionalOperator : DStmt<AbstractConditionalOperator>;
78 def BinaryConditionalOperator : DStmt<AbstractConditionalOperator>;
79 def ImplicitCastExpr : DStmt<CastExpr>;
80 def ExplicitCastExpr : DStmt<CastExpr, 1>;
81 def CStyleCastExpr : DStmt<ExplicitCastExpr>;
82 def CompoundLiteralExpr : DStmt<Expr>;
83 def ExtVectorElementExpr : DStmt<Expr>;
84 def InitListExpr : DStmt<Expr>;
85 def DesignatedInitExpr : DStmt<Expr>;
86 def DesignatedInitUpdateExpr : DStmt<Expr>;
87 def ImplicitValueInitExpr : DStmt<Expr>;
88 def NoInitExpr : DStmt<Expr>;
89 def ArrayInitLoopExpr : DStmt<Expr>;
90 def ArrayInitIndexExpr : DStmt<Expr>;
91 def ParenListExpr : DStmt<Expr>;
92 def VAArgExpr : DStmt<Expr>;
93 def GenericSelectionExpr : DStmt<Expr>;
94 def PseudoObjectExpr : DStmt<Expr>;
95
96 // Wrapper expressions
97 def FullExpr : DStmt<Expr, 1>;
98 def ConstantExpr : DStmt<FullExpr>;
99
100 // Atomic expressions
101 def AtomicExpr : DStmt<Expr>;
102
103 // GNU Extensions.
104 def AddrLabelExpr : DStmt<Expr>;
105 def StmtExpr : DStmt<Expr>;
106 def ChooseExpr : DStmt<Expr>;
107 def GNUNullExpr : DStmt<Expr>;
108
109 // C++ Expressions.
110 def CXXOperatorCallExpr : DStmt<CallExpr>;
111 def CXXMemberCallExpr : DStmt<CallExpr>;
112 def CXXNamedCastExpr : DStmt<ExplicitCastExpr, 1>;
113 def CXXStaticCastExpr : DStmt<CXXNamedCastExpr>;
114 def CXXDynamicCastExpr : DStmt<CXXNamedCastExpr>;
115 def CXXReinterpretCastExpr : DStmt<CXXNamedCastExpr>;
116 def CXXConstCastExpr : DStmt<CXXNamedCastExpr>;
117 def CXXFunctionalCastExpr : DStmt<ExplicitCastExpr>;
118 def CXXTypeidExpr : DStmt<Expr>;
119 def UserDefinedLiteral : DStmt<CallExpr>;
120 def CXXBoolLiteralExpr : DStmt<Expr>;
121 def CXXNullPtrLiteralExpr : DStmt<Expr>;
122 def CXXThisExpr : DStmt<Expr>;
123 def CXXThrowExpr : DStmt<Expr>;
124 def CXXDefaultArgExpr : DStmt<Expr>;
125 def CXXDefaultInitExpr : DStmt<Expr>;
126 def CXXScalarValueInitExpr : DStmt<Expr>;
127 def CXXStdInitializerListExpr : DStmt<Expr>;
128 def CXXNewExpr : DStmt<Expr>;
129 def CXXDeleteExpr : DStmt<Expr>;
130 def CXXPseudoDestructorExpr : DStmt<Expr>;
131 def TypeTraitExpr : DStmt<Expr>;
132 def ArrayTypeTraitExpr : DStmt<Expr>;
133 def ExpressionTraitExpr : DStmt<Expr>;
134 def DependentScopeDeclRefExpr : DStmt<Expr>;
135 def CXXConstructExpr : DStmt<Expr>;
136 def CXXInheritedCtorInitExpr : DStmt<Expr>;
137 def CXXBindTemporaryExpr : DStmt<Expr>;
138 def ExprWithCleanups : DStmt<FullExpr>;
139 def CXXTemporaryObjectExpr : DStmt<CXXConstructExpr>;
140 def CXXUnresolvedConstructExpr : DStmt<Expr>;
141 def CXXDependentScopeMemberExpr : DStmt<Expr>;
142 def OverloadExpr : DStmt<Expr, 1>;
143 def UnresolvedLookupExpr : DStmt<OverloadExpr>;
144 def UnresolvedMemberExpr : DStmt<OverloadExpr>;
145 def CXXNoexceptExpr : DStmt<Expr>;
146 def PackExpansionExpr : DStmt<Expr>;
147 def SizeOfPackExpr : DStmt<Expr>;
148 def SubstNonTypeTemplateParmExpr : DStmt<Expr>;
149 def SubstNonTypeTemplateParmPackExpr : DStmt<Expr>;
150 def FunctionParmPackExpr : DStmt<Expr>;
151 def MaterializeTemporaryExpr : DStmt<Expr>;
152 def LambdaExpr : DStmt<Expr>;
153 def CXXFoldExpr : DStmt<Expr>;
154
155 // C++ Coroutines TS expressions
156 def CoroutineSuspendExpr : DStmt<Expr, 1>;
157 def CoawaitExpr : DStmt<CoroutineSuspendExpr>;
158 def DependentCoawaitExpr : DStmt<Expr>;
159 def CoyieldExpr : DStmt<CoroutineSuspendExpr>;
160
161 // Obj-C Expressions.
162 def ObjCStringLiteral : DStmt<Expr>;
163 def ObjCBoxedExpr : DStmt<Expr>;
164 def ObjCArrayLiteral : DStmt<Expr>;
165 def ObjCDictionaryLiteral : DStmt<Expr>;
166 def ObjCEncodeExpr : DStmt<Expr>;
167 def ObjCMessageExpr : DStmt<Expr>;
168 def ObjCSelectorExpr : DStmt<Expr>;
169 def ObjCProtocolExpr : DStmt<Expr>;
170 def ObjCIvarRefExpr : DStmt<Expr>;
171 def ObjCPropertyRefExpr : DStmt<Expr>;
172 def ObjCIsaExpr : DStmt<Expr>;
173 def ObjCIndirectCopyRestoreExpr : DStmt<Expr>;
174 def ObjCBoolLiteralExpr : DStmt<Expr>;
175 def ObjCSubscriptRefExpr : DStmt<Expr>;
176 def ObjCAvailabilityCheckExpr : DStmt<Expr>;
177
178 // Obj-C ARC Expressions.
179 def ObjCBridgedCastExpr : DStmt<ExplicitCastExpr>;
180
181 // CUDA Expressions.
182 def CUDAKernelCallExpr : DStmt<CallExpr>;
183
184 // Clang Extensions.
185 def ShuffleVectorExpr : DStmt<Expr>;
186 def ConvertVectorExpr : DStmt<Expr>;
187 def BlockExpr : DStmt<Expr>;
188 def OpaqueValueExpr : DStmt<Expr>;
189 def TypoExpr : DStmt<Expr>;
190
191 // Microsoft Extensions.
192 def MSPropertyRefExpr : DStmt<Expr>;
193 def MSPropertySubscriptExpr : DStmt<Expr>;
194 def CXXUuidofExpr : DStmt<Expr>;
195 def SEHTryStmt : Stmt;
196 def SEHExceptStmt : Stmt;
197 def SEHFinallyStmt : Stmt;
198 def SEHLeaveStmt : Stmt;
199 def MSDependentExistsStmt : Stmt;
200
201 // OpenCL Extensions.
202 def AsTypeExpr : DStmt<Expr>;
203
204 // OpenMP Directives.
205 def OMPExecutableDirective : Stmt<1>;
206 def OMPLoopDirective : DStmt<OMPExecutableDirective, 1>;
207 def OMPParallelDirective : DStmt<OMPExecutableDirective>;
208 def OMPSimdDirective : DStmt<OMPLoopDirective>;
209 def OMPForDirective : DStmt<OMPLoopDirective>;
210 def OMPForSimdDirective : DStmt<OMPLoopDirective>;
211 def OMPSectionsDirective : DStmt<OMPExecutableDirective>;
212 def OMPSectionDirective : DStmt<OMPExecutableDirective>;
213 def OMPSingleDirective : DStmt<OMPExecutableDirective>;
214 def OMPMasterDirective : DStmt<OMPExecutableDirective>;
215 def OMPCriticalDirective : DStmt<OMPExecutableDirective>;
216 def OMPParallelForDirective : DStmt<OMPLoopDirective>;
217 def OMPParallelForSimdDirective : DStmt<OMPLoopDirective>;
218 def OMPParallelSectionsDirective : DStmt<OMPExecutableDirective>;
219 def OMPTaskDirective : DStmt<OMPExecutableDirective>;
220 def OMPTaskyieldDirective : DStmt<OMPExecutableDirective>;
221 def OMPBarrierDirective : DStmt<OMPExecutableDirective>;
222 def OMPTaskwaitDirective : DStmt<OMPExecutableDirective>;
223 def OMPTaskgroupDirective : DStmt<OMPExecutableDirective>;
224 def OMPFlushDirective : DStmt<OMPExecutableDirective>;
225 def OMPOrderedDirective : DStmt<OMPExecutableDirective>;
226 def OMPAtomicDirective : DStmt<OMPExecutableDirective>;
227 def OMPTargetDirective : DStmt<OMPExecutableDirective>;
228 def OMPTargetDataDirective : DStmt<OMPExecutableDirective>;
229 def OMPTargetEnterDataDirective : DStmt<OMPExecutableDirective>;
230 def OMPTargetExitDataDirective : DStmt<OMPExecutableDirective>;
231 def OMPTargetParallelDirective : DStmt<OMPExecutableDirective>;
232 def OMPTargetParallelForDirective : DStmt<OMPExecutableDirective>;
233 def OMPTargetUpdateDirective : DStmt<OMPExecutableDirective>;
234 def OMPTeamsDirective : DStmt<OMPExecutableDirective>;
235 def OMPCancellationPointDirective : DStmt<OMPExecutableDirective>;
236 def OMPCancelDirective : DStmt<OMPExecutableDirective>;
237 def OMPTaskLoopDirective : DStmt<OMPLoopDirective>;
238 def OMPTaskLoopSimdDirective : DStmt<OMPLoopDirective>;
239 def OMPDistributeDirective : DStmt<OMPLoopDirective>;
240 def OMPDistributeParallelForDirective : DStmt<OMPLoopDirective>;
241 def OMPDistributeParallelForSimdDirective : DStmt<OMPLoopDirective>;
242 def OMPDistributeSimdDirective : DStmt<OMPLoopDirective>;
243 def OMPTargetParallelForSimdDirective : DStmt<OMPLoopDirective>;
244 def OMPTargetSimdDirective : DStmt<OMPLoopDirective>;
245 def OMPTeamsDistributeDirective : DStmt<OMPLoopDirective>;
246 def OMPTeamsDistributeSimdDirective : DStmt<OMPLoopDirective>;
247 def OMPTeamsDistributeParallelForSimdDirective : DStmt<OMPLoopDirective>;
248 def OMPTeamsDistributeParallelForDirective : DStmt<OMPLoopDirective>;
249 def OMPTargetTeamsDirective : DStmt<OMPExecutableDirective>;
250 def OMPTargetTeamsDistributeDirective : DStmt<OMPLoopDirective>;
251 def OMPTargetTeamsDistributeParallelForDirective : DStmt<OMPLoopDirective>;
252 def OMPTargetTeamsDistributeParallelForSimdDirective : DStmt<OMPLoopDirective>;
253 def OMPTargetTeamsDistributeSimdDirective : DStmt<OMPLoopDirective>;