gribozavr2 accepted this revision. gribozavr2 added inline comments. This revision is now accepted and ready to land.
================ Comment at: clang/lib/ASTMatchers/ASTMatchersInternal.cpp:234 +DynTypedMatcher::constructWithTraversalKind(DynTypedMatcher InnerMatcher, + ast_type_traits::TraversalKind TK) { + InnerMatcher.Implementation = ---------------- It might read better as an instance method on `DynTypedMatcher`: `DynTypedMatcher::withTraversalKind()`. It is not unprecedented, see `dynCastTo()`. ================ Comment at: clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp:182 + EXPECT_TRUE(TK.hasValue()); + EXPECT_EQ(*TK, TK_AsIs); +} ---------------- Please use `EXPECT_THAT(M.getTraversalKind(), llvm::ValueIs(TK_AsIs));` (also in tests below). You'll need to include `llvm/Testing/Support/SupportHelpers.h`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80685/new/ https://reviews.llvm.org/D80685 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits