[clang-tools-extra] [clang-analysis]Fix false positive in mutation check when using pointer to member function (PR #66846)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 19:58:37 PDT 2023


================
@@ -100,6 +100,20 @@ AST_MATCHER(CXXTypeidExpr, isPotentiallyEvaluated) {
   return Node.isPotentiallyEvaluated();
 }
 
+AST_MATCHER(CXXMemberCallExpr, isConstCallee) {
+  const auto *CalleeDecl = Node.getCalleeDecl();
----------------
EugeneZelenko wrote:

Please don't use `auto` unless type is explicitly stated in same statement or iterator.

https://github.com/llvm/llvm-project/pull/66846


More information about the cfe-commits mailing list