Changeset 46f6134 for src/SynTree
- Timestamp:
- Aug 29, 2016, 12:20:45 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ad4581b, b542bfb
- Parents:
- 5e644d3e
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r5e644d3e r46f6134 153 153 public: 154 154 NamedTypeDecl( const std::string &name, DeclarationNode::StorageClass sc, Type *type ); 155 NamedTypeDecl( const TypeDecl &other );155 NamedTypeDecl( const NamedTypeDecl &other ); 156 156 virtual ~NamedTypeDecl(); 157 157 -
src/SynTree/NamedTypeDecl.cc
r5e644d3e r46f6134 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // NamedTypeDecl.cc -- 7 // NamedTypeDecl.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 21 21 : Parent( name, sc, LinkageSpec::Cforall ), base( base ) {} 22 22 23 NamedTypeDecl::NamedTypeDecl( const TypeDecl &other )23 NamedTypeDecl::NamedTypeDecl( const NamedTypeDecl &other ) 24 24 : Parent( other ), base( maybeClone( other.base ) ) { 25 25 cloneAll( other.parameters, parameters ); … … 35 35 void NamedTypeDecl::print( std::ostream &os, int indent ) const { 36 36 using namespace std; 37 37 38 38 if ( get_name() != "" ) { 39 39 os << get_name() << ": "; … … 59 59 void NamedTypeDecl::printShort( std::ostream &os, int indent ) const { 60 60 using namespace std; 61 61 62 62 if ( get_name() != "" ) { 63 63 os << get_name() << ": ";
Note: See TracChangeset
for help on using the changeset viewer.