[PATCH] D94129: [ASTMatchers] Add binaryOperation matcher
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 15 05:00:18 PST 2021
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM aside from some minor NFC improvements.
================
Comment at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:957
+
+ void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo,
+ std::vector<ArgKind> &Kinds) const override {
----------------
================
Comment at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:964-968
+ for (auto const &F : Funcs) {
+ if (F.isConvertibleTo(Kind, Specificity, LeastDerivedKind))
+ return true;
+ }
+ return false;
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94129/new/
https://reviews.llvm.org/D94129
More information about the cfe-commits
mailing list