Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Type.cc

    r615a096 r64ac636  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Mar 17 08:42:47 2017
    13 // Update Count     : 28
     12// Last Modified On : Thu Mar 16 10:25:06 2017
     13// Update Count     : 23
    1414//
    1515
     
    1919#include "Declaration.h"
    2020#include "Attribute.h"
    21 #include "InitTweak/InitTweak.h"
    2221#include "Common/utility.h"
    2322
     
    5049Type::Type( const Qualifiers &tq, const std::list< Attribute * > & attributes ) : tq( tq ), attributes( attributes ) {}
    5150
    52 Type::Type( const Type &other ) : tq( other.tq ) {
     51Type::Type( const Type &other ) : BaseSyntaxNode( other ), tq( other.tq ) {
    5352        cloneAll( other.forall, forall );
    5453        cloneAll( other.attributes, attributes );
     
    6160
    6261// These must remain in the same order as the corresponding bit fields.
    63 const char * Type::FuncSpecifiersNames[] = { "inline", "fortran", "_Noreturn" };
    64 const char * Type::StorageClassesNames[] = { "extern", "static", "auto", "register", "_Thread_local" };
    65 const char * Type::QualifiersNames[] = { "const", "restrict", "volatile", "lvalue", "mutex", "_Atomic" };
    66 
    67 Type *Type::stripDeclarator() {
    68         Type * type = this;
    69         while ( Type * at = InitTweak::getPointerBase( type ) ) {
    70                 type = at;
    71         }
    72         return type;
    73 }
     62const char * Type::FuncSpecifiers::Names[] = { "inline", "fortran", "_Noreturn" };
     63const char * Type::StorageClasses::Names[] = { "extern", "static", "auto", "register", "_Thread_local" };
     64const char * Type::Qualifiers::Names[] = { "const", "restrict", "volatile", "lvalue", "mutex", "_Atomic" };
    7465
    7566void Type::print( std::ostream &os, int indent ) const {
     
    8475                printAll( attributes, os, indent+4 );
    8576        } // if
    86        
     77
    8778        tq.print( os );
    8879}
Note: See TracChangeset for help on using the changeset viewer.