[PATCH] D14170: Fix false positive warning about memory leak for QApplication::postEvent
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 17 01:05:28 PST 2015
xazax.hun added inline comments.
================
Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:2514
@@ -2513,1 +2513,3 @@
+ if (FName.endswith("postEvent") &&
+ FD->getQualifiedNameAsString() == "QCoreApplication::postEvent") {
----------------
Shouldn't you use == instead of endswith here?
http://reviews.llvm.org/D14170
More information about the cfe-commits
mailing list