Ignore:
Timestamp:
May 25, 2018, 2:51:06 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
cdc4d43
Parents:
3ef35bd (diff), 58e822a (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.
Message:

Merge remote-tracking branch 'origin/master' into with_gc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    r3ef35bd reba74ba  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 16 09:37:17 2018
    13 // Update Count     : 1070
     12// Last Modified On : Tue May 22 08:39:29 2018
     13// Update Count     : 1074
    1414//
    1515
     
    3232#include "SynTree/Type.h"          // for Type, Type::StorageClasses, Type::...
    3333#include "TypeData.h"              // for TypeData, TypeData::Aggregate_t
    34 #include "TypedefTable.h"          // for TypedefTable, TypedefTable::kind_t...
     34#include "TypedefTable.h"          // for TypedefTable
    3535
    3636class Initializer;
     
    5454
    5555DeclarationNode::DeclarationNode() :
     56                builtin( NoBuiltinType ),
    5657                type( nullptr ),
    5758                bitfieldWidth( nullptr ),
     
    100101        newnode->name = name ? new string( *name ) : nullptr;
    101102
     103        newnode->builtin = NoBuiltinType;
    102104        newnode->type = maybeClone( type );
    103105        newnode->storageClasses = storageClasses;
     
    178180        newnode->type->function.body = body;
    179181
    180         // ignore unnamed routine declarations: void p( int (*)(int) );
    181         if ( newnode->name ) {
    182                 typedefTable.addToEnclosingScope( *newnode->name, TypedefTable::ID );
    183         } // if
    184 
    185182        if ( ret ) {
    186183                newnode->type->base = ret->type;
     
    284281        newnode->name = name;
    285282        newnode->enumeratorValue.reset( constant );
    286         typedefTable.addToEnclosingScope( *newnode->name, TypedefTable::ID );
    287283        return newnode;
    288284} // DeclarationNode::newEnumConstant
     
    550546                                        type->aggregate.params = q->type->forall; // make polymorphic type
    551547                                        // change implicit typedef from TYPEDEFname to TYPEGENname
    552                                         typedefTable.changeKind( *type->aggregate.name, TypedefTable::TG );
     548                                        typedefTable.changeKind( *type->aggregate.name, TYPEGENname );
    553549                                } // if
    554550                        } else {                                                                        // not polymorphic
Note: See TracChangeset for help on using the changeset viewer.