Changeset 71806e0 for src/SynTree/InlineMemberDecl.cc
- Timestamp:
- Nov 10, 2022, 8:21:54 PM (21 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 7491f97, e4d7c1c
- Parents:
- 639e4fc
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/InlineMemberDecl.cc
r639e4fc r71806e0 9 9 #include "Type.h" // for Type, Type::StorageClasses, Type::Fu... 10 10 11 Inline ValueDecl::InlineValueDecl( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage,11 InlineMemberDecl::InlineMemberDecl( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage, 12 12 Type * type, const std::list< Attribute * >attributes, Type::FuncSpecifiers fs) 13 13 : Parent( name, scs, linkage, attributes, fs ), type( type ) {} 14 14 15 Inline ValueDecl::InlineValueDecl( const InlineValueDecl &other)15 InlineMemberDecl::InlineMemberDecl( const InlineMemberDecl &other) 16 16 : Parent( other), type( maybeClone( other.type ) ) {} 17 17 18 Inline ValueDecl::~InlineValueDecl() { delete type; }18 InlineMemberDecl::~InlineMemberDecl() { delete type; } 19 19 20 Inline ValueDecl * InlineValueDecl::newInlineValueDecl( const std::string &name, Type * type ) {21 return new Inline ValueDecl( name, Type::StorageClasses(), LinkageSpec::C, type );20 InlineMemberDecl * InlineMemberDecl::newInlineMemberDecl( const std::string &name, Type * type ) { 21 return new InlineMemberDecl( name, Type::StorageClasses(), LinkageSpec::C, type ); 22 22 } 23 23 24 void Inline ValueDecl::print( std::ostream &os, Indenter indent ) const {24 void InlineMemberDecl::print( std::ostream &os, Indenter indent ) const { 25 25 if ( name != "" ) os << name << ": "; 26 26 … … 44 44 } 45 45 46 void Inline ValueDecl::printShort( std::ostream &os, Indenter indent ) const {46 void InlineMemberDecl::printShort( std::ostream &os, Indenter indent ) const { 47 47 if ( name != "" ) os << name << ": "; 48 48
Note: See TracChangeset
for help on using the changeset viewer.