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

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 19:58:36 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 llvm-commits mailing list