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