Changes in src/SynTree/Declaration.h [42107b4:3ed994e]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r42107b4 r3ed994e 45 45 Declaration( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage ); 46 46 Declaration( const Declaration &other ); 47 virtual ~Declaration(); 47 48 48 49 const std::string &get_name() const { return name; } … … 83 84 Expression *asmName; 84 85 std::list< Attribute * > attributes; 86 bool isDeleted = false; 85 87 86 88 DeclarationWithType( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes, Type::FuncSpecifiers fs ); 87 89 DeclarationWithType( const DeclarationWithType &other ); 88 90 virtual ~DeclarationWithType(); 91 89 92 std::string get_mangleName() const { return mangleName; } 90 93 DeclarationWithType * set_mangleName( std::string newValue ) { mangleName = newValue; return this; } … … 124 127 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() ); 125 128 ObjectDecl( const ObjectDecl &other ); 129 virtual ~ObjectDecl(); 126 130 127 131 virtual Type * get_type() const override { return type; } … … 153 157 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() ); 154 158 FunctionDecl( const FunctionDecl &other ); 159 virtual ~FunctionDecl(); 155 160 156 161 virtual Type * get_type() const override { return type; } … … 180 185 NamedTypeDecl( const std::string &name, Type::StorageClasses scs, Type *type ); 181 186 NamedTypeDecl( const NamedTypeDecl &other ); 187 virtual ~NamedTypeDecl(); 182 188 183 189 Type *get_base() const { return base; } … … 214 220 TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind, bool sized, Type * init = nullptr ); 215 221 TypeDecl( const TypeDecl &other ); 222 virtual ~TypeDecl(); 216 223 217 224 Kind get_kind() const { return kind; } … … 262 269 AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ); 263 270 AggregateDecl( const AggregateDecl &other ); 264 271 virtual ~AggregateDecl(); 272 265 273 std::list<Declaration*>& get_members() { return members; } 266 274 std::list<TypeDecl*>& get_parameters() { return parameters; } … … 346 354 AsmDecl( AsmStmt *stmt ); 347 355 AsmDecl( const AsmDecl &other ); 356 virtual ~AsmDecl(); 348 357 349 358 AsmStmt *get_stmt() { return stmt; } … … 364 373 StaticAssertDecl( Expression * condition, ConstantExpr * message ); 365 374 StaticAssertDecl( const StaticAssertDecl & other ); 375 virtual ~StaticAssertDecl(); 366 376 367 377 virtual StaticAssertDecl * clone() const override { return new StaticAssertDecl( *this ); }
Note:
See TracChangeset
for help on using the changeset viewer.