ADT
ast-experimental
Last change
on this file since 04c78215 was 257a8f5, checked in by Andrew Beach <ajbeach@…>, 3 years ago |
Made some of the AST/Print helpers public.
|
-
Property mode
set to
100644
|
File size:
3.2 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;
|
---|
[ee7a29f] | 60 | class WaitForStmt;
|
---|
[f6e6a55] | 61 | class WaitForClause;
|
---|
[ee7a29f] | 62 | class WithStmt;
|
---|
| 63 | class DeclStmt;
|
---|
| 64 | class NullStmt;
|
---|
| 65 | class ImplicitCtorDtorStmt;
|
---|
[6cebfef] | 66 | class MutexStmt;
|
---|
[ee7a29f] | 67 |
|
---|
| 68 | class Expr;
|
---|
| 69 | class ApplicationExpr;
|
---|
| 70 | class UntypedExpr;
|
---|
| 71 | class NameExpr;
|
---|
[b0d9ff7] | 72 | class QualifiedNameExpr;
|
---|
[ee7a29f] | 73 | class AddressExpr;
|
---|
| 74 | class LabelAddressExpr;
|
---|
| 75 | class CastExpr;
|
---|
| 76 | class KeywordCastExpr;
|
---|
| 77 | class VirtualCastExpr;
|
---|
| 78 | class MemberExpr;
|
---|
| 79 | class UntypedMemberExpr;
|
---|
| 80 | class VariableExpr;
|
---|
| 81 | class ConstantExpr;
|
---|
| 82 | class SizeofExpr;
|
---|
| 83 | class AlignofExpr;
|
---|
| 84 | class UntypedOffsetofExpr;
|
---|
| 85 | class OffsetofExpr;
|
---|
| 86 | class OffsetPackExpr;
|
---|
| 87 | class LogicalExpr;
|
---|
| 88 | class ConditionalExpr;
|
---|
| 89 | class CommaExpr;
|
---|
| 90 | class TypeExpr;
|
---|
[4ec9513] | 91 | class DimensionExpr;
|
---|
[ee7a29f] | 92 | class AsmExpr;
|
---|
| 93 | class ImplicitCopyCtorExpr;
|
---|
| 94 | class ConstructorExpr;
|
---|
| 95 | class CompoundLiteralExpr;
|
---|
| 96 | class RangeExpr;
|
---|
| 97 | class UntypedTupleExpr;
|
---|
| 98 | class TupleExpr;
|
---|
| 99 | class TupleIndexExpr;
|
---|
| 100 | class TupleAssignExpr;
|
---|
| 101 | class StmtExpr;
|
---|
| 102 | class UniqueExpr;
|
---|
| 103 | class UntypedInitExpr;
|
---|
| 104 | class InitExpr;
|
---|
| 105 | class DeletedExpr;
|
---|
| 106 | class DefaultArgExpr;
|
---|
| 107 | class GenericExpr;
|
---|
| 108 |
|
---|
| 109 | class Type;
|
---|
| 110 | class VoidType;
|
---|
| 111 | class BasicType;
|
---|
| 112 | class PointerType;
|
---|
| 113 | class ArrayType;
|
---|
| 114 | class ReferenceType;
|
---|
| 115 | class QualifiedType;
|
---|
| 116 | class FunctionType;
|
---|
[98e8b3b] | 117 | class BaseInstType;
|
---|
[923d25a] | 118 | template<typename decl_t> class SueInstType;
|
---|
| 119 | using StructInstType = SueInstType<StructDecl>;
|
---|
| 120 | using UnionInstType = SueInstType<UnionDecl>;
|
---|
| 121 | using EnumInstType = SueInstType<EnumDecl>;
|
---|
[ee7a29f] | 122 | class TraitInstType;
|
---|
| 123 | class TypeInstType;
|
---|
| 124 | class TupleType;
|
---|
| 125 | class TypeofType;
|
---|
[3945abe] | 126 | class VTableType;
|
---|
[ee7a29f] | 127 | class VarArgsType;
|
---|
| 128 | class ZeroType;
|
---|
| 129 | class OneType;
|
---|
| 130 | class GlobalScopeType;
|
---|
| 131 |
|
---|
| 132 | class Designation;
|
---|
| 133 | class Init;
|
---|
| 134 | class SingleInit;
|
---|
| 135 | class ListInit;
|
---|
| 136 | class ConstructorInit;
|
---|
| 137 |
|
---|
| 138 | class Label;
|
---|
| 139 |
|
---|
| 140 | class Attribute;
|
---|
| 141 |
|
---|
[fb2bde4] | 142 | class SymbolTable;
|
---|
| 143 | class TypeEnvironment;
|
---|
[ee7a29f] | 144 | class TypeSubstitution;
|
---|
| 145 |
|
---|
| 146 | typedef unsigned int UniqueId;
|
---|
| 147 |
|
---|
[1f7dc61] | 148 | class TranslationUnit;
|
---|
[39d8950] | 149 | class TranslationGlobal;
|
---|
[490fb92e] | 150 |
|
---|
[257a8f5] | 151 | // For the following types, only use the using type.
|
---|
| 152 | namespace CV {
|
---|
| 153 | struct qualifier_flags;
|
---|
| 154 | using Qualifiers = bitfield<qualifier_flags>;
|
---|
| 155 | }
|
---|
| 156 | namespace Function {
|
---|
| 157 | struct spec_flags;
|
---|
| 158 | using Specs = bitfield<spec_flags>;
|
---|
| 159 | }
|
---|
| 160 | namespace Storage {
|
---|
| 161 | struct class_flags;
|
---|
| 162 | using Classes = bitfield<class_flags>;
|
---|
| 163 | }
|
---|
| 164 | namespace Linkage {
|
---|
| 165 | struct spec_flags;
|
---|
| 166 | using Spec = bitfield<spec_flags>;
|
---|
| 167 | }
|
---|
| 168 |
|
---|
[ee7a29f] | 169 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.