Changeset 843054c2 for src/SynTree
- Timestamp:
- May 21, 2015, 9:44:51 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 76f2e97f
- Parents:
- a08ba92
- Location:
- src/SynTree
- Files:
-
- 45 moved
-
AddressExpr.cc (moved) (moved from translator/SynTree/AddressExpr.cc )
-
AggregateDecl.cc (moved) (moved from translator/SynTree/AggregateDecl.cc )
-
ApplicationExpr.cc (moved) (moved from translator/SynTree/ApplicationExpr.cc )
-
ArrayType.cc (moved) (moved from translator/SynTree/ArrayType.cc )
-
AttrType.cc (moved) (moved from translator/SynTree/AttrType.cc )
-
BasicType.cc (moved) (moved from translator/SynTree/BasicType.cc )
-
CodeGenVisitor.cc (moved) (moved from translator/SynTree/CodeGenVisitor.cc )
-
CodeGenVisitor.h (moved) (moved from translator/SynTree/CodeGenVisitor.h )
-
CommaExpr.cc (moved) (moved from translator/SynTree/CommaExpr.cc )
-
CompoundStmt.cc (moved) (moved from translator/SynTree/CompoundStmt.cc )
-
Constant.cc (moved) (moved from translator/SynTree/Constant.cc )
-
Constant.h (moved) (moved from translator/SynTree/Constant.h )
-
DeclStmt.cc (moved) (moved from translator/SynTree/DeclStmt.cc )
-
Declaration.cc (moved) (moved from translator/SynTree/Declaration.cc )
-
Declaration.h (moved) (moved from translator/SynTree/Declaration.h )
-
DeclarationWithType.cc (moved) (moved from translator/SynTree/DeclarationWithType.cc )
-
Expression.cc (moved) (moved from translator/SynTree/Expression.cc )
-
Expression.h (moved) (moved from translator/SynTree/Expression.h )
-
FunctionDecl.cc (moved) (moved from translator/SynTree/FunctionDecl.cc ) (5 diffs)
-
FunctionType.cc (moved) (moved from translator/SynTree/FunctionType.cc )
-
Initializer.cc (moved) (moved from translator/SynTree/Initializer.cc )
-
Initializer.h (moved) (moved from translator/SynTree/Initializer.h )
-
Makefile (moved) (moved from translator/SynTree/Makefile )
-
Mutator.cc (moved) (moved from translator/SynTree/Mutator.cc )
-
Mutator.h (moved) (moved from translator/SynTree/Mutator.h )
-
NamedTypeDecl.cc (moved) (moved from translator/SynTree/NamedTypeDecl.cc )
-
ObjectDecl.cc (moved) (moved from translator/SynTree/ObjectDecl.cc )
-
PointerType.cc (moved) (moved from translator/SynTree/PointerType.cc )
-
ReferenceToType.cc (moved) (moved from translator/SynTree/ReferenceToType.cc )
-
Statement.cc (moved) (moved from translator/SynTree/Statement.cc )
-
Statement.h (moved) (moved from translator/SynTree/Statement.h )
-
SynTree.h (moved) (moved from translator/SynTree/SynTree.h )
-
TupleExpr.cc (moved) (moved from translator/SynTree/TupleExpr.cc )
-
TupleType.cc (moved) (moved from translator/SynTree/TupleType.cc )
-
Type.cc (moved) (moved from translator/SynTree/Type.cc )
-
Type.h (moved) (moved from translator/SynTree/Type.h )
-
TypeDecl.cc (moved) (moved from translator/SynTree/TypeDecl.cc )
-
TypeExpr.cc (moved) (moved from translator/SynTree/TypeExpr.cc )
-
TypeSubstitution.cc (moved) (moved from translator/SynTree/TypeSubstitution.cc )
-
TypeSubstitution.h (moved) (moved from translator/SynTree/TypeSubstitution.h )
-
TypeofType.cc (moved) (moved from translator/SynTree/TypeofType.cc )
-
Visitor.cc (moved) (moved from translator/SynTree/Visitor.cc )
-
Visitor.h (moved) (moved from translator/SynTree/Visitor.h )
-
VoidType.cc (moved) (moved from translator/SynTree/VoidType.cc )
-
module.mk (moved) (moved from translator/SynTree/module.mk )
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/FunctionDecl.cc
ra08ba92 r843054c2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 08:48:46 201513 // Update Count : 1 12 // Last Modified On : Thu May 21 21:31:16 2015 13 // Update Count : 11 14 14 // 15 15 … … 22 22 23 23 FunctionDecl::FunctionDecl( const std::string &name, StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline ) 24 : Parent( name, sc, linkage ), type( type ), statements( statements ), isInline( isInline ) {24 : Parent( name, sc, linkage ), type( type ), statements( statements ), isInline( isInline ) { 25 25 // this is a brazen hack to force the function "main" to have C linkage 26 26 if ( name == "main" ) { … … 30 30 31 31 FunctionDecl::FunctionDecl( const FunctionDecl &other ) 32 : Parent( other ), type( maybeClone( other.type ) ), statements( maybeClone( other.statements ) ), isInline( other.isInline ) {32 : Parent( other ), type( maybeClone( other.type ) ), statements( maybeClone( other.statements ) ), isInline( other.isInline ) { 33 33 } 34 34 … … 68 68 os << "untyped entity "; 69 69 } // if 70 70 71 if ( ! oldIdents.empty() ) { 71 72 os << string( indent+2, ' ' ) << "with parameter names" << endl; … … 74 75 } // for 75 76 } // if 77 76 78 if ( ! oldDecls.empty() ) { 77 79 os << string( indent+2, ' ' ) << "with parameter declarations" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.