From 2bc2e2e9fe25c5568cfb8681e441fcc6a194daa4 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 27 Oct 2020 12:21:33 +0000 Subject: [PATCH] [MallocChecker] Remove duplicate QCoreApplication::postEvent check. NFCI. This appears to have been in the original patch in D14170. Reported as "Snippet 11" in https://www.viva64.com/en/b/0771/ --- clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index fc6d15371a2f..f117d5505ecb 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -3110,11 +3110,6 @@ bool MallocChecker::mayFreeAnyEscapedMemoryOrIsModeledExplicitly( return true; } - if (FName == "postEvent" && - FD->getQualifiedNameAsString() == "QCoreApplication::postEvent") { - return true; - } - if (FName == "connectImpl" && FD->getQualifiedNameAsString() == "QObject::connectImpl") { return true;