]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/StmtNodes.td
Update compiler-rt to 3.7.0 release. This also includes the sanitizer
[FreeBSD/FreeBSD.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 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++ statments
47 def CXXCatchStmt : Stmt;
48 def CXXTryStmt : Stmt;
49 def CXXForRangeStmt : Stmt;
50
51 // Expressions
52 def Expr : Stmt<1>;
53 def PredefinedExpr : DStmt<Expr>;
54 def DeclRefExpr : DStmt<Expr>;
55 def IntegerLiteral : DStmt<Expr>;
56 def FloatingLiteral : DStmt<Expr>;
57 def ImaginaryLiteral : DStmt<Expr>;
58 def StringLiteral : DStmt<Expr>;
59 def CharacterLiteral : DStmt<Expr>;
60 def ParenExpr : DStmt<Expr>;
61 def UnaryOperator : DStmt<Expr>;
62 def OffsetOfExpr : DStmt<Expr>;
63 def UnaryExprOrTypeTraitExpr : DStmt<Expr>;
64 def ArraySubscriptExpr : DStmt<Expr>;
65 def CallExpr : DStmt<Expr>;
66 def MemberExpr : DStmt<Expr>;
67 def CastExpr : DStmt<Expr, 1>;
68 def BinaryOperator : DStmt<Expr>;
69 def CompoundAssignOperator : DStmt<BinaryOperator>;
70 def AbstractConditionalOperator : DStmt<Expr, 1>;
71 def ConditionalOperator : DStmt<AbstractConditionalOperator>;
72 def BinaryConditionalOperator : DStmt<AbstractConditionalOperator>;
73 def ImplicitCastExpr : DStmt<CastExpr>;
74 def ExplicitCastExpr : DStmt<CastExpr, 1>;
75 def CStyleCastExpr : DStmt<ExplicitCastExpr>;
76 def CompoundLiteralExpr : DStmt<Expr>;
77 def ExtVectorElementExpr : DStmt<Expr>;
78 def InitListExpr : DStmt<Expr>;
79 def DesignatedInitExpr : DStmt<Expr>;
80 def DesignatedInitUpdateExpr : DStmt<Expr>;
81 def ImplicitValueInitExpr : DStmt<Expr>;
82 def NoInitExpr : DStmt<Expr>;
83 def ParenListExpr : DStmt<Expr>;
84 def VAArgExpr : DStmt<Expr>;
85 def GenericSelectionExpr : DStmt<Expr>;
86 def PseudoObjectExpr : DStmt<Expr>;
87
88 // Atomic expressions
89 def AtomicExpr : DStmt<Expr>;
90
91 // GNU Extensions.
92 def AddrLabelExpr : DStmt<Expr>;
93 def StmtExpr : DStmt<Expr>;
94 def ChooseExpr : DStmt<Expr>;
95 def GNUNullExpr : DStmt<Expr>;
96
97 // C++ Expressions.
98 def CXXOperatorCallExpr : DStmt<CallExpr>;
99 def CXXMemberCallExpr : DStmt<CallExpr>;
100 def CXXNamedCastExpr : DStmt<ExplicitCastExpr, 1>;
101 def CXXStaticCastExpr : DStmt<CXXNamedCastExpr>;
102 def CXXDynamicCastExpr : DStmt<CXXNamedCastExpr>;
103 def CXXReinterpretCastExpr : DStmt<CXXNamedCastExpr>;
104 def CXXConstCastExpr : DStmt<CXXNamedCastExpr>;
105 def CXXFunctionalCastExpr : DStmt<ExplicitCastExpr>;
106 def CXXTypeidExpr : DStmt<Expr>;
107 def UserDefinedLiteral : DStmt<CallExpr>;
108 def CXXBoolLiteralExpr : DStmt<Expr>;
109 def CXXNullPtrLiteralExpr : DStmt<Expr>;
110 def CXXThisExpr : DStmt<Expr>;
111 def CXXThrowExpr : DStmt<Expr>;
112 def CXXDefaultArgExpr : DStmt<Expr>;
113 def CXXDefaultInitExpr : DStmt<Expr>;
114 def CXXScalarValueInitExpr : DStmt<Expr>;
115 def CXXStdInitializerListExpr : DStmt<Expr>;
116 def CXXNewExpr : DStmt<Expr>;
117 def CXXDeleteExpr : DStmt<Expr>;
118 def CXXPseudoDestructorExpr : DStmt<Expr>;
119 def TypeTraitExpr : DStmt<Expr>;
120 def ArrayTypeTraitExpr : DStmt<Expr>;
121 def ExpressionTraitExpr : DStmt<Expr>;
122 def DependentScopeDeclRefExpr : DStmt<Expr>;
123 def CXXConstructExpr : DStmt<Expr>;
124 def CXXBindTemporaryExpr : DStmt<Expr>;
125 def ExprWithCleanups : DStmt<Expr>;
126 def CXXTemporaryObjectExpr : DStmt<CXXConstructExpr>;
127 def CXXUnresolvedConstructExpr : DStmt<Expr>;
128 def CXXDependentScopeMemberExpr : DStmt<Expr>;
129 def OverloadExpr : DStmt<Expr, 1>;
130 def UnresolvedLookupExpr : DStmt<OverloadExpr>;
131 def UnresolvedMemberExpr : DStmt<OverloadExpr>;
132 def CXXNoexceptExpr : DStmt<Expr>;
133 def PackExpansionExpr : DStmt<Expr>;
134 def SizeOfPackExpr : DStmt<Expr>;
135 def SubstNonTypeTemplateParmExpr : DStmt<Expr>;
136 def SubstNonTypeTemplateParmPackExpr : DStmt<Expr>;
137 def FunctionParmPackExpr : DStmt<Expr>;
138 def MaterializeTemporaryExpr : DStmt<Expr>;
139 def LambdaExpr : DStmt<Expr>;
140 def CXXFoldExpr : DStmt<Expr>;
141
142 // Obj-C Expressions.
143 def ObjCStringLiteral : DStmt<Expr>;
144 def ObjCBoxedExpr : DStmt<Expr>;
145 def ObjCArrayLiteral : DStmt<Expr>;
146 def ObjCDictionaryLiteral : DStmt<Expr>;
147 def ObjCEncodeExpr : DStmt<Expr>;
148 def ObjCMessageExpr : DStmt<Expr>;
149 def ObjCSelectorExpr : DStmt<Expr>;
150 def ObjCProtocolExpr : DStmt<Expr>;
151 def ObjCIvarRefExpr : DStmt<Expr>;
152 def ObjCPropertyRefExpr : DStmt<Expr>;
153 def ObjCIsaExpr : DStmt<Expr>;
154 def ObjCIndirectCopyRestoreExpr : DStmt<Expr>;
155 def ObjCBoolLiteralExpr : DStmt<Expr>;
156 def ObjCSubscriptRefExpr : DStmt<Expr>;
157
158 // Obj-C ARC Expressions.
159 def ObjCBridgedCastExpr : DStmt<ExplicitCastExpr>;
160
161 // CUDA Expressions.
162 def CUDAKernelCallExpr : DStmt<CallExpr>;
163
164 // Clang Extensions.
165 def ShuffleVectorExpr : DStmt<Expr>;
166 def ConvertVectorExpr : DStmt<Expr>;
167 def BlockExpr : DStmt<Expr>;
168 def OpaqueValueExpr : DStmt<Expr>;
169 def TypoExpr : DStmt<Expr>;
170
171 // Microsoft Extensions.
172 def MSPropertyRefExpr : DStmt<Expr>;
173 def CXXUuidofExpr : DStmt<Expr>; 
174 def SEHTryStmt : Stmt;
175 def SEHExceptStmt : Stmt;
176 def SEHFinallyStmt : Stmt;
177 def SEHLeaveStmt : Stmt;
178 def MSDependentExistsStmt : Stmt;
179
180 // OpenCL Extensions.
181 def AsTypeExpr : DStmt<Expr>;
182
183 // OpenMP Directives.
184 def OMPExecutableDirective : Stmt<1>;
185 def OMPLoopDirective : DStmt<OMPExecutableDirective, 1>;
186 def OMPParallelDirective : DStmt<OMPExecutableDirective>;
187 def OMPSimdDirective : DStmt<OMPLoopDirective>;
188 def OMPForDirective : DStmt<OMPLoopDirective>;
189 def OMPForSimdDirective : DStmt<OMPLoopDirective>;
190 def OMPSectionsDirective : DStmt<OMPExecutableDirective>;
191 def OMPSectionDirective : DStmt<OMPExecutableDirective>;
192 def OMPSingleDirective : DStmt<OMPExecutableDirective>;
193 def OMPMasterDirective : DStmt<OMPExecutableDirective>;
194 def OMPCriticalDirective : DStmt<OMPExecutableDirective>;
195 def OMPParallelForDirective : DStmt<OMPLoopDirective>;
196 def OMPParallelForSimdDirective : DStmt<OMPLoopDirective>;
197 def OMPParallelSectionsDirective : DStmt<OMPExecutableDirective>;
198 def OMPTaskDirective : DStmt<OMPExecutableDirective>;
199 def OMPTaskyieldDirective : DStmt<OMPExecutableDirective>;
200 def OMPBarrierDirective : DStmt<OMPExecutableDirective>;
201 def OMPTaskwaitDirective : DStmt<OMPExecutableDirective>;
202 def OMPTaskgroupDirective : DStmt<OMPExecutableDirective>;
203 def OMPFlushDirective : DStmt<OMPExecutableDirective>;
204 def OMPOrderedDirective : DStmt<OMPExecutableDirective>;
205 def OMPAtomicDirective : DStmt<OMPExecutableDirective>;
206 def OMPTargetDirective : DStmt<OMPExecutableDirective>;
207 def OMPTeamsDirective : DStmt<OMPExecutableDirective>;
208 def OMPCancellationPointDirective : DStmt<OMPExecutableDirective>;
209 def OMPCancelDirective : DStmt<OMPExecutableDirective>;