Changes in src/ResolvExpr/Resolver.cc [293dc1c:954c954]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r293dc1c r954c954 1105 1105 } 1106 1106 1107 1108 } // anonymous namespace 1109 /// Establish post-resolver invariants for expressions 1107 /// Establish post-resolver invariants for expressions 1110 1108 void finishExpr( 1111 1109 ast::ptr< ast::Expr > & expr, const ast::TypeEnvironment & env, … … 1120 1118 StripCasts_new::strip( expr ); 1121 1119 } 1120 } // anonymous namespace 1121 1122 1122 1123 1123 ast::ptr< ast::Expr > resolveInVoidContext( … … 1139 1139 } 1140 1140 1141 /// Resolve `untyped` to the expression whose candidate is the best match for a `void` 1141 namespace { 1142 /// Resolve `untyped` to the expression whose candidate is the best match for a `void` 1142 1143 /// context. 1143 1144 ast::ptr< ast::Expr > findVoidExpression( … … 1150 1151 return newExpr; 1151 1152 } 1152 1153 namespace {1154 1155 1153 1156 1154 /// resolve `untyped` to the expression whose candidate satisfies `pred` with the … … 1164 1162 CandidateRef choice = 1165 1163 findUnfinishedKindExpression( untyped, symtab, kind, pred, mode ); 1166 ResolvExpr::finishExpr( choice->expr, choice->env, untyped->env );1164 finishExpr( choice->expr, choice->env, untyped->env ); 1167 1165 return std::move( choice->expr ); 1168 1166 } … … 1274 1272 // size_t Resolver_new::traceId = Stats::Heap::new_stacktrace_id("Resolver"); 1275 1273 1276 void resolve( ast::TranslationUnit& translationUnit ) {1274 void resolve( std::list< ast::ptr< ast::Decl > >& translationUnit ) { 1277 1275 ast::Pass< Resolver_new >::run( translationUnit ); 1278 1276 }
Note:
See TracChangeset
for help on using the changeset viewer.