| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
And with that, TransferFuncs is gone!
llvm-svn: 139003
|
| |
|
|
|
|
| |
to RetainCountChecker...and clean up the file while I'm at it.
llvm-svn: 139002
|
| |
|
|
|
|
| |
in a leak. There's room for improvement here...
llvm-svn: 139000
|
| |
|
|
| |
llvm-svn: 138999
|
| |
|
|
|
|
|
|
|
|
| |
current analysis from CFRefCount to ExprEngine.
Remove TransferFuncs from ExprEngine and AnalysisConsumer.
Demote RetainReleaseChecker to a regular checker, and give it the name osx.cocoa.RetainCount (class name change coming shortly). Update tests accordingly.
llvm-svn: 138998
|
| |
|
|
|
|
|
|
| |
builtin types (When requested). This is another step toward making
ASTUnit build the ASTContext as needed when loading an AST file,
rather than doing so after the fact. No actual functionality change (yet).
llvm-svn: 138985
|
| |
|
|
|
|
|
|
| |
free() is returned by realloc(). Most code expect NULL.
And we only need to transfer one final ProgramState.
llvm-svn: 138937
|
| |
|
|
|
|
| |
arguments. Thanks, Joerg.
llvm-svn: 138875
|
| |
|
|
|
|
| |
existing API. Thanks Jordy.
llvm-svn: 138765
|
| |
|
|
|
|
| |
on the previous commit.)
llvm-svn: 138762
|
| |
|
|
|
|
|
|
| |
when analyzing ICU.
Patch by Jean-Daniel Dupas. Thanks for spotting and fixing!
llvm-svn: 138757
|
| |
|
|
|
|
|
|
|
|
| |
debug-printing the contents of a ProgramState.
Unlike the other callbacks, this one is a simple virtual method, since it is only to be used for debugging.
This new callback replaces the old ProgramState::Printer interface, and allows us to move the printing of refcount bindings from CFRefCount to RetainReleaseChecker.
llvm-svn: 138728
|
| |
|
|
|
|
| |
were ignoring it anyway. No functionality change.
llvm-svn: 138720
|
| |
|
|
| |
llvm-svn: 138719
|
| |
|
|
|
|
|
|
| |
This is a common path for function and C++ method calls, Objective-C messages and property accesses, and C++ construct-exprs.
As support, add message receiver accessors to ObjCMessage and CallOrObjCMessage.
llvm-svn: 138718
|
| |
|
|
|
|
|
|
|
|
| |
explicitly requested for invalidation.
Also, allow CallOrObjCMessage to wrap a CXXConstructExpr as well.
Finally, this allows us to remove the clunky whitelisting system from CFRefCount/RetainReleaseChecker. Slight regression due to CXXNewExprs not yet being handled in post-statement callbacks (PR forthcoming).
llvm-svn: 138716
|
| |
|
|
|
|
| |
HandlePathDiagnosticImpl(), and slot in new HandlePathDiagnostic() for potentially handling concurrent access to PathDiagnosticClients (in the future).
llvm-svn: 138713
|
| |
|
|
|
|
| |
its own method. No real functionality change.
llvm-svn: 138712
|
| |
|
|
| |
llvm-svn: 138649
|
| |
|
|
|
|
|
|
| |
Also convert stack-addr-ps.cpp to use the analyzer instead of just Sema, now
that it doesn't crash, and extract the stack-block test into another file since
it errors, and that prevents the analyzer from running.
llvm-svn: 138613
|
| |
|
|
|
|
| |
a level of indirection to handle GC vs. non-GC.
llvm-svn: 138538
|
| |
|
|
| |
llvm-svn: 138535
|
| |
|
|
|
|
| |
(These bug types may have just been leaked before...!)
llvm-svn: 138532
|
| |
|
|
|
|
| |
highlights the allocation site) to all the relevant reports within the checker.
llvm-svn: 138531
|
| |
|
|
|
|
|
|
| |
RetainReleaseChecker.
Because Checkers live for an entire translation unit, this persists summary caches across multiple code bodies and avoids repeated initialization (but probably at the cost of memory). This removes the last references from RetainReleaseChecker to CFRefCount.
llvm-svn: 138529
|
| |
|
|
| |
llvm-svn: 138526
|
| |
|
|
|
|
| |
non-void function")
llvm-svn: 138510
|
| |
|
|
|
|
| |
in trunk.
llvm-svn: 138508
|
| |
|
|
| |
llvm-svn: 138506
|
| |
|
|
| |
llvm-svn: 138497
|
| |
|
|
| |
llvm-svn: 138493
|
| |
|
|
|
|
| |
pointing to the allocation site when reporting a leak.
llvm-svn: 138479
|
| |
|
|
|
|
| |
Cameron.
llvm-svn: 138477
|
| |
|
|
|
|
|
|
| |
preparation for getting rid of CFRefCount.
This is a little hacky for now but will get better once we decide the best way to handle this.
llvm-svn: 138476
|
| |
|
|
|
|
| |
accosiated with the report. (Useful when we report an error on endOfPath or deadSymbols, when the range of the last expression might have nothing to do with the error.)
llvm-svn: 138474
|
| |
|
|
|
|
|
|
| |
CFDictionaryCreate.
This is a very small regression (actually introduced in r138309) because it won't catch leaks of objects passed by reference to CFDictionaryCreate (they're considered to have escaped and are ignored). If this is important we can put in a specific eval::Call to restore the functionality.
llvm-svn: 138464
|
| |
|
|
|
|
| |
the relative ordering of path-sensitive and path-insensitive checks. Still not ideal, but I think a real fix would require infrastructure that doesn't exist yet.
llvm-svn: 138462
|
| |
|
|
|
|
| |
Hopefully a better fix coming soon. See comment for more details.
llvm-svn: 138432
|
| |
|
|
|
|
| |
138405. Ended up unrelated to any problems.
llvm-svn: 138431
|
| |
|
|
|
|
| |
test because this particular circumstance requires an impossible series of events, but this is future-proofing.)
llvm-svn: 138430
|
| |
|
|
|
|
| |
issue seems to have been with the uninitialized variable fixed in 138424; a fix for another Heisencrasher coming soon.
llvm-svn: 138426
|
| |
|
|
| |
llvm-svn: 138424
|
| |
|
|
|
|
|
|
| |
variables closer to their uses. No functionality change."
This reverts commit d02b4af7bd6ca4a743c7074d64e205d718aa221d.
llvm-svn: 138420
|
| |
|
|
|
|
|
|
| |
CFRefCount. Unfortunately, CFRefReport still is. No functionality change."
This reverts commit e3fb7e428b7ba0d5d902dfe3f165d70e09b03a15.
llvm-svn: 138419
|
| |
|
|
|
|
| |
MIGHT deallocate the memory region allocated with SecKeychain APIs. Specifically, when the buffer is passed to CFStringCreateWithBytesNoCopy along with a custom deallocator, which might potentially correctly release the memory.
llvm-svn: 138417
|
| |
|
|
|
|
| |
tracking even when it's no longer a SymbolicRegion, for example, when it is cast to char*.
llvm-svn: 138415
|
| |
|
|
|
|
| |
for future reuse.
llvm-svn: 138414
|
| |
|
|
| |
llvm-svn: 138408
|
| |
|
|
|
|
| |
This reverts commit 6886a92640f5bffc972f67c0a1f302d6c6e7c322.
llvm-svn: 138405
|
| |
|
|
| |
llvm-svn: 138390
|