- Aug 24, 2011
-
-
Anna Zaks authored
llvm-svn: 138414
-
Ted Kremenek authored
llvm-svn: 138408
-
Eric Christopher authored
This reverts commit 6886a92640f5bffc972f67c0a1f302d6c6e7c322. llvm-svn: 138405
-
- Aug 23, 2011
-
-
Jordy Rose authored
llvm-svn: 138390
-
Jordy Rose authored
[analyzer] Make CFRefBug and CFRefReportVisitor not dependent on CFRefCount. Unfortunately, CFRefReport still is. No functionality change. llvm-svn: 138388
-
Jordy Rose authored
[analyzer] Cleanup: Move temporary declarations of CFRefCount variables closer to their uses. No functionality change. llvm-svn: 138382
-
Jordy Rose authored
[analyzer] Move function retain-count effect summary log from CFRefCount to RetainReleaseChecker, and then explicitly provide the summary log when creating CFRefReports. No functionality change. llvm-svn: 138374
-
Ted Kremenek authored
incorrectly in the CFG, and also the static analyzer. This patch regresses the analyzer a bit, but that needs to be followed up with a better solution. Fixes <rdar://problem/10008112>. llvm-svn: 138372
-
Jordy Rose authored
[analyzer] Move helper method Update from CFRefCount to RetainReleaseChecker. No functionality change. llvm-svn: 138370
-
Jordy Rose authored
[analyzer] Move helper method handleAutoreleaseCounts from CFRefCount to RetainReleaseChecker. No functionality change. llvm-svn: 138365
-
Jordy Rose authored
[analyzer] Move ReturnStmt retain-count analysis from CFRefCount to RetainReleaseChecker. Tweak CFRefReport to reflect that fact that ReturnStmt checks are pre-statement, not post-statement. No intended functionality change. llvm-svn: 138358
-
Jordy Rose authored
llvm-svn: 138353
-
Jordy Rose authored
[analyzer] Only allocate retain summaries for interesting functions/messages. This is a minor saving of memory but doesn't seem to cost any performance. llvm-svn: 138320
-
Jordy Rose authored
[analyzer] Rename CFRefCount's evalSummary method to evalCallOrMessage, since it no longer, uh, evaluates call summaries. llvm-svn: 138313
-
Jordy Rose authored
[analyzer] Migrate the handling of retain-count-related RetEffects and ArgEffects from CFRefCount to RetainReleaseChecker. No intended functionality change. llvm-svn: 138309
-
Anna Zaks authored
[analyzer] MacOSKeychainAPIChecker: Users of KeyChain API often use free() to deallocate the password. Catch this error explicitly and generate the error message at the place where free() is called. llvm-svn: 138296
-
- Aug 22, 2011
- Aug 21, 2011
-
-
Jordy Rose authored
[analyzer] Migrate the aliasing effects of CFRetain and CFMakeCollectable from CFRefCount to RetainReleaseChecker. No intended functionality change. llvm-svn: 138223
-
Jordy Rose authored
[analyzer] Remove FIXME; Ted reminded me that -init is not guaranteed to return its receiver and pretending that it does won't actually buy us anything. (Comment change only.) llvm-svn: 138221
-
Jordy Rose authored
[analyzer] Migrate return value handling from CFRefCount to ExprEngine. This seems to result in a minor performance hit, but I think that will go away again once we eliminate TransferFuncs from function calls entirely. llvm-svn: 138220
-
Jordy Rose authored
llvm-svn: 138215
-
- Aug 20, 2011
-
-
Benjamin Kramer authored
llvm-svn: 138214
-
Jordy Rose authored
[analyzer] RetainReleaseChecker always wants region change updates. There's no need for a flag, at least not right now. llvm-svn: 138212
-
Jordy Rose authored
llvm-svn: 138211
-
Jordy Rose authored
[analyzer] Move handling of hardcoded noreturn ("panic") methods from CFRefCount to NoReturnFunctionChecker. No functionality change intended. llvm-svn: 138210
-
Ted Kremenek authored
[analyzer] Handle reads of ObjCPropertyRefExprs implicitly in Environment. No need to bind an explicit value and create a new node. llvm-svn: 138196
-
Ted Kremenek authored
[analyzer] Simplify ExprEngine::VisitBinaryOperator() by removing recursive visit to subexpressions (which is no longer needed). llvm-svn: 138195
-
Ted Kremenek authored
of the analysis (e.g., analysis of C expressions, analysis of Objective-C expressions, and so on). llvm-svn: 138194
-
Ted Kremenek authored
llvm-svn: 138193
-
Anna Zaks authored
Static Analyzer Diagnostics: Move the responsibility for generating the endOfPath diagnostic piece from BugReport to BugReporterVisitor. Switch CFRefCount to use visitors in order to generate the endOfPath piece. llvm-svn: 138184
-
Ted Kremenek authored
llvm-svn: 138183
-
Anna Zaks authored
Static Analyzer Diagnostics: Switch CFRefCount to using the new visitor API. BugReport no longer needs to inherit from BugReporterVisitor. llvm-svn: 138142
-
Anna Zaks authored
Static Analyzer Diagnostics: Kill the addVisitorCreator(callbackTy, void*) API in favor of addVisitor(BugReporterVisitor*). 1) Create a header file to expose the predefined visitors. And move the parent(BugReporterVisitor) there as well. 2) Remove the registerXXXVisitor functions - the Visitor constructors/getters can be used now to create the object. One exception is registerVarDeclsLastStore(), which registers more then one visitor, so make it static member of FindLastStoreBRVisitor. 3) Modify all the checkers to use the new API. llvm-svn: 138126
-
- Aug 19, 2011
-
-
Anna Zaks authored
Fix a memory leak in the analyzer - BugReports didn't get freed. Plus, remove invalid assert from the destructor which wasn't called previously due to the leak. llvm-svn: 138027
-
Anna Zaks authored
One API change: I added BugReporter as an additional parameter to the BugReporterVisitor::VisitNode() method to allow visitors register other visitors with the report on the fly (while processing a node). This functionality is used by NilReceiverVisitor, which registers TrackNullOrUndefValue when the receiver is null. llvm-svn: 138001
-
- Aug 18, 2011
-
-
Anna Zaks authored
llvm-svn: 137899
-
Anna Zaks authored
Remove EnhancedBugReport and RangedBugReport - pull all the extra functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME. llvm-svn: 137894
-
- Aug 17, 2011
-
-
Jordy Rose authored
[analyzer] Migrate assumption and binding handling from CFRefCount to RetainReleaseChecker. This is mostly a textual move and required no supporting changes. No functionality change intended. llvm-svn: 137874
-
Ted Kremenek authored
Fix a handful of dead stores found by Clang's static analyzer. There's a bunch of others I haven't touched. llvm-svn: 137867
-