Changes in src/SynTree/Declaration.h [c0aa336:8f60f0b]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rc0aa336 r8f60f0b 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jan 20 15:07:29 201713 // Update Count : 5312 // Last Modified On : Tue Dec 13 13:37:33 2016 13 // Update Count : 49 14 14 // 15 15 … … 225 225 typedef Declaration Parent; 226 226 public: 227 AggregateDecl( const std::string &name , const std::list< Attribute * > & attributes = std::list< class Attribute * >());227 AggregateDecl( const std::string &name ); 228 228 AggregateDecl( const AggregateDecl &other ); 229 229 virtual ~AggregateDecl(); … … 231 231 std::list<Declaration*>& get_members() { return members; } 232 232 std::list<TypeDecl*>& get_parameters() { return parameters; } 233 234 std::list< Attribute * >& get_attributes() { return attributes; }235 const std::list< Attribute * >& get_attributes() const { return attributes; }236 233 237 234 bool has_body() const { return body; } … … 247 244 std::list<TypeDecl*> parameters; 248 245 bool body; 249 std::list< Attribute * > attributes;250 246 }; 251 247 … … 253 249 typedef AggregateDecl Parent; 254 250 public: 255 StructDecl( const std::string &name , const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes) {}251 StructDecl( const std::string &name ) : Parent( name ) {} 256 252 StructDecl( const StructDecl &other ) : Parent( other ) {} 257 253 … … 266 262 typedef AggregateDecl Parent; 267 263 public: 268 UnionDecl( const std::string &name , const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes) {}264 UnionDecl( const std::string &name ) : Parent( name ) {} 269 265 UnionDecl( const UnionDecl &other ) : Parent( other ) {} 270 266 … … 279 275 typedef AggregateDecl Parent; 280 276 public: 281 EnumDecl( const std::string &name , const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes) {}277 EnumDecl( const std::string &name ) : Parent( name ) {} 282 278 EnumDecl( const EnumDecl &other ) : Parent( other ) {} 283 279 … … 292 288 typedef AggregateDecl Parent; 293 289 public: 294 TraitDecl( const std::string &name, const std::list< Attribute * > & attributes ) : Parent( name ) { 295 assertf( attributes.empty(), "attribute unsupported for traits" ); 296 } 290 TraitDecl( const std::string &name ) : Parent( name ) {} 297 291 TraitDecl( const TraitDecl &other ) : Parent( other ) {} 298 292
Note:
See TracChangeset
for help on using the changeset viewer.