Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r58dd019 r3906301  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Dec 13 13:37:33 2016
    13 // Update Count     : 49
     12// Last Modified On : Thu Aug 18 23:50:24 2016
     13// Update Count     : 40
    1414//
    1515
     
    6969
    7070        std::string get_mangleName() const { return mangleName; }
    71         DeclarationWithType * set_mangleName( std::string newValue ) { mangleName = newValue; return this; }
     71        void set_mangleName( std::string newValue ) { mangleName = newValue; }
    7272
    7373        std::string get_scopedMangleName() const { return mangleName + "_" + std::to_string(scopeLevel); }
    7474
    7575        int get_scopeLevel() const { return scopeLevel; }
    76         DeclarationWithType * set_scopeLevel( int newValue ) { scopeLevel = newValue; return this; }
    77 
    78         ConstantExpr *get_asmName() const { return asmName; }
    79         DeclarationWithType * set_asmName( ConstantExpr *newValue ) { asmName = newValue; return this; }
     76        void set_scopeLevel( int newValue ) { scopeLevel = newValue; }
    8077
    8178        std::list< Attribute * >& get_attributes() { return attributes; }
     
    9087        // this represents the type with all types and typedefs expanded it is generated by SymTab::Validate::Pass2
    9188        std::string mangleName;
    92         // need to remember the scope level at which the variable was declared, so that shadowed identifiers can be accessed
     89        // need to remember the scope level at which the variable was declared, so that
     90        // shadowed identifiers can be accessed
    9391        int scopeLevel = 0;
    9492
    95         ConstantExpr *asmName;
    9693        std::list< Attribute * > attributes;
    9794};
     
    109106        Initializer *get_init() const { return init; }
    110107        void set_init( Initializer *newValue ) { init = newValue; }
    111 
    112108        Expression *get_bitfieldWidth() const { return bitfieldWidth; }
    113109        void set_bitfieldWidth( Expression *newValue ) { bitfieldWidth = newValue; }
     
    157153  public:
    158154        NamedTypeDecl( const std::string &name, DeclarationNode::StorageClass sc, Type *type );
    159         NamedTypeDecl( const NamedTypeDecl &other );
     155        NamedTypeDecl( const TypeDecl &other );
    160156        virtual ~NamedTypeDecl();
    161157
Note: See TracChangeset for help on using the changeset viewer.