Add an operator overload to ArgumentAdaptingMatcherFunc to allow use of
mapAnyOf within hasAncestor, hasParent etc.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, though it would have been a bit easier to review had the rearranging been done in a separate NFC patch.
clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp | ||
---|---|---|
498–500 | Can you also add a test like: EXPECT_TRUE(notMatches(Code, floatLiteral(hasAncestor(mapAnyOf(ifStmt, forStmt))))); to show that we can still search all of the nodes and fail. |
Can you also add a test like:
to show that we can still search all of the nodes and fail.