[PATCH] D53849: [analyzer] Enable retain count checking for OSObject by default
George Karpenkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 31 10:41:01 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL345745: [analyzer] Enable retain count checking for OSObject by defa (authored by george.karpenkov, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D53849?vs=171613&id=171963#toc
Repository:
rL LLVM
https://reviews.llvm.org/D53849
Files:
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
cfe/trunk/test/Analysis/osobject-retain-release.cpp
Index: cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
===================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
@@ -282,7 +282,7 @@
~RetainCountChecker() override { DeleteContainerSeconds(DeadSymbolTags); }
bool shouldCheckOSObjectRetainCount() const {
- return Options.getBooleanOption("CheckOSObject", false, this);
+ return Options.getBooleanOption("CheckOSObject", true, this);
}
void checkEndAnalysis(ExplodedGraph &G, BugReporter &BR,
Index: cfe/trunk/test/Analysis/osobject-retain-release.cpp
===================================================================
--- cfe/trunk/test/Analysis/osobject-retain-release.cpp
+++ cfe/trunk/test/Analysis/osobject-retain-release.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-config osx.cocoa.RetainCount:CheckOSObject=true -analyzer-output=text -verify %s
+// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-output=text -verify %s
struct OSMetaClass;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53849.171963.patch
Type: text/x-patch
Size: 1236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181031/46ef110a/attachment.bin>
More information about the llvm-commits
mailing list