[PATCH] D75911: [clang-tidy] Added hasAnyListedName matcher
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 10 06:58:55 PDT 2020
gribozavr2 added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/utils/Matchers.cpp:17
+
+Matcher<NamedDecl> hasAnyListedName(std::vector<std::string> Names) {
+ return Matcher<NamedDecl>(new HasNameMatcher(std::move(Names)));
----------------
This matcher sounds generally useful. I think it would be better placed in ASTMatchers.h, WDYT? Can we make it an overload of `hasAnyName`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75911/new/
https://reviews.llvm.org/D75911
More information about the cfe-commits
mailing list