Changes in src/Parser/ParseNode.h [2298f728:62e5546]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r2298f728 r62e5546 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Sep 24 11:12:04201613 // Update Count : 63 312 // Last Modified On : Mon Oct 3 18:03:08 2016 13 // Update Count : 636 14 14 // 15 15 … … 109 109 ExpressionNode * set_extension( bool exten ) { extension = exten; return this; } 110 110 111 v oid print( std::ostream &os, int indent = 0 ) const{}111 virtual void print( std::ostream &os, int indent = 0 ) const override {} 112 112 void printOneLine( std::ostream &os, int indent = 0 ) const {} 113 113 … … 187 187 //############################################################################## 188 188 189 classTypeData;189 struct TypeData; 190 190 191 191 class DeclarationNode : public ParseNode { … … 198 198 enum Signedness { Signed, Unsigned, NoSignedness }; 199 199 enum Length { Short, Long, LongLong, NoLength }; 200 enum Aggregate { Struct, Union, Trait };201 enum TypeClass { Otype, Dtype, Ftype };200 enum Aggregate { Struct, Union, Trait, NoAggregate }; 201 enum TypeClass { Otype, Dtype, Ftype, NoTypeClass }; 202 202 enum BuiltinType { Valist }; 203 203 … … 271 271 } 272 272 273 v oid print( std::ostream &os, int indent = 0 ) const;274 v oid printList( std::ostream &os, int indent = 0 ) const;273 virtual void print( std::ostream &os, int indent = 0 ) const override; 274 virtual void printList( std::ostream &os, int indent = 0 ) const override; 275 275 276 276 Declaration * build() const; … … 287 287 public: 288 288 struct Variable_t { 289 const std::string * name;289 // const std::string * name; 290 290 DeclarationNode::TypeClass tyClass; 291 291 DeclarationNode * assertions; … … 294 294 295 295 struct Attr_t { 296 const std::string * name;296 // const std::string * name; 297 297 ExpressionNode * expr; 298 298 DeclarationNode * type; … … 345 345 virtual StatementNode * append_last_case( StatementNode * ); 346 346 347 virtual void print( std::ostream &os, int indent = 0 ) {}348 virtual void printList( std::ostream &os, int indent = 0 ) {}347 virtual void print( std::ostream &os, int indent = 0 ) const override {} 348 virtual void printList( std::ostream &os, int indent = 0 ) const override {} 349 349 private: 350 350 std::unique_ptr<Statement> stmt;
Note:
See TracChangeset
for help on using the changeset viewer.