- Timestamp:
- Jul 9, 2018, 10:31:54 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 036dd5f
- Parents:
- 062e8df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r062e8df r0bcc2b7 200 200 void premutate( UnionDecl * unionDecl ); 201 201 void premutate( EnumDecl * enumDecl ); 202 void premutate( TraitDecl * ); 202 203 203 204 void premutate( FunctionType * ftype ); … … 211 212 typedef std::unique_ptr<TypedefDecl> TypedefDeclPtr; 212 213 typedef ScopedMap< std::string, std::pair< TypedefDeclPtr, int > > TypedefMap; 213 typedef std::map< std::string, TypeDecl * > TypeDeclMap; // xxx - convert to ScopedMap214 typedef ScopedMap< std::string, TypeDecl * > TypeDeclMap; 214 215 TypedefMap typedefNames; 215 216 TypeDeclMap typedeclNames; … … 981 982 } // if 982 983 983 typedeclNames [ typeDecl->name ] = typeDecl;984 typedeclNames.insert( typeDecl->name, typeDecl ); 984 985 } 985 986 986 987 void ReplaceTypedef::premutate( FunctionDecl * ) { 987 988 GuardScope( typedefNames ); 989 GuardScope( typedeclNames ); 988 990 } 989 991 990 992 void ReplaceTypedef::premutate( ObjectDecl * ) { 991 993 GuardScope( typedefNames ); 994 GuardScope( typedeclNames ); 992 995 } 993 996 … … 1006 1009 void ReplaceTypedef::premutate( CastExpr * ) { 1007 1010 GuardScope( typedefNames ); 1011 GuardScope( typedeclNames ); 1008 1012 } 1009 1013 1010 1014 void ReplaceTypedef::premutate( CompoundStmt * ) { 1011 1015 GuardScope( typedefNames ); 1016 GuardScope( typedeclNames ); 1012 1017 scopeLevel += 1; 1013 1018 GuardAction( [this](){ scopeLevel -= 1; } ); … … 1042 1047 1043 1048 GuardScope( typedefNames ); 1049 GuardScope( typedeclNames ); 1044 1050 mutateAll( aggr->parameters, *visitor ); 1045 1051 … … 1080 1086 GuardValue( inFunctionType ); 1081 1087 inFunctionType = true; 1088 } 1089 1090 void ReplaceTypedef::premutate( TraitDecl * ) { 1091 GuardScope( typedefNames ); 1092 GuardScope( typedeclNames); 1082 1093 } 1083 1094
Note: See TracChangeset
for help on using the changeset viewer.