]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/tools/clang/include/clang/Basic/StmtNodes.td
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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
81 // Atomic expressions
82 def AtomicExpr : DStmt<Expr>;
83
84 // GNU Extensions.
85 def AddrLabelExpr : DStmt<Expr>;
86 def StmtExpr : DStmt<Expr>;
87 def ChooseExpr : DStmt<Expr>;
88 def GNUNullExpr : DStmt<Expr>;
89
90 // C++ Expressions.
91 def CXXOperatorCallExpr : DStmt<CallExpr>;
92 def CXXMemberCallExpr : DStmt<CallExpr>;
93 def CXXNamedCastExpr : DStmt<ExplicitCastExpr, 1>;
94 def CXXStaticCastExpr : DStmt<CXXNamedCastExpr>;
95 def CXXDynamicCastExpr : DStmt<CXXNamedCastExpr>;
96 def CXXReinterpretCastExpr : DStmt<CXXNamedCastExpr>;
97 def CXXConstCastExpr : DStmt<CXXNamedCastExpr>;
98 def CXXFunctionalCastExpr : DStmt<ExplicitCastExpr>;
99 def CXXTypeidExpr : DStmt<Expr>;
100 def CXXBoolLiteralExpr : DStmt<Expr>;
101 def CXXNullPtrLiteralExpr : DStmt<Expr>;
102 def CXXThisExpr : DStmt<Expr>;
103 def CXXThrowExpr : DStmt<Expr>;
104 def CXXDefaultArgExpr : DStmt<Expr>;
105 def CXXScalarValueInitExpr : DStmt<Expr>;
106 def CXXNewExpr : DStmt<Expr>;
107 def CXXDeleteExpr : DStmt<Expr>;
108 def CXXPseudoDestructorExpr : DStmt<Expr>;
109 def UnaryTypeTraitExpr : DStmt<Expr>;
110 def BinaryTypeTraitExpr : DStmt<Expr>;
111 def ArrayTypeTraitExpr : DStmt<Expr>;
112 def ExpressionTraitExpr : DStmt<Expr>;
113 def DependentScopeDeclRefExpr : DStmt<Expr>;
114 def CXXConstructExpr : DStmt<Expr>;
115 def CXXBindTemporaryExpr : DStmt<Expr>;
116 def ExprWithCleanups : DStmt<Expr>;
117 def CXXTemporaryObjectExpr : DStmt<CXXConstructExpr>;
118 def CXXUnresolvedConstructExpr : DStmt<Expr>;
119 def CXXDependentScopeMemberExpr : DStmt<Expr>;
120 def OverloadExpr : DStmt<Expr, 1>;
121 def UnresolvedLookupExpr : DStmt<OverloadExpr>;
122 def UnresolvedMemberExpr : DStmt<OverloadExpr>;
123 def CXXNoexceptExpr : DStmt<Expr>;
124 def PackExpansionExpr : DStmt<Expr>;
125 def SizeOfPackExpr : DStmt<Expr>;
126 def SubstNonTypeTemplateParmExpr : DStmt<Expr>;
127 def SubstNonTypeTemplateParmPackExpr : DStmt<Expr>;
128 def MaterializeTemporaryExpr : DStmt<Expr>;
129
130 // Obj-C Expressions.
131 def ObjCStringLiteral : DStmt<Expr>;
132 def ObjCEncodeExpr : DStmt<Expr>;
133 def ObjCMessageExpr : DStmt<Expr>;
134 def ObjCSelectorExpr : DStmt<Expr>;
135 def ObjCProtocolExpr : DStmt<Expr>;
136 def ObjCIvarRefExpr : DStmt<Expr>;
137 def ObjCPropertyRefExpr : DStmt<Expr>;
138 def ObjCIsaExpr : DStmt<Expr>;
139 def ObjCIndirectCopyRestoreExpr : DStmt<Expr>;
140
141 // Obj-C ARC Expressions.
142 def ObjCBridgedCastExpr : DStmt<ExplicitCastExpr>;
143
144 // CUDA Expressions.
145 def CUDAKernelCallExpr : DStmt<CallExpr>;
146
147 // Clang Extensions.
148 def ShuffleVectorExpr : DStmt<Expr>;
149 def BlockExpr : DStmt<Expr>;
150 def BlockDeclRefExpr : DStmt<Expr>;
151 def OpaqueValueExpr : DStmt<Expr>;
152
153 // Microsoft Extensions.
154 def CXXUuidofExpr : DStmt<Expr>; 
155 def SEHTryStmt : Stmt;
156 def SEHExceptStmt : Stmt;
157 def SEHFinallyStmt : Stmt;
158
159 // OpenCL Extensions.
160 def AsTypeExpr : DStmt<Expr>;