]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/StmtNodes.td
Merge Cavium Octeon SDK 2.0 Simple Executive; this brings some fixes and new
[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;
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
41 // C++ statments
42 def CXXCatchStmt : Stmt;
43 def CXXTryStmt : Stmt;
44
45 // Expressions
46 def Expr : Stmt<1>;
47 def PredefinedExpr : DStmt<Expr>;
48 def DeclRefExpr : DStmt<Expr>;
49 def IntegerLiteral : DStmt<Expr>;
50 def FloatingLiteral : DStmt<Expr>;
51 def ImaginaryLiteral : DStmt<Expr>;
52 def StringLiteral : DStmt<Expr>;
53 def CharacterLiteral : DStmt<Expr>;
54 def ParenExpr : DStmt<Expr>;
55 def UnaryOperator : DStmt<Expr>;
56 def OffsetOfExpr : DStmt<Expr>;
57 def SizeOfAlignOfExpr : DStmt<Expr>;
58 def ArraySubscriptExpr : DStmt<Expr>;
59 def CallExpr : DStmt<Expr>;
60 def MemberExpr : DStmt<Expr>;
61 def CastExpr : DStmt<Expr, 1>;
62 def BinaryOperator : DStmt<Expr>;
63 def CompoundAssignOperator : DStmt<BinaryOperator>;
64 def ConditionalOperator : DStmt<Expr>;
65 def ImplicitCastExpr : DStmt<CastExpr>;
66 def ExplicitCastExpr : DStmt<CastExpr, 1>;
67 def CStyleCastExpr : DStmt<ExplicitCastExpr>;
68 def CompoundLiteralExpr : DStmt<Expr>;
69 def ExtVectorElementExpr : DStmt<Expr>;
70 def InitListExpr : DStmt<Expr>;
71 def DesignatedInitExpr : DStmt<Expr>;
72 def ImplicitValueInitExpr : DStmt<Expr>;
73 def ParenListExpr : DStmt<Expr>;
74 def VAArgExpr : DStmt<Expr>;
75
76 // GNU Extensions.
77 def AddrLabelExpr : DStmt<Expr>;
78 def StmtExpr : DStmt<Expr>;
79 def TypesCompatibleExpr : DStmt<Expr>;
80 def ChooseExpr : DStmt<Expr>;
81 def GNUNullExpr : DStmt<Expr>;
82
83 // C++ Expressions.
84 def CXXOperatorCallExpr : DStmt<CallExpr>;
85 def CXXMemberCallExpr : DStmt<CallExpr>;
86 def CXXNamedCastExpr : DStmt<ExplicitCastExpr, 1>;
87 def CXXStaticCastExpr : DStmt<CXXNamedCastExpr>;
88 def CXXDynamicCastExpr : DStmt<CXXNamedCastExpr>;
89 def CXXReinterpretCastExpr : DStmt<CXXNamedCastExpr>;
90 def CXXConstCastExpr : DStmt<CXXNamedCastExpr>;
91 def CXXFunctionalCastExpr : DStmt<ExplicitCastExpr>;
92 def CXXTypeidExpr : DStmt<Expr>;
93 def CXXBoolLiteralExpr : DStmt<Expr>;
94 def CXXNullPtrLiteralExpr : DStmt<Expr>;
95 def CXXThisExpr : DStmt<Expr>;
96 def CXXThrowExpr : DStmt<Expr>;
97 def CXXDefaultArgExpr : DStmt<Expr>;
98 def CXXScalarValueInitExpr : DStmt<Expr>;
99 def CXXNewExpr : DStmt<Expr>;
100 def CXXDeleteExpr : DStmt<Expr>;
101 def CXXPseudoDestructorExpr : DStmt<Expr>;
102 def UnaryTypeTraitExpr : DStmt<Expr>;
103 def DependentScopeDeclRefExpr : DStmt<Expr>;
104 def CXXConstructExpr : DStmt<Expr>;
105 def CXXBindTemporaryExpr : DStmt<Expr>;
106 def CXXExprWithTemporaries : DStmt<Expr>;
107 def CXXTemporaryObjectExpr : DStmt<CXXConstructExpr>;
108 def CXXUnresolvedConstructExpr : DStmt<Expr>;
109 def CXXDependentScopeMemberExpr : DStmt<Expr>;
110 def OverloadExpr : DStmt<Expr, 1>;
111 def UnresolvedLookupExpr : DStmt<OverloadExpr>;
112 def UnresolvedMemberExpr : DStmt<OverloadExpr>;
113
114 // Obj-C Expressions.
115 def ObjCStringLiteral : DStmt<Expr>;
116 def ObjCEncodeExpr : DStmt<Expr>;
117 def ObjCMessageExpr : DStmt<Expr>;
118 def ObjCSelectorExpr : DStmt<Expr>;
119 def ObjCProtocolExpr : DStmt<Expr>;
120 def ObjCIvarRefExpr : DStmt<Expr>;
121 def ObjCPropertyRefExpr : DStmt<Expr>;
122 def ObjCImplicitSetterGetterRefExpr : DStmt<Expr>;
123 def ObjCSuperExpr : DStmt<Expr>;
124 def ObjCIsaExpr : DStmt<Expr>;
125
126 // Clang Extensions.
127 def ShuffleVectorExpr : DStmt<Expr>;
128 def BlockExpr : DStmt<Expr>;
129 def BlockDeclRefExpr : DStmt<Expr>;