| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
misinterpreted by clang scan-build
llvm-svn: 73415
|
| |
|
|
|
|
| |
retain/release checker
llvm-svn: 73411
|
| |
|
|
|
|
| |
Convert tabs to spaces.
llvm-svn: 73198
|
| |
|
|
| |
llvm-svn: 73197
|
| |
|
|
|
|
| |
<rdar://problem/6948053> False positive: object substitution during -init* methods warns about returning +0 when using -fobjc-gc-only
llvm-svn: 72971
|
| |
|
|
|
|
|
| |
for non-Objctive-C pointer types. This implicitly documents that the
return type is a CF object reference.
llvm-svn: 72968
|
| |
|
|
|
|
|
|
|
|
| |
QCRenderer, and CIContext (Apple APIs).
This fixes:
<rdar://problem/6902710> clang: false positives w/QC and CoreImage methods.
llvm-svn: 72187
|
| |
|
|
|
|
| |
aren' at the top-most scope of autorelease pools.
llvm-svn: 72065
|
| |
|
|
|
|
| |
types that cannot be determined to be CF types
llvm-svn: 71921
|
| |
|
|
|
|
| |
selector slot has a null IdentifierInfo*. This happens when analyzing Growl.
llvm-svn: 71857
|
| |
|
|
| |
llvm-svn: 71847
|
| |
|
|
|
|
| |
retained object.
llvm-svn: 71797
|
| |
|
|
|
|
|
|
| |
generation when EvalObjCMessageExpr() did not resolve the
ObjCInterfaceDecl* for a receiver when the receiver's symbolic value
wasn't being explicitly tracked.
llvm-svn: 71685
|
| |
|
|
|
|
| |
autorelease tracking.
llvm-svn: 71647
|
| |
|
|
|
|
|
|
|
| |
owned by caller
Now 'init' methods are treated by the retain/release checker as
claiming their receiver and allocating a new object.
llvm-svn: 71579
|
| |
|
|
|
|
|
|
|
| |
array region, set its default value to conjured symbol. When retrieving its
element, create new region value symbol for the element.
Also fix some 80 columns violations.
llvm-svn: 71548
|
| |
|
|
|
|
|
|
| |
same treatment as CF objects
This was accomplished by having 'isTypeRef' recursively walk the typedef stack.
llvm-svn: 71538
|
| |
|
|
|
|
| |
FieldRegions and ObjCIvarRegions as "base" regions in addition to VarRegions.
llvm-svn: 71488
|
| |
|
|
|
|
| |
extend the lifetime of an object stored to a container.
llvm-svn: 71452
|
| |
|
|
|
|
| |
autorelease]' would emit a false 'too many overreleases' error.
llvm-svn: 71432
|
| |
|
|
|
|
| |
the VarRegion as a super region of an ElementRegion.
llvm-svn: 71431
|
| |
|
|
|
|
| |
is expected.
llvm-svn: 71397
|
| |
|
|
|
|
|
|
| |
where an owned one is expected. Also add preliminary checking for
returning a positive retain count object in GC mode where an owned GC
object is expected.
llvm-svn: 71388
|
| |
|
|
|
|
|
|
| |
- Improve -autorelease diagnostics.
- Improve VLA diagnostics.
- Use "short description" for bug when outputting to TextDiagnostics
llvm-svn: 71383
|
| |
|
|
|
|
| |
TypedRegion::getValueType().
llvm-svn: 71321
|
| |
|
|
| |
llvm-svn: 71309
|
| |
|
|
|
|
| |
'autorelease'.
llvm-svn: 71307
|
| |
|
|
|
|
|
|
|
| |
RValueType => ObjectType
LValueType => LocationType
No functionality change.
llvm-svn: 71304
|
| |
|
|
|
|
| |
now until ready).
llvm-svn: 71303
|
| |
|
|
| |
llvm-svn: 71301
|
| |
|
|
| |
llvm-svn: 71290
|
| |
|
|
|
|
| |
EvalEndPath. This sets the stage for handling autorelease counts.
llvm-svn: 71283
|
| |
|
|
|
|
| |
'autorelease'. This isn't used yet to flag errors.
llvm-svn: 71244
|
| |
|
|
| |
llvm-svn: 71216
|
| |
|
|
|
|
|
| |
other changes. Instead of repeatedly checking for GC mode when
getting the return effect, just do this computation once.
llvm-svn: 71193
|
| |
|
|
|
|
|
|
|
|
|
| |
'BugReporterVisitor'. This simplifies callbacks from BugReporter to BugReports
(via VisitNode). It also lays the foundation for arbitrary visitor "call backs"
that can be registered to a BugReporterContext as a PathDiagnostic is
constructed. These call backs can help operate as separate "experts" that can
work on constructed pieces of a PathDiagnostic for which they possess special
knowledge.
llvm-svn: 71121
|
| |
|
|
|
|
|
|
|
|
| |
- Update the old StoreManager::CastRegion to strip off 'ElementRegions' when
casting to void* (Zhongxing: please validate)
- Pass-by-reference argument invalidation logic in CFRefCount.cpp:
- Strip ElementRegions when the ElementRegion is just a 'raw data' view
on top of the underlying typed region.
llvm-svn: 71094
|
| |
|
|
| |
llvm-svn: 70990
|
| |
|
|
| |
llvm-svn: 70952
|
| |
|
|
| |
llvm-svn: 70940
|
| |
|
|
| |
llvm-svn: 70897
|
| |
|
|
|
|
|
|
|
|
|
| |
'objc_ownership_cfretain' -> 'cf_ownership_retain'
'objc_ownership_cfrelease' -> 'cf_ownership_release'
Motivation: Core Foundation objects can be used in isolation from Objective-C,
and this forces users to reason about the separate semantics of CF objects. More
Sema support pending.
llvm-svn: 70884
|
| |
|
|
|
|
| |
Need to add Sema support.
llvm-svn: 70873
|
| |
|
|
|
|
| |
separate method.
llvm-svn: 70870
|
| |
|
|
| |
llvm-svn: 70869
|
| |
|
|
|
|
|
| |
- Fix retain checker test failures.
- Update retain checker to have annotations override default summary effects, not completely redefine them.
llvm-svn: 70828
|
| |
|
|
|
|
|
| |
which is returned instead of a null pointer. This helps centralize
the logic concerning "default effects".
llvm-svn: 70826
|
| |
|
|
|
|
|
| |
We never compare summaries by their pointers, and we create only a
handful of them when analyzing a given function.
llvm-svn: 70824
|
| |
|
|
|
|
|
|
|
| |
"copy" in their name should be treated as owned
For methods that follow the "fundamental rule" and return Core
Foundation objects, treat those objects as owned by the caller.
llvm-svn: 70665
|
| |
|
|
|
|
| |
it much easier to clean up the summary generation logic with annotations.
llvm-svn: 70660
|