Changes in / [ed94eac:66a2a61]
- Location:
- src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/LinkageSpec.cc
red94eac r66a2a61 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:22:09 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sat May 16 13:23:21201513 // Update Count : 211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 19 15:53:05 2015 13 // Update Count : 5 14 14 // 15 15 … … 79 79 } 80 80 81 82 bool LinkageSpec::isOverridable( Type t ) { 83 switch ( t ) { 84 case Intrinsic: 85 case AutoGen: 86 return true; 87 case Cforall: 88 case C: 89 case Compiler: 90 return false; 91 } 92 assert( false ); 93 return false; 94 } 95 81 96 bool LinkageSpec::isBuiltin( Type t ) { 82 97 switch ( t ) { -
src/Parser/LinkageSpec.h
red94eac r66a2a61 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:24:28 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sat May 16 13:26:14201513 // Update Count : 311 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Aug 18 14:11:55 2015 13 // Update Count : 5 14 14 // 15 15 … … 34 34 static bool isGeneratable( Type ); 35 35 static bool isOverloadable( Type ); 36 static bool isOverridable( Type ); 36 37 static bool isBuiltin( Type ); 37 38 }; -
src/ResolvExpr/CastCost.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 06:57:43 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sun May 17 06:59:10201513 // Update Count : 211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Oct 05 14:48:45 2015 13 // Update Count : 5 14 14 // 15 15 … … 56 56 return Cost::infinity; 57 57 } else { 58 // xxx - why are we adding cost 0 here? 58 59 return converter.get_cost() + Cost( 0, 0, 0 ); 59 60 } // if … … 82 83 newEnv.add( pointerType->get_forall() ); 83 84 newEnv.add( pointerType->get_base()->get_forall() ); 84 int assignResult = ptrsCastable( pointerType->get_base(), destAsPtr->get_base(), newEnv, indexer );85 if ( assignResult > 0 ) {85 int castResult = ptrsCastable( pointerType->get_base(), destAsPtr->get_base(), newEnv, indexer ); 86 if ( castResult > 0 ) { 86 87 cost = Cost( 0, 0, 1 ); 87 } else if ( assignResult < 0 ) {88 } else if ( castResult < 0 ) { 88 89 cost = Cost( 1, 0, 0 ); 89 90 } // if -
src/ResolvExpr/PtrsAssignable.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 11:44:11 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sun May 17 11:47:36201513 // Update Count : 211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Sep 21 14:34:58 2015 13 // Update Count : 7 14 14 // 15 15 … … 106 106 void PtrsAssignable::visit( TypeInstType *inst ) { 107 107 EqvClass eqvClass; 108 if ( env.lookup( inst->get_name(), eqvClass ) ) {108 if ( env.lookup( inst->get_name(), eqvClass ) && eqvClass.type ) { 109 109 result = ptrsAssignable( eqvClass.type, dest, env ); 110 110 } else { -
src/ResolvExpr/PtrsCastable.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 11:48:00 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sun May 17 11:51:17201513 // Update Count : 211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Oct 05 14:49:12 2015 13 // Update Count : 7 14 14 // 15 15 … … 133 133 134 134 void PtrsCastable::visit(TypeInstType *inst) { 135 result = objectCast( inst, env, indexer ) && objectCast( dest, env, indexer )? 1 : -1;135 result = objectCast( inst, env, indexer ) > 0 && objectCast( dest, env, indexer ) > 0 ? 1 : -1; 136 136 } 137 137 -
src/ResolvExpr/Unify.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 12:27:10 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Jun 26 14:57:05201513 // Update Count : 711 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Sep 02 14:43:22 2015 13 // Update Count : 36 14 14 // 15 15 … … 28 28 29 29 30 // #define DEBUG30 // #define DEBUG 31 31 32 32 namespace ResolvExpr { … … 80 80 bool typesCompatible( Type *first, Type *second, const SymTab::Indexer &indexer, const TypeEnvironment &env ) { 81 81 TypeEnvironment newEnv; 82 OpenVarSet openVars ;82 OpenVarSet openVars, closedVars; // added closedVars 83 83 AssertionSet needAssertions, haveAssertions; 84 84 Type *newFirst = first->clone(), *newSecond = second->clone(); 85 85 env.apply( newFirst ); 86 86 env.apply( newSecond ); 87 88 // do we need to do this? Seems like we do, types should be able to be compatible if they 89 // have free variables that can unify 90 findOpenVars( newFirst, openVars, closedVars, needAssertions, haveAssertions, false ); 91 findOpenVars( newSecond, openVars, closedVars, needAssertions, haveAssertions, true ); 92 87 93 bool result = unifyExact( newFirst, newSecond, newEnv, needAssertions, haveAssertions, openVars, WidenMode( false, false ), indexer ); 88 94 delete newFirst; … … 425 431 426 432 void Unify::visit(ArrayType *arrayType) { 427 // XXX -- compare array dimension428 433 ArrayType *otherArray = dynamic_cast< ArrayType* >( type2 ); 429 if ( otherArray && arrayType->get_isVarLen() == otherArray->get_isVarLen() ) { 434 // to unify, array types must both be VLA or both not VLA 435 // and must both have a dimension expression or not have a dimension 436 if ( otherArray && arrayType->get_isVarLen() == otherArray->get_isVarLen() 437 && ((arrayType->get_dimension() != 0 && otherArray->get_dimension() != 0) 438 || (arrayType->get_dimension() == 0 && otherArray->get_dimension() == 0))) { 439 440 // not positive this is correct in all cases, but it's needed for typedefs 441 if ( arrayType->get_isVarLen() || otherArray->get_isVarLen() ) { 442 return; 443 } 444 445 if ( ! arrayType->get_isVarLen() && ! otherArray->get_isVarLen() && 446 arrayType->get_dimension() != 0 && otherArray->get_dimension() != 0 ) { 447 ConstantExpr * ce1 = dynamic_cast< ConstantExpr * >( arrayType->get_dimension() ); 448 ConstantExpr * ce2 = dynamic_cast< ConstantExpr * >( otherArray->get_dimension() ); 449 assert(ce1 && ce2); 450 451 Constant * c1 = ce1->get_constant(); 452 Constant * c2 = ce2->get_constant(); 453 454 if ( c1->get_value() != c2->get_value() ) { 455 // does not unify if the dimension is different 456 return; 457 } 458 } 459 430 460 result = unifyExact( arrayType->get_base(), otherArray->get_base(), env, needAssertions, haveAssertions, openVars, WidenMode( false, false ), indexer ); 431 461 } // if … … 435 465 bool unifyDeclList( Iterator1 list1Begin, Iterator1 list1End, Iterator2 list2Begin, Iterator2 list2End, TypeEnvironment &env, AssertionSet &needAssertions, AssertionSet &haveAssertions, const OpenVarSet &openVars, const SymTab::Indexer &indexer ) { 436 466 for ( ; list1Begin != list1End && list2Begin != list2End; ++list1Begin, ++list2Begin ) { 467 // Type * commonType; 468 // if ( ! unifyInexact( (*list1Begin)->get_type(), (*list2Begin)->get_type(), env, needAssertions, haveAssertions, openVars, WidenMode( true, true ), indexer, commonType ) ) { 437 469 if ( ! unifyExact( (*list1Begin)->get_type(), (*list2Begin)->get_type(), env, needAssertions, haveAssertions, openVars, WidenMode( false, false ), indexer ) ) { 438 470 return false; … … 449 481 FunctionType *otherFunction = dynamic_cast< FunctionType* >( type2 ); 450 482 if ( otherFunction && functionType->get_isVarArgs() == otherFunction->get_isVarArgs() ) { 451 483 452 484 if ( unifyDeclList( functionType->get_parameters().begin(), functionType->get_parameters().end(), otherFunction->get_parameters().begin(), otherFunction->get_parameters().end(), env, needAssertions, haveAssertions, openVars, indexer ) ) { 453 485 -
src/SymTab/IdTable.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 17:04:02 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sun May 17 17:07:43 201513 // Update Count : 311 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Oct 07 12:21:13 2015 13 // Update Count : 73 14 14 // 15 15 … … 37 37 for ( InnerTableType::iterator inner = outer->second.begin(); inner != outer->second.end(); ++inner ) { 38 38 std::stack< DeclEntry >& entry = inner->second; 39 // xxx - should be while? 39 40 if ( ! entry.empty() && entry.top().second == scopeLevel ) { 40 41 entry.pop(); … … 52 53 if ( decl->get_linkage() == LinkageSpec::C ) { 53 54 manglename = name; 55 } else if ( LinkageSpec::isOverridable( decl->get_linkage() ) ) { 56 // mangle the name without including the appropriate suffix 57 // this will make it so that overridable routines are placed 58 // into the same "bucket" as their user defined versions. 59 manglename = Mangler::mangle( decl, false ); 54 60 } else { 55 61 manglename = Mangler::mangle( decl ); … … 60 66 61 67 if ( it == declTable.end() ) { 68 // first time this name mangling has been defined 62 69 declTable[ manglename ].push( DeclEntry( decl, scopeLevel ) ); 63 70 } else { 64 71 std::stack< DeclEntry >& entry = it->second; 65 72 if ( ! entry.empty() && entry.top().second == scopeLevel ) { 66 if ( decl->get_linkage() != LinkageSpec::C || ResolvExpr::typesCompatible( decl->get_type(), entry.top().first->get_type(), Indexer() ) ) { 73 // if we're giving the same name mangling to things of 74 // different types then there is something wrong 75 Declaration *old = entry.top().first; 76 assert( (dynamic_cast<ObjectDecl*>( decl ) && dynamic_cast<ObjectDecl*>( old ) ) 77 || (dynamic_cast<FunctionDecl*>( decl ) && dynamic_cast<FunctionDecl*>( old ) ) ); 78 79 if ( LinkageSpec::isOverridable( old->get_linkage() ) ) { 80 // new definition shadows the autogenerated one, even at the same scope 81 declTable[ manglename ].push( DeclEntry( decl, scopeLevel ) ); 82 } else if ( decl->get_linkage() != LinkageSpec::C || ResolvExpr::typesCompatible( decl->get_type(), entry.top().first->get_type(), Indexer() ) ) { 83 // typesCompatible doesn't really do the right thing here. When checking compatibility of function types, 84 // we should ignore outermost pointer qualifiers, except _Atomic? 67 85 FunctionDecl *newentry = dynamic_cast< FunctionDecl* >( decl ); 68 FunctionDecl *old = dynamic_cast< FunctionDecl* >( entry.top().first ); 69 if ( newentry && old && newentry->get_statements() && old->get_statements() ) { 70 throw SemanticError( "duplicate function definition for ", decl ); 86 FunctionDecl *oldentry = dynamic_cast< FunctionDecl* >( old ); 87 if ( newentry && oldentry ) { 88 if ( newentry->get_statements() && oldentry->get_statements() ) { 89 throw SemanticError( "duplicate function definition for 1 ", decl ); 90 } // if 71 91 } else { 92 // two objects with the same mangled name defined in the same scope. 93 // both objects must be marked extern or both must be intrinsic for this to be okay 94 // xxx - perhaps it's actually if either is intrinsic then this is okay? 95 // might also need to be same storage class? 72 96 ObjectDecl *newobj = dynamic_cast< ObjectDecl* >( decl ); 73 ObjectDecl *oldobj = dynamic_cast< ObjectDecl* >( entry.top().first);74 if ( newobj && oldobj && newobj->get_init() && oldobj->get_init()) {75 throw SemanticError( "duplicate definition for ", decl );97 ObjectDecl *oldobj = dynamic_cast< ObjectDecl* >( old ); 98 if (newobj->get_storageClass() != DeclarationNode::Extern && oldobj->get_storageClass() != DeclarationNode::Extern ) { 99 throw SemanticError( "duplicate definition for 3 ", decl ); 76 100 } // if 77 101 } // if … … 80 104 } // if 81 105 } else { 106 // new scope level - shadow existing definition 82 107 declTable[ manglename ].push( DeclEntry( decl, scopeLevel ) ); 83 108 } // if 84 109 } // if 85 // ensure the set of routines with C linkage cannot be overloaded110 // this ensures that no two declarations with the same unmangled name both have C linkage 86 111 for ( InnerTableType::iterator i = declTable.begin(); i != declTable.end(); ++i ) { 87 112 if ( ! i->second.empty() && i->second.top().first->get_linkage() == LinkageSpec::C && declTable.size() > 1 ) { -
src/SymTab/Mangler.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 21:40:29 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Jun 8 15:12:12201513 // Update Count : 811 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 19 15:52:24 2015 13 // Update Count : 19 14 14 // 15 15 … … 30 30 31 31 namespace SymTab { 32 Mangler::Mangler( ) : nextVarNum( 0 ), isTopLevel( true ) {32 Mangler::Mangler( bool mangleOverridable ) : nextVarNum( 0 ), isTopLevel( true ), mangleOverridable( mangleOverridable ) { 33 33 } 34 34 … … 41 41 nextVarNum = rhs.nextVarNum; 42 42 isTopLevel = rhs.isTopLevel; 43 mangleOverridable = rhs.mangleOverridable; 43 44 } 44 45 … … 59 60 mangleName << "__"; 60 61 maybeAccept( declaration->get_type(), *this ); 62 if ( mangleOverridable && LinkageSpec::isOverridable( declaration->get_linkage() ) ) { 63 // want to be able to override autogenerated and intrinsic routines, 64 // so they need a different name mangling 65 if ( declaration->get_linkage() == LinkageSpec::AutoGen ) { 66 mangleName << "autogen__"; 67 } else if ( declaration->get_linkage() == LinkageSpec::Intrinsic ) { 68 mangleName << "intrinsic__"; 69 } else { 70 // if we add another kind of overridable function, this has to change 71 assert( false ); 72 } // if 73 } 61 74 isTopLevel = wasTopLevel; 62 75 } … … 214 227 varNums[ (*i )->get_name() ] = std::pair< int, int >( nextVarNum++, (int )(*i )->get_kind() ); 215 228 for ( std::list< DeclarationWithType* >::iterator assert = (*i )->get_assertions().begin(); assert != (*i )->get_assertions().end(); ++assert ) { 216 Mangler sub_mangler ;229 Mangler sub_mangler( mangleOverridable ); 217 230 sub_mangler.nextVarNum = nextVarNum; 218 231 sub_mangler.isTopLevel = false; -
src/SymTab/Mangler.h
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 21:44:03 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Jun 8 14:47:14201513 // Update Count : 511 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 19 15:48:46 2015 13 // Update Count : 14 14 14 // 15 15 … … 25 25 public: 26 26 template< typename SynTreeClass > 27 static std::string mangle( SynTreeClass *decl ); // interface to clients27 static std::string mangle( SynTreeClass *decl, bool mangleOverridable = true ); // interface to clients 28 28 29 29 /// using Visitor::visit; … … 50 50 int nextVarNum; 51 51 bool isTopLevel; 52 bool mangleOverridable; 52 53 53 Mangler( );54 Mangler( bool mangleOverridable ); 54 55 Mangler( const Mangler & ); 55 56 … … 61 62 62 63 template< typename SynTreeClass > 63 std::string Mangler::mangle( SynTreeClass *decl ) {64 Mangler mangler ;64 std::string Mangler::mangle( SynTreeClass *decl, bool mangleOverridable ) { 65 Mangler mangler( mangleOverridable ); 65 66 maybeAccept( decl, mangler ); 66 67 return mangler.get_mangleName(); -
src/SymTab/Validate.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 21:50:04 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : T ue Aug 11 16:59:35 201513 // Update Count : 19 611 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Nov 19 10:44:55 2015 13 // Update Count : 199 14 14 // 15 15 … … 54 54 #include "MakeLibCfa.h" 55 55 #include "TypeEquality.h" 56 #include "ResolvExpr/typeops.h" 56 57 57 58 #define debugPrint( x ) if ( doDebug ) { std::cout << x; } … … 125 126 }; 126 127 127 class A ddStructAssignment: public Visitor {128 class AutogenerateRoutines : public Visitor { 128 129 public: 129 130 /// Generates assignment operators for aggregate types as required 130 static void a ddStructAssignment( std::list< Declaration * > &translationUnit );131 static void autogenerateRoutines( std::list< Declaration * > &translationUnit ); 131 132 132 133 std::list< Declaration * > &get_declsToAdd() { return declsToAdd; } … … 151 152 virtual void visit( CatchStmt *catchStmt ); 152 153 153 A ddStructAssignment() : functionNesting( 0 ) {}154 AutogenerateRoutines() : functionNesting( 0 ) {} 154 155 private: 155 156 template< typename StmtClass > void visitStatement( StmtClass *stmt ); … … 195 196 acceptAll( translationUnit, pass1 ); 196 197 acceptAll( translationUnit, pass2 ); 197 // need to collect all of the assignment operators prior to 198 // this point and only generate assignment operators if one doesn't exist 199 AddStructAssignment::addStructAssignment( translationUnit ); 198 AutogenerateRoutines::autogenerateRoutines( translationUnit ); 200 199 acceptAll( translationUnit, pass3 ); 201 200 } … … 501 500 static const std::list< std::string > noLabels; 502 501 503 void A ddStructAssignment::addStructAssignment( std::list< Declaration * > &translationUnit ) {504 A ddStructAssignmentvisitor;502 void AutogenerateRoutines::autogenerateRoutines( std::list< Declaration * > &translationUnit ) { 503 AutogenerateRoutines visitor; 505 504 acceptAndAdd( translationUnit, visitor, false ); 506 505 } … … 704 703 } 705 704 706 void A ddStructAssignment::visit( EnumDecl *enumDecl ) {705 void AutogenerateRoutines::visit( EnumDecl *enumDecl ) { 707 706 if ( ! enumDecl->get_members().empty() ) { 708 707 EnumInstType *enumInst = new EnumInstType( Type::Qualifiers(), enumDecl->get_name() ); … … 713 712 } 714 713 715 void A ddStructAssignment::visit( StructDecl *structDecl ) {714 void AutogenerateRoutines::visit( StructDecl *structDecl ) { 716 715 if ( ! structDecl->get_members().empty() && structsDone.find( structDecl->get_name() ) == structsDone.end() ) { 717 716 StructInstType *structInst = new StructInstType( Type::Qualifiers(), structDecl->get_name() ); … … 722 721 } 723 722 724 void A ddStructAssignment::visit( UnionDecl *unionDecl ) {723 void AutogenerateRoutines::visit( UnionDecl *unionDecl ) { 725 724 if ( ! unionDecl->get_members().empty() ) { 726 725 UnionInstType *unionInst = new UnionInstType( Type::Qualifiers(), unionDecl->get_name() ); … … 730 729 } 731 730 732 void A ddStructAssignment::visit( TypeDecl *typeDecl ) {731 void AutogenerateRoutines::visit( TypeDecl *typeDecl ) { 733 732 CompoundStmt *stmts = 0; 734 733 TypeInstType *typeInst = new TypeInstType( Type::Qualifiers(), typeDecl->get_name(), false ); … … 758 757 } 759 758 760 void A ddStructAssignment::visit( FunctionType *) {759 void AutogenerateRoutines::visit( FunctionType *) { 761 760 // ensure that we don't add assignment ops for types defined as part of the function 762 761 } 763 762 764 void A ddStructAssignment::visit( PointerType *) {763 void AutogenerateRoutines::visit( PointerType *) { 765 764 // ensure that we don't add assignment ops for types defined as part of the pointer 766 765 } 767 766 768 void A ddStructAssignment::visit( ContextDecl *) {767 void AutogenerateRoutines::visit( ContextDecl *) { 769 768 // ensure that we don't add assignment ops for types defined as part of the context 770 769 } 771 770 772 771 template< typename StmtClass > 773 inline void A ddStructAssignment::visitStatement( StmtClass *stmt ) {772 inline void AutogenerateRoutines::visitStatement( StmtClass *stmt ) { 774 773 std::set< std::string > oldStructs = structsDone; 775 774 addVisit( stmt, *this ); … … 777 776 } 778 777 779 void A ddStructAssignment::visit( FunctionDecl *functionDecl ) {778 void AutogenerateRoutines::visit( FunctionDecl *functionDecl ) { 780 779 maybeAccept( functionDecl->get_functionType(), *this ); 781 780 acceptAll( functionDecl->get_oldDecls(), *this ); … … 785 784 } 786 785 787 void A ddStructAssignment::visit( CompoundStmt *compoundStmt ) {786 void AutogenerateRoutines::visit( CompoundStmt *compoundStmt ) { 788 787 visitStatement( compoundStmt ); 789 788 } 790 789 791 void A ddStructAssignment::visit( IfStmt *ifStmt ) {790 void AutogenerateRoutines::visit( IfStmt *ifStmt ) { 792 791 visitStatement( ifStmt ); 793 792 } 794 793 795 void A ddStructAssignment::visit( WhileStmt *whileStmt ) {794 void AutogenerateRoutines::visit( WhileStmt *whileStmt ) { 796 795 visitStatement( whileStmt ); 797 796 } 798 797 799 void A ddStructAssignment::visit( ForStmt *forStmt ) {798 void AutogenerateRoutines::visit( ForStmt *forStmt ) { 800 799 visitStatement( forStmt ); 801 800 } 802 801 803 void A ddStructAssignment::visit( SwitchStmt *switchStmt ) {802 void AutogenerateRoutines::visit( SwitchStmt *switchStmt ) { 804 803 visitStatement( switchStmt ); 805 804 } 806 805 807 void A ddStructAssignment::visit( ChooseStmt *switchStmt ) {806 void AutogenerateRoutines::visit( ChooseStmt *switchStmt ) { 808 807 visitStatement( switchStmt ); 809 808 } 810 809 811 void A ddStructAssignment::visit( CaseStmt *caseStmt ) {810 void AutogenerateRoutines::visit( CaseStmt *caseStmt ) { 812 811 visitStatement( caseStmt ); 813 812 } 814 813 815 void A ddStructAssignment::visit( CatchStmt *cathStmt ) {814 void AutogenerateRoutines::visit( CatchStmt *cathStmt ) { 816 815 visitStatement( cathStmt ); 817 816 } … … 857 856 Type * t1 = tyDecl->get_base(); 858 857 Type * t2 = typedefNames[ tyDecl->get_name() ].first->get_base(); 859 if ( ! typeEquals( t1, t2, true) ) {858 if ( ! ResolvExpr::typesCompatible( t1, t2, Indexer() ) ) { 860 859 throw SemanticError( "cannot redefine typedef: " + tyDecl->get_name() ); 861 860 } -
src/SynTree/ObjectDecl.cc
red94eac r66a2a61 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Jul 13 18:08:27201513 // Update Count : 1 611 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Sep 29 14:13:01 2015 13 // Update Count : 18 14 14 // 15 15 … … 52 52 get_type()->print( os, indent ); 53 53 } else { 54 os << " untyped entity ";54 os << " untyped entity "; 55 55 } // if 56 56 57 57 if ( init ) { 58 os << " with initializer ";58 os << " with initializer "; 59 59 init->print( os, indent ); 60 60 } // if 61 61 62 62 if ( bitfieldWidth ) { 63 os << " with bitfield width ";63 os << " with bitfield width "; 64 64 bitfieldWidth->print( os ); 65 65 } // if -
src/libcfa/prelude.cf
red94eac r66a2a61 7 7 // Author : Glen Ditchfield 8 8 // Created On : Sat Nov 29 07:23:41 2014 9 // Last Modified By : Peter A. Buhr10 // Last Modified On : T ue Jun 9 14:43:47 201511 // Update Count : 7 59 // Last Modified By : Rob Schluntz 10 // Last Modified On : Thu Nov 19 11:09:47 2015 11 // Update Count : 76 12 12 // 13 13
Note: See TracChangeset
for help on using the changeset viewer.