njames93 accepted this revision. njames93 added a comment. This revision is now accepted and ready to land.
LGTM, but with a very minor nit. ================ Comment at: clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp:49 declRefExpr(to(varDecl(equalsNode(&VarDecl)))).bind("declRef"); + auto MemberExprOfVar = memberExpr(has(DeclRefToVar)); + auto DeclRefToVarOrMemberExprOfVar = ---------------- Can you use `hasObjectExpression` instead of `has` here, Its a bit more explicit in what we are matching. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D97567/new/ https://reviews.llvm.org/D97567 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits