| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 128187
|
|
|
|
|
|
| |
misnomer award.
llvm-svn: 126676
|
|
|
|
| |
llvm-svn: 126613
|
|
|
|
|
|
| |
-analyzer-checker=cocoa,unix
llvm-svn: 126372
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
expressions. Consider the code:
int64_t i = 10 << 30;
This compiles fine, but most developers expect it to produce the value
for 10 gigs, not -2 gigs. This is actually undefined behavior because
the LHS is a signed integer type.
The warning is currently gated behind -Wshift-overflow.
There is a special case where only the sign bit is overridden that gets
a custom error message and is by default ignored. This case is much less
likely to cause observed buggy behavior, it's just undefined behavior
according to the spec. This warning can be enabled with
-Wshift-sign-overflow.
Original patch by Oleg Slezberg, with style tweaks and some correctness
fixes by me.
llvm-svn: 126342
|
|
|
|
|
|
|
|
|
|
| |
NilArgChecker
CFNumberCreateChecker
NSAutoreleasePoolChecker
CFRetainReleaseChecker
ClassReleaseChecker
llvm-svn: 125636
|
|
|
|
|
|
| |
ObjC retain/release checker.
llvm-svn: 124386
|
|
|
|
|
|
| |
static analyzer.
llvm-svn: 124360
|
|
|
|
|
|
| |
to make it clear that we're talking about the declarations and not the types.
llvm-svn: 124175
|
|
|
|
|
|
| |
attributes for the benefit of the static analyzer.
llvm-svn: 124174
|
|
|
|
|
|
|
|
|
| |
methods to verify that they assign 'self' to the
result of an initialization call (e.g. [super init], or [self initWith..]) before using any instance variable or
returning 'self'.
llvm-svn: 123264
|
|
|
|
|
|
|
|
| |
only indicates the create rule if it starts
at the beginning of the method name, not
within the method name.
llvm-svn: 122036
|
|
|
|
| |
llvm-svn: 120796
|
|
|
|
| |
llvm-svn: 117525
|
|
|
|
|
|
| |
analyzer. Fixes a crash reported in <rdar://problem/8272168>. Patch by Henry Mason!
llvm-svn: 110289
|
|
|
|
| |
llvm-svn: 107634
|
|
|
|
|
|
| |
argument was non-NULL, and we report where the null assumption came from (like AttrNonNullChecker already did).
llvm-svn: 107633
|
|
|
|
|
|
|
|
| |
represented
in the ASTs. Fixes <rdar://problem/8015556>.
llvm-svn: 104389
|
|
|
|
|
|
| |
when determining if it returns. Fixes <rdar://problem/7796563>.
llvm-svn: 99663
|
|
|
|
|
|
| |
in the static analyzer.
llvm-svn: 96539
|
|
|
|
| |
llvm-svn: 95348
|
|
|
|
| |
llvm-svn: 93072
|
|
|
|
|
|
|
|
|
| |
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
|
|
|
|
| |
llvm-svn: 91272
|
|
|
|
|
|
|
|
| |
the set of variables "captured" by a block. Until the analysis gets
more sophisticated, for now we stop the retain count tracking of any
objects (transitively) referenced by these variables.
llvm-svn: 89929
|
|
|
|
|
|
| |
anytime we pass a tracked object to a block call we stop tracking it.
llvm-svn: 89831
|
|
|
|
|
|
| |
etc. directly to a class. Fixes <rdar://problem/7252064>.
llvm-svn: 89449
|
|
|
|
|
|
| |
- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious.
llvm-svn: 86430
|
|
|
|
| |
llvm-svn: 85867
|
|
|
|
|
| |
Fixes: <rdar://problem/7358899>
llvm-svn: 85864
|
|
|
|
|
|
|
| |
before '_' when determining Cocoa fundamental rule.
Fixes: <rdar://problem/7265711>
llvm-svn: 84569
|
|
|
|
|
|
| |
summaries. No functionality change.
llvm-svn: 84210
|
|
|
|
|
|
|
|
|
|
| |
'CVPixelBufferCreateWithPlanarBytes()' and
'CVPixelBufferCreateWithBytes' (Core Video API) can indirectly release
a pixel buffer object via a callback.
This fixes <rdar://problem/7283567>.
llvm-svn: 84064
|
|
|
|
|
|
|
|
| |
the data argument) should not be tracked further until we support full IPA.
(fixes <rdar://problem/7299394>)
llvm-svn: 84047
|
|
|
|
| |
llvm-svn: 83204
|
|
|
|
| |
llvm-svn: 81820
|
|
|
|
| |
llvm-svn: 80700
|
|
|
|
|
|
| |
just as if it behaved like an init function. This fixes <rdar://problem/7129086>.
llvm-svn: 79515
|
|
|
|
|
|
|
| |
fixing <rdar://problem/7152619>. Along the way, merge test cases in
'test/Analysis/rdar-6539791.c' into 'test/Analysis/retain-release.m'.
llvm-svn: 79499
|
|
|
|
|
|
|
| |
OldCastRegion used), and the associated command line option
'-analyzer-store=old-basic-cast'.
llvm-svn: 77509
|
|
|
|
|
|
| |
overhaul of the Objective-C type system, but isn't in a checker build yet.
llvm-svn: 76648
|
|
|
|
| |
llvm-svn: 76619
|
|
|
|
| |
llvm-svn: 76129
|
|
|
|
|
|
|
| |
are not explicitly marked as not accepting NULL pointers. This check illustrates
how we need more refactoring in the custom-check logic.
llvm-svn: 75570
|
|
|
|
|
|
|
|
| |
and replace the 'clang-cc' option '-analyzer-store=basic-new-cast' with
'-analyzer-store=basic-old-cast'. We'll keep the old CastRegion implementation
around for a little while for regression testing.
llvm-svn: 75209
|
|
|
|
|
|
| |
using '-analyzer-store=basic-new-cast'.
llvm-svn: 74865
|
|
|
|
|
|
| |
if the return type on an Objective-C method is a CF type reference, not just an Objective-C object reference.
llvm-svn: 74841
|
|
|
|
| |
llvm-svn: 73549
|
|
|
|
|
|
|
| |
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
|