Adds a matcher called hasOperands for BinaryOperator's when you need to match both sides but the order isn't important, usually on commutative operators.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D80054
[ASTMatchers] Added BinaryOperator hasOperands matcher ClosedPublic Authored by njames93 on May 15 2020, 6:04 PM.
Details Summary Adds a matcher called hasOperands for BinaryOperator's when you need to match both sides but the order isn't important, usually on commutative operators.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 17 2020, 8:16 AM Closed by commit rG74bcb00e00f3: [ASTMatchers] Added BinaryOperator hasOperands matcher (authored by njames93). · Explain WhyMay 17 2020, 12:15 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 264506 clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
|