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