[PATCH] D120954: adding a check that the number of arguments given in the matcher is the same as the number of arguments in the matched code

2022-03-03 Thread Alister Johnson via Phabricator via cfe-commits
ajohnson-uoregon abandoned this revision.
ajohnson-uoregon added a comment.

created by accident


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120954/new/

https://reviews.llvm.org/D120954

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D120954: adding a check that the number of arguments given in the matcher is the same as the number of arguments in the matched code

2022-03-03 Thread Alister Johnson via Phabricator via cfe-commits
ajohnson-uoregon created this revision.
Herald added a project: All.
ajohnson-uoregon requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120954

Files:
  clang-tools-extra/clang-rewrite/ConstructMatchers.cpp


Index: clang-tools-extra/clang-rewrite/ConstructMatchers.cpp
===
--- clang-tools-extra/clang-rewrite/ConstructMatchers.cpp
+++ clang-tools-extra/clang-rewrite/ConstructMatchers.cpp
@@ -523,7 +523,7 @@
 }
   }
 }
-// child_matchers.push_back(constructMatcher("parameterCountIs", 
VariantValue(argnum), level+5));
+child_matchers.push_back(constructMatcher("argumentsGivenCountIs", 
VariantValue(argnum), level+5));
   }
   if (child_matchers.size() < 1) {
 // guarantee child_matchers.size() >= 1 (also required to not make an


Index: clang-tools-extra/clang-rewrite/ConstructMatchers.cpp
===
--- clang-tools-extra/clang-rewrite/ConstructMatchers.cpp
+++ clang-tools-extra/clang-rewrite/ConstructMatchers.cpp
@@ -523,7 +523,7 @@
 }
   }
 }
-// child_matchers.push_back(constructMatcher("parameterCountIs", VariantValue(argnum), level+5));
+child_matchers.push_back(constructMatcher("argumentsGivenCountIs", VariantValue(argnum), level+5));
   }
   if (child_matchers.size() < 1) {
 // guarantee child_matchers.size() >= 1 (also required to not make an
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits