[clang] 2bc2e2e - [MallocChecker] Remove duplicate QCoreApplication::postEvent check. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 27 06:20:46 PDT 2020
Author: Simon Pilgrim
Date: 2020-10-27T13:14:54Z
New Revision: 2bc2e2e9fe25c5568cfb8681e441fcc6a194daa4
URL: https://github.com/llvm/llvm-project/commit/2bc2e2e9fe25c5568cfb8681e441fcc6a194daa4
DIFF: https://github.com/llvm/llvm-project/commit/2bc2e2e9fe25c5568cfb8681e441fcc6a194daa4.diff
LOG: [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/
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
Removed:
################################################################################
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;
More information about the cfe-commits
mailing list