Changeset 44adf1b for src/Parser/parser.yy
- Timestamp:
- Mar 5, 2024, 9:55:04 AM (4 months ago)
- Branches:
- master
- Children:
- af60383
- Parents:
- 9262fe9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r9262fe9 r44adf1b 127 127 128 128 // Start at second variable in declaration list and clone the type specifiers for each variable. 129 for ( DeclarationNode * cur = d ynamic_cast<DeclarationNode *>( declList->get_next() ); cur != nullptr; cur = dynamic_cast<DeclarationNode *>( cur->get_next() )) {129 for ( DeclarationNode * cur = declList->next ; cur != nullptr; cur = cur->next ) { 130 130 cl->cloneBaseType( cur, copyattr ); // cur is modified 131 131 } // for … … 139 139 void distExt( DeclarationNode * declaration ) { 140 140 // distribute EXTENSION across all declarations 141 for ( DeclarationNode *iter = declaration ; iter != nullptr; iter = (DeclarationNode *)iter->get_next()) {141 for ( DeclarationNode *iter = declaration ; iter != nullptr ; iter = iter->next ) { 142 142 iter->set_extension( true ); 143 143 } // for … … 146 146 void distInl( DeclarationNode * declaration ) { 147 147 // distribute INLINE across all declarations 148 for ( DeclarationNode *iter = declaration ; iter != nullptr; iter = (DeclarationNode *)iter->get_next()) {148 for ( DeclarationNode *iter = declaration ; iter != nullptr ; iter = iter->next ) { 149 149 iter->set_inLine( true ); 150 150 } // for … … 153 153 void distQual( DeclarationNode * declaration, DeclarationNode * qualifiers ) { 154 154 // distribute qualifiers across all non-variable declarations in a distribution statemement 155 for ( DeclarationNode * iter = declaration ; iter != nullptr; iter = (DeclarationNode *)iter->get_next()) {155 for ( DeclarationNode * iter = declaration ; iter != nullptr ; iter = iter->next ) { 156 156 // SKULLDUGGERY: Distributions are parsed inside out, so qualifiers are added to declarations inside out. Since 157 157 // addQualifiers appends to the back of the list, the forall clauses are in the wrong order (right to left). To
Note: See TracChangeset
for help on using the changeset viewer.