[PATCH] D75040: [ASTMatchers] Adds a matcher called `hasAnyOperatorName`
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 05:38:52 PST 2020
aaron.ballman accepted this revision.
aaron.ballman added a comment.
LGTM
================
Comment at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1880-1884
+ for (const std::string &Name : Names) {
+ if (Name == OpName)
+ return true;
+ }
+ return false;
----------------
Can we use `llvm::find()` instead of a manual loop?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75040/new/
https://reviews.llvm.org/D75040
More information about the cfe-commits
mailing list