Changes in src/Parser/ParseNode.h [a7741435:8780e30]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
ra7741435 r8780e30 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 13 15:37:33201613 // Update Count : 6 4312 // 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 irtual void print( std::ostream &os, int indent = 0 ) const override{}111 void print( std::ostream &os, int indent = 0 ) const {} 112 112 void printOneLine( std::ostream &os, int indent = 0 ) const {} 113 113 … … 154 154 Expression * build_constantFloat( const std::string &str ); 155 155 Expression * build_constantChar( const std::string &str ); 156 Expression * build_constantZeroOne( const std::string &str );157 156 ConstantExpr * build_constantStr( const std::string &str ); 158 157 Expression * build_field_name_FLOATINGconstant( const std::string & str ); … … 192 191 //############################################################################## 193 192 194 structTypeData;193 class TypeData; 195 194 196 195 class DeclarationNode : public ParseNode { … … 205 204 enum Aggregate { Struct, Union, Trait, NoAggregate }; 206 205 enum TypeClass { Otype, Dtype, Ftype, NoTypeClass }; 207 enum BuiltinType { Valist , Zero, One, NoBuiltinType};206 enum BuiltinType { Valist }; 208 207 209 208 static const char * storageName[]; … … 257 256 DeclarationNode * addAssertions( DeclarationNode * ); 258 257 DeclarationNode * addName( std::string * ); 259 DeclarationNode * addAsmName( ConstantExpr * );260 258 DeclarationNode * addBitfield( ExpressionNode * size ); 261 259 DeclarationNode * addVarArgs(); … … 277 275 } 278 276 279 v irtual void print( std::ostream &os, int indent = 0 ) const override;280 v irtual void printList( std::ostream &os, int indent = 0 ) const override;277 void print( std::ostream &os, int indent = 0 ) const; 278 void printList( std::ostream &os, int indent = 0 ) const; 281 279 282 280 Declaration * build() const; … … 310 308 TypeData * type; 311 309 StorageClass storageClass; 310 bool isInline, isNoreturn; 311 std::list< std::string > attributes; 312 312 ExpressionNode * bitfieldWidth; 313 bool isInline, isNoreturn;314 313 std::unique_ptr<ExpressionNode> enumeratorValue; 314 InitializerNode * initializer; 315 315 bool hasEllipsis; 316 316 LinkageSpec::Spec linkage; 317 ConstantExpr *asmName;318 std::list< std::string > attributes;319 InitializerNode * initializer;320 317 bool extension = false; 321 318 std::string error; … … 352 349 virtual StatementNode * append_last_case( StatementNode * ); 353 350 354 virtual void print( std::ostream &os, int indent = 0 ) const override{}355 virtual void printList( std::ostream &os, int indent = 0 ) const override{}351 virtual void print( std::ostream &os, int indent = 0 ) {} 352 virtual void printList( std::ostream &os, int indent = 0 ) {} 356 353 private: 357 354 std::unique_ptr<Statement> stmt;
Note:
See TracChangeset
for help on using the changeset viewer.