- Timestamp:
- Jul 19, 2018, 11:34:25 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- e07caa2
- Parents:
- 679e644
- Location:
- src/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r679e644 r679a260 1009 1009 if ( ReferenceToType * aggr = dynamic_cast<ReferenceToType *>( dwt->get_type() ) ) { 1010 1010 if ( aggr->name.find("anonymous") == std::string::npos ) { 1011 // bool isInline = false;1012 // if (cur->type->kind == TypeData::Aggregate || cur->type->kind == TypeData::AggregateInst) {1013 // if (cur->type->kind == TypeData::Aggregate) {1014 // isInline = cur->type->aggregate.inLine;1015 // } else {1016 // isInline = cur->type->aggInst.inLine;1017 // if ( TypeData * aggr = cur->type->aggInst.aggregate ) {1018 // if ( aggr->kind == TypeData::Aggregate ) {1019 // isInline = isInline || aggr->aggregate.inLine;1020 // }1021 // }1022 // }1023 // }1024 // if (! isInline) {1025 1011 if ( ! cur->inLine ) { 1026 1012 // temporary: warn about anonymous member declarations of named types, since this conflicts with the syntax for the forward declaration of an anonymous type -
src/Parser/parser.yy
r679e644 r679a260 1962 1962 | INLINE type_specifier field_abstract_list ';' // CFA 1963 1963 { 1964 $ 2->inLine = true;1964 $3->inLine = true; 1965 1965 $$ = distAttr( $2, $3 ); // mark all fields in list 1966 1966 }
Note: See TracChangeset
for help on using the changeset viewer.