Changeset 679a260 for src/Parser


Ignore:
Timestamp:
Jul 19, 2018, 11:34:25 AM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

Add inline to correct node

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    r679e644 r679a260  
    10091009                                                        if ( ReferenceToType * aggr = dynamic_cast<ReferenceToType *>( dwt->get_type() ) ) {
    10101010                                                                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) {
    10251011                                                                        if ( ! cur->inLine ) {
    10261012                                                                                // 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  
    19621962        | INLINE type_specifier field_abstract_list ';'         // CFA
    19631963                {
    1964                         $2->inLine = true;
     1964                        $3->inLine = true;
    19651965                        $$ = distAttr( $2, $3 );                                        // mark all fields in list
    19661966                }
Note: See TracChangeset for help on using the changeset viewer.