@@ -47,15 +47,15 @@ std::string InstantiateTemplate(clang::ASTContext &ctx, const clang::Expr *expr,
4747 }
4848 auto &ty = subs.at (n - 1 );
4949 if (ty) {
50- ty = Matcher::MapBinding (ctx, subs, n - 1 );
50+ ty = Matcher::MapBinding (subs, n - 1 );
5151 }
5252 return Matcher::InstantiateTgt (subs, text);
5353}
5454
5555std::string Map (clang::ASTContext &ctx, clang::QualType qual_type) {
5656 auto [rule, subs] = RuleRegistry::Search (ctx, qual_type);
5757 if (rule) {
58- return Matcher::InstantiateTgt (Matcher::MapBindings (ctx, subs),
58+ return Matcher::InstantiateTgt (Matcher::MapBindings (subs),
5959 rule->type_info .type );
6060 }
6161 return {};
@@ -64,7 +64,7 @@ std::string Map(clang::ASTContext &ctx, clang::QualType qual_type) {
6464std::string MapInitializer (clang::ASTContext &ctx, clang::QualType qual_type) {
6565 auto [rule, subs] = RuleRegistry::Search (ctx, qual_type);
6666 if (rule && !rule->initializer .empty ()) {
67- return Matcher::InstantiateTgt (Matcher::MapBindings (ctx, subs),
67+ return Matcher::InstantiateTgt (Matcher::MapBindings (subs),
6868 rule->initializer );
6969 }
7070 return {};
@@ -73,7 +73,7 @@ std::string MapInitializer(clang::ASTContext &ctx, clang::QualType qual_type) {
7373std::string GetParamType (clang::ASTContext &ctx, const clang::Expr *expr,
7474 unsigned index) {
7575 auto [rule, subs] = RuleRegistry::Search (ctx, expr);
76- return Matcher::InstantiateTgt (Matcher::MapBindings (ctx, subs),
76+ return Matcher::InstantiateTgt (Matcher::MapBindings (subs),
7777 rule->params .at (index).type );
7878}
7979
0 commit comments