[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
    Alister Johnson via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Mar  3 18:19:45 PST 2022
    
    
  
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120954.412888.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220304/4b641bd9/attachment.bin>
    
    
More information about the cfe-commits
mailing list