[PATCH] D94129: [ASTMatchers] Add binaryOperation matcher

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 11 06:53:09 PST 2021


aaron.ballman added inline comments.


================
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:2739
 
+/// Matches nodes which can be used with binary operators
+///
----------------



================
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:2785
+internal::BindableMatcher<Stmt>
+binaryOperation(InnerMatcherType &&... Matchers) {
+  return mapAnyOf(binaryOperator, cxxOperatorCallExpr).with(Matchers...);
----------------
Missing changes to Registry.cpp to expose this to clang-query?


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