Ignore:
Timestamp:
Nov 22, 2022, 10:18:04 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
20cf96d
Parents:
1553a55 (diff), d41735a (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 branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/SynTree/InlineMemberDecl.cc

    r1553a55 r29702ad  
    99#include "Type.h"                // for Type, Type::StorageClasses, Type::Fu...
    1010
    11 InlineValueDecl::InlineValueDecl( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage,
     11InlineMemberDecl::InlineMemberDecl( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage,
    1212Type * type, const std::list< Attribute * >attributes, Type::FuncSpecifiers fs)
    1313    : Parent( name, scs, linkage, attributes, fs ), type( type ) {}
    1414
    15 InlineValueDecl::InlineValueDecl( const InlineValueDecl &other)
     15InlineMemberDecl::InlineMemberDecl( const InlineMemberDecl &other)
    1616    : Parent( other), type( maybeClone( other.type ) ) {}
    1717
    18 InlineValueDecl::~InlineValueDecl() { delete type; }
     18InlineMemberDecl::~InlineMemberDecl() { delete type; }
    1919
    20 InlineValueDecl * InlineValueDecl::newInlineValueDecl( const std::string &name, Type * type ) {
    21     return new InlineValueDecl( name, Type::StorageClasses(), LinkageSpec::C, type );
     20InlineMemberDecl * InlineMemberDecl::newInlineMemberDecl( const std::string &name, Type * type ) {
     21    return new InlineMemberDecl( name, Type::StorageClasses(), LinkageSpec::C, type );
    2222}
    2323
    24 void InlineValueDecl::print( std::ostream &os, Indenter indent ) const {
     24void InlineMemberDecl::print( std::ostream &os, Indenter indent ) const {
    2525    if ( name != "" ) os << name << ": ";
    2626
     
    4444}
    4545
    46 void InlineValueDecl::printShort( std::ostream &os, Indenter indent ) const {
     46void InlineMemberDecl::printShort( std::ostream &os, Indenter indent ) const {
    4747    if ( name != "" ) os << name << ": ";
    4848
Note: See TracChangeset for help on using the changeset viewer.