Changeset 30a1f0c for src/Parser/DeclarationNode.cc
- Timestamp:
- Mar 12, 2024, 6:08:52 PM (4 months ago)
- Branches:
- master
- Children:
- 6337916
- Parents:
- 56a8eb8 (diff), a3525c4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r56a8eb8 r30a1f0c 296 296 newnode->type->array.dimension = size; 297 297 newnode->type->array.isStatic = isStatic; 298 if ( newnode->type->array.dimension == nullptr || newnode->type->array.dimension->isExpressionType<ast::ConstantExpr *>() ) { 299 newnode->type->array.isVarLen = false; 300 } else { 301 newnode->type->array.isVarLen = true; 302 } // if 298 newnode->type->array.isVarLen = size && !size->isExpressionType<ast::ConstantExpr *>(); 303 299 return newnode->addQualifiers( qualifiers ); 304 300 } // DeclarationNode::newArray
Note: See TracChangeset
for help on using the changeset viewer.