Changes in src/SynTree/Declaration.h [f6e3e34:68f9c43]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rf6e3e34 r68f9c43 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; } … … 87 86 DeclarationWithType( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes, Type::FuncSpecifiers fs ); 88 87 DeclarationWithType( const DeclarationWithType &other ); 89 virtual ~DeclarationWithType(); 90 88 91 89 std::string get_mangleName() const { return mangleName; } 92 90 DeclarationWithType * set_mangleName( std::string newValue ) { mangleName = newValue; return this; } … … 126 124 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() ); 127 125 ObjectDecl( const ObjectDecl &other ); 128 virtual ~ObjectDecl();129 126 130 127 virtual Type * get_type() const override { return type; } … … 156 153 const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() ); 157 154 FunctionDecl( const FunctionDecl &other ); 158 virtual ~FunctionDecl();159 155 160 156 virtual Type * get_type() const override { return type; } … … 184 180 NamedTypeDecl( const std::string &name, Type::StorageClasses scs, Type *type ); 185 181 NamedTypeDecl( const NamedTypeDecl &other ); 186 virtual ~NamedTypeDecl();187 182 188 183 Type *get_base() const { return base; } … … 219 214 TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind, bool sized, Type * init = nullptr ); 220 215 TypeDecl( const TypeDecl &other ); 221 virtual ~TypeDecl();222 216 223 217 Kind get_kind() const { return kind; } … … 268 262 AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ); 269 263 AggregateDecl( const AggregateDecl &other ); 270 virtual ~AggregateDecl(); 271 264 272 265 std::list<Declaration*>& get_members() { return members; } 273 266 std::list<TypeDecl*>& get_parameters() { return parameters; } … … 353 346 AsmDecl( AsmStmt *stmt ); 354 347 AsmDecl( const AsmDecl &other ); 355 virtual ~AsmDecl();356 348 357 349 AsmStmt *get_stmt() { return stmt; } … … 361 353 virtual void accept( Visitor &v ) override { v.visit( this ); } 362 354 virtual AsmDecl *acceptMutator( Mutator &m ) override { return m.mutate( this ); } 363 virtual void print( std::ostream &os, Indenter indent = {} ) const override;364 virtual void printShort( std::ostream &os, Indenter indent = {} ) const override;365 };366 367 class StaticAssertDecl : public Declaration {368 public:369 Expression * condition;370 ConstantExpr * message; // string literal371 372 StaticAssertDecl( Expression * condition, ConstantExpr * message );373 StaticAssertDecl( const StaticAssertDecl & other );374 virtual ~StaticAssertDecl();375 376 virtual StaticAssertDecl * clone() const override { return new StaticAssertDecl( *this ); }377 virtual void accept( Visitor &v ) override { v.visit( this ); }378 virtual StaticAssertDecl * acceptMutator( Mutator &m ) override { return m.mutate( this ); }379 355 virtual void print( std::ostream &os, Indenter indent = {} ) const override; 380 356 virtual void printShort( std::ostream &os, Indenter indent = {} ) const override;
Note:
See TracChangeset
for help on using the changeset viewer.