source:
src/AST/Fwd.hpp
@
08e0d65
Last change on this file since 08e0d65 was 525f7ad, checked in by , 5 months ago | |
---|---|
|
|
File size: 3.3 KB |
Rev | Line | |
---|---|---|
[ee7a29f] | 1 | // |
2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo | |
3 | // | |
4 | // The contents of this file are covered under the licence agreement in the | |
5 | // file "LICENCE" distributed with Cforall. | |
6 | // | |
7 | // Fwd.hpp -- Forward declarations of AST Types. | |
8 | // | |
9 | // Author : Andrew Beach | |
10 | // Created On : Wed May 8 16:05:00 2019 | |
[2d019af] | 11 | // Last Modified By : Peter A. Buhr |
[3b0bc16] | 12 | // Last Modified On : Tue Feb 1 09:08:33 2022 |
13 | // Update Count : 5 | |
[ee7a29f] | 14 | // |
15 | ||
16 | #pragma once | |
17 | ||
[257a8f5] | 18 | template<typename> struct bitfield; |
19 | ||
[e0115286] | 20 | #include "AST/Node.hpp" |
21 | ||
[ee7a29f] | 22 | namespace ast { |
23 | ||
24 | class ParseNode; | |
25 | ||
26 | class Decl; | |
27 | class DeclWithType; | |
28 | class ObjectDecl; | |
29 | class FunctionDecl; | |
30 | class AggregateDecl; | |
31 | class StructDecl; | |
32 | class UnionDecl; | |
33 | class EnumDecl; | |
34 | class TraitDecl; | |
35 | class NamedTypeDecl; | |
36 | class TypeDecl; | |
37 | class TypedefDecl; | |
38 | class AsmDecl; | |
[2d019af] | 39 | class DirectiveDecl; |
[ee7a29f] | 40 | class StaticAssertDecl; |
[71806e0] | 41 | class InlineMemberDecl; |
[ee7a29f] | 42 | |
43 | class Stmt; | |
44 | class CompoundStmt; | |
45 | class ExprStmt; | |
46 | class AsmStmt; | |
47 | class DirectiveStmt; | |
48 | class IfStmt; | |
[3b0bc16] | 49 | class WhileDoStmt; |
[ee7a29f] | 50 | class ForStmt; |
51 | class SwitchStmt; | |
[400b8be] | 52 | class CaseClause; |
[ee7a29f] | 53 | class BranchStmt; |
54 | class ReturnStmt; | |
55 | class ThrowStmt; | |
56 | class TryStmt; | |
[400b8be] | 57 | class CatchClause; |
58 | class FinallyClause; | |
[37cdd97] | 59 | class SuspendStmt; |
[c86b08d] | 60 | class WhenClause; |
[ee7a29f] | 61 | class WaitForStmt; |
[f6e6a55] | 62 | class WaitForClause; |
[c86b08d] | 63 | class WaitUntilStmt; |
[ee7a29f] | 64 | class WithStmt; |
65 | class DeclStmt; | |
66 | class NullStmt; | |
67 | class ImplicitCtorDtorStmt; | |
[6cebfef] | 68 | class MutexStmt; |
[eb779d5] | 69 | class CorunStmt; |
[3d9d017] | 70 | class CoforStmt; |
[ee7a29f] | 71 | |
72 | class Expr; | |
73 | class ApplicationExpr; | |
74 | class UntypedExpr; | |
75 | class NameExpr; | |
[b0d9ff7] | 76 | class QualifiedNameExpr; |
[ee7a29f] | 77 | class AddressExpr; |
78 | class LabelAddressExpr; | |
79 | class CastExpr; | |
80 | class KeywordCastExpr; | |
81 | class VirtualCastExpr; | |
82 | class MemberExpr; | |
83 | class UntypedMemberExpr; | |
84 | class VariableExpr; | |
85 | class ConstantExpr; | |
86 | class SizeofExpr; | |
[525f7ad] | 87 | class CountExpr; |
[ee7a29f] | 88 | class AlignofExpr; |
89 | class UntypedOffsetofExpr; | |
90 | class OffsetofExpr; | |
91 | class OffsetPackExpr; | |
92 | class LogicalExpr; | |
93 | class ConditionalExpr; | |
94 | class CommaExpr; | |
95 | class TypeExpr; | |
[4ec9513] | 96 | class DimensionExpr; |
[ee7a29f] | 97 | class AsmExpr; |
98 | class ImplicitCopyCtorExpr; | |
99 | class ConstructorExpr; | |
100 | class CompoundLiteralExpr; | |
101 | class RangeExpr; | |
102 | class UntypedTupleExpr; | |
103 | class TupleExpr; | |
104 | class TupleIndexExpr; | |
105 | class TupleAssignExpr; | |
106 | class StmtExpr; | |
107 | class UniqueExpr; | |
108 | class UntypedInitExpr; | |
109 | class InitExpr; | |
110 | class DeletedExpr; | |
111 | class DefaultArgExpr; | |
112 | class GenericExpr; | |
113 | ||
114 | class Type; | |
115 | class VoidType; | |
116 | class BasicType; | |
117 | class PointerType; | |
118 | class ArrayType; | |
119 | class ReferenceType; | |
120 | class QualifiedType; | |
121 | class FunctionType; | |
[98e8b3b] | 122 | class BaseInstType; |
[923d25a] | 123 | template<typename decl_t> class SueInstType; |
124 | using StructInstType = SueInstType<StructDecl>; | |
125 | using UnionInstType = SueInstType<UnionDecl>; | |
126 | using EnumInstType = SueInstType<EnumDecl>; | |
[ee7a29f] | 127 | class TraitInstType; |
128 | class TypeInstType; | |
129 | class TupleType; | |
130 | class TypeofType; | |
[3945abe] | 131 | class VTableType; |
[ee7a29f] | 132 | class VarArgsType; |
133 | class ZeroType; | |
134 | class OneType; | |
135 | class GlobalScopeType; | |
136 | ||
137 | class Designation; | |
138 | class Init; | |
139 | class SingleInit; | |
140 | class ListInit; | |
141 | class ConstructorInit; | |
142 | ||
143 | class Label; | |
144 | ||
145 | class Attribute; | |
146 | ||
[fb2bde4] | 147 | class SymbolTable; |
148 | class TypeEnvironment; | |
[ee7a29f] | 149 | class TypeSubstitution; |
150 | ||
151 | typedef unsigned int UniqueId; | |
152 | ||
[1f7dc61] | 153 | class TranslationUnit; |
[39d8950] | 154 | class TranslationGlobal; |
[490fb92e] | 155 | |
[257a8f5] | 156 | // For the following types, only use the using type. |
157 | namespace CV { | |
158 | struct qualifier_flags; | |
159 | using Qualifiers = bitfield<qualifier_flags>; | |
160 | } | |
161 | namespace Function { | |
162 | struct spec_flags; | |
163 | using Specs = bitfield<spec_flags>; | |
164 | } | |
165 | namespace Storage { | |
166 | struct class_flags; | |
167 | using Classes = bitfield<class_flags>; | |
168 | } | |
169 | namespace Linkage { | |
170 | struct spec_flags; | |
171 | using Spec = bitfield<spec_flags>; | |
172 | } | |
173 | ||
[ee7a29f] | 174 | } |
Note: See TracBrowser
for help on using the repository browser.