Changes in src/Parser/DeclarationNode.cc [af9da5f:2e5fa345]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
raf9da5f r2e5fa345 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 16 09:37:17201813 // Update Count : 10 7012 // Last Modified On : Thu Apr 26 13:45:10 2018 13 // Update Count : 1064 14 14 // 15 15 … … 54 54 55 55 DeclarationNode::DeclarationNode() : 56 builtin( NoBuiltinType ), 56 57 type( nullptr ), 57 58 bitfieldWidth( nullptr ), … … 101 102 newnode->name = name ? new string( *name ) : nullptr; 102 103 104 newnode->builtin = NoBuiltinType; 103 105 newnode->type = maybeClone( type ); 104 106 newnode->storageClasses = storageClasses; … … 527 529 528 530 DeclarationNode * DeclarationNode::addQualifiers( DeclarationNode * q ) { 529 if ( ! q ) { return this; }// empty qualifier531 if ( ! q ) { delete q; return this; } // empty qualifier 530 532 531 533 checkSpecifiers( q ); … … 561 563 562 564 checkQualifiers( type, q->type ); 563 if ( (builtin == Zero || builtin == One) && q->type->qualifiers.val != 0 &&error.length() == 0 ) {565 if ( (builtin == Zero || builtin == One) && error.length() == 0 ) { 564 566 SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, Type::QualifiersNames[ilog2( q->type->qualifiers.val )], builtinTypeNames[builtin] ); 567 // appendError( error, string( "questionable qualifiers" ) ); 565 568 } // if 566 569 addQualifiersToType( q->type, type );
Note: See TracChangeset
for help on using the changeset viewer.