Changeset f0ecf9b for src/SynTree/Declaration.h
- Timestamp:
- Nov 1, 2017, 5:40:05 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- fde89cf6
- Parents:
- b0837e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rb0837e4 rf0ecf9b 200 200 typedef NamedTypeDecl Parent; 201 201 public: 202 enum Kind { Any,Dtype, Ftype, Ttype };202 enum Kind { Dtype, Ftype, Ttype }; 203 203 204 204 Type * init; … … 216 216 }; 217 217 218 TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind, Type * init = nullptr );218 TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind, bool sized, Type * init = nullptr ); 219 219 TypeDecl( const TypeDecl &other ); 220 220 virtual ~TypeDecl(); … … 225 225 TypeDecl * set_init( Type * newValue ) { init = newValue; return this; } 226 226 227 bool isComplete() const { return kind == Any ||sized; }227 bool isComplete() const { return sized; } 228 228 bool get_sized() const { return sized; } 229 229 TypeDecl * set_sized( bool newValue ) { sized = newValue; return this; }
Note: See TracChangeset
for help on using the changeset viewer.