| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 170832
|
|
|
|
|
|
| |
Fixes <rdar://problem/12887356>.
llvm-svn: 170724
|
|
|
|
|
|
|
|
|
|
| |
Instead of using several callbacks to identify the pointer escape event,
checkers now can register for the checkPointerEscape.
Converted the Malloc checker to use the new callback.
SimpleStreamChecker will be converted next.
llvm-svn: 170625
|
|
|
|
|
|
| |
of the include guards.
llvm-svn: 170364
|
|
|
|
|
|
| |
Thanks for the -Wdocumentation catch, Dmitri!
llvm-svn: 170139
|
|
|
|
|
|
|
|
| |
We now check a few methods for UIResponder, NSResponder, and NSDocument.
Patch by Julian Mayer!
llvm-svn: 170089
|
|
|
|
|
|
|
|
|
|
|
| |
This is a Band-Aid fix to a false positive, where we complain about not
initializing self to [super init], where self is not coming from the
init method, but is coming from the caller to init.
The proper solution would be to associate the self and it's state with
the enclosing init.
llvm-svn: 170059
|
|
|
|
|
|
|
|
|
| |
inlined.
Fixes a false positive that occurs if a user writes their own
initWithBytesNoCopy:freeWhenDone wrapper.
llvm-svn: 169795
|
|
|
|
|
|
|
|
|
| |
Previously we made three passes over the set of dead symbols, and removed
them from the state /twice/. Now we combine the autorelease pass and the
symbol death pass, and only have to remove the bindings for the symbols
that leaked.
llvm-svn: 169527
|
|
|
|
|
|
|
|
| |
referenced_vars_iterator.
This is a nice conceptual cleanup.
llvm-svn: 169480
|
|
|
|
| |
llvm-svn: 169478
|
|
|
|
| |
llvm-svn: 169365
|
|
|
|
|
|
|
| |
This will only check the direct ivar assignments in the annotated
methods.
llvm-svn: 169349
|
|
|
|
| |
llvm-svn: 169318
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
uncovered.
This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.
I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
|
|
|
|
| |
llvm-svn: 169097
|
|
|
|
| |
llvm-svn: 169095
|
|
|
|
|
|
| |
Recursively prune some includes.
llvm-svn: 169094
|
|
|
|
|
|
|
|
|
| |
pull in all the generated Attr code.
Required to pull some functions out of line, but this shouldn't have a perf impact.
No functionality change.
llvm-svn: 169092
|
|
|
|
|
|
|
|
| |
The AllocaRegion did not have the superRegion (based on LocationContext)
as part of it's hash. As a consequence, the AllocaRegions from
different frames were uniqued to be the same region.
llvm-svn: 168599
|
|
|
|
| |
llvm-svn: 168500
|
|
|
|
|
|
|
| |
Also, don't bother to stop tracking symbols in the return value, either.
They are now properly considered live during checkDeadSymbols.
llvm-svn: 168069
|
|
|
|
|
|
|
| |
Also, don't bother to stop tracking symbols in the return value, either.
They are now properly considered live during checkDeadSymbols.
llvm-svn: 168068
|
|
|
|
|
|
|
| |
Also, don't bother to stop tracking symbols in the return value, either.
They are now properly considered live during checkDeadSymbols.
llvm-svn: 168067
|
|
|
|
|
|
|
| |
This simplifies logic, fixes a bug, and adds a test case.
Thanks Jordan!
llvm-svn: 167868
|
|
|
|
|
|
|
|
|
|
| |
and other functions.
When these functions return null, the pointer is not freed by
them/ownership is not transfered. So we should allow the user to free
the pointer by calling another function when the return value is NULL.
llvm-svn: 167813
|
|
|
|
|
|
| |
Patch by Sean McBride!
llvm-svn: 167537
|
|
|
|
|
|
| |
No functionality change; this checker is only used for documentation.
llvm-svn: 167522
|
|
|
|
| |
llvm-svn: 167439
|
|
|
|
|
|
| |
Thanks Jordan.
llvm-svn: 167438
|
|
|
|
| |
llvm-svn: 167351
|
|
|
|
| |
llvm-svn: 167340
|
|
|
|
| |
llvm-svn: 167339
|
|
|
|
|
|
|
|
| |
These are CallEvent-equivalents of helpers already accessible in
CheckerContext, as part of making it easier for new checkers to be written
using CallEvent rather than raw CallExprs.
llvm-svn: 167338
|
|
|
|
|
|
|
| |
Also, Decls already carry a pointer to the ASTContext, so there's no need
to pass an extra argument to the predicate.
llvm-svn: 167337
|
|
|
|
| |
llvm-svn: 167316
|
|
|
|
|
|
|
| |
Add FIXMEs for the traits visible from multiple translation units.
Currently the macros hide their key types in an anonymous namespace.
llvm-svn: 167277
|
|
|
|
|
|
|
|
|
| |
Also, move the REGISTER_*_WITH_PROGRAMSTATE macros to ProgramStateTrait.h.
This doesn't get rid of /all/ explicit uses of ProgramStatePartialTrait,
but it does get a lot of them.
llvm-svn: 167276
|
|
|
|
|
|
| |
No functionality change.
llvm-svn: 167275
|
|
|
|
| |
llvm-svn: 167189
|
|
|
|
|
|
| |
No functionality change.
llvm-svn: 167187
|
|
|
|
|
|
|
|
| |
(and the same for isFalse)
No functionality change.
llvm-svn: 167186
|
|
|
|
|
|
| |
Thanks Ted.
llvm-svn: 167176
|
|
|
|
| |
llvm-svn: 167099
|
|
|
|
| |
llvm-svn: 167002
|
|
|
|
| |
llvm-svn: 167001
|
|
|
|
|
|
|
|
|
|
|
| |
The ImmutableMap should not be the key into the GDM map as there could
be several entries with the same map type. Thanks, Jordan.
This complicates the usage of the macro a bit. When we want to retrieve
the whole map, we need to use another name. Currently, I set it to be
Name ## Ty as in "type of the map we are storing in the ProgramState".
llvm-svn: 167000
|
|
|
|
| |
llvm-svn: 166999
|
|
|
|
|
|
| |
Patch by Sean McBride!
llvm-svn: 166995
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a syntactic checker aimed at helping iOS programmers correctly
subclass and override the methods of UIViewController. While this should
eventually be covered by the 'objc_requires_super' attribute, this
checker can be used with the existing iOS SDKs without any header changes.
This new checker is currently named 'alpha.osx.cocoa.MissingSuperCall'.
Patch by Julian Mayer!
llvm-svn: 166993
|