- Jul 24, 2008
-
-
Ted Kremenek authored
llvm-svn: 53966
-
- Jul 23, 2008
-
-
Ted Kremenek authored
llvm-svn: 53960
-
Ted Kremenek authored
Refine the error message of unused ivars. Added test case. llvm-svn: 53957
-
-
Chris Lattner authored
int foo(void) { float x[2]; return x; } rdar://6093986 llvm-svn: 53946
-
- Jul 22, 2008
-
-
Ted Kremenek authored
This implements <rdar://problem/6069935> llvm-svn: 53891
-
Daniel Dunbar authored
This subsumes Nico Weber's patch and implements bzero in terms of llvm.memset to match llvm-gcc. llvm-svn: 53888
-
Daniel Dunbar authored
This closes <rdar://problem/6080720>, support for __builtin_constant_p has been filed separately. llvm-svn: 53885
-
Ted Kremenek authored
Fix indexing bug. llvm-svn: 53882
-
- Jul 21, 2008
-
-
Daniel Dunbar authored
llvm-svn: 53866
-
Daniel Dunbar authored
llvm-svn: 53865
-
Daniel Dunbar authored
+ test case llvm-svn: 53851
-
Chris Lattner authored
the standard "set these as the list of protocols" interface instead of a strange "set this as the size and then set each one to the value" interface. The problem with the later is that it a) is completely different from everything else, b) is awkward, and c) doesn't handle the case when a referenced protocol is invalid: it set it to null. This meant that all clients downstream would have to handle null protocols in the protocol list, and empirically they didn't. Fix this by not setting invalid protocols in the referenced protocol list, fixing the crash on test/Sema/objc-interface-1.m While I'm at it, clean up some locations so that we produce: t.m:1:25: error: cannot find interface declaration for 'NSObject', superclass of 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ~~~~~~~~~~~~~~~~~~~~~ ^ instead of: t.m:1:1: error: cannot find interface declaration for 'NSObject', superclass of 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ^ llvm-svn: 53846
-
Chris Lattner authored
@implementation to resolve nullary selector references. llvm-svn: 53845
-
Chris Lattner authored
interface. This fixes a bug where we used to accept: void test2(NSNumber x) { [x METH]; } which doesn't make sense and GCC rejects. llvm-svn: 53841
-
- Jul 20, 2008
-
-
Nuno Lopes authored
llvm-svn: 53802
-
- Jul 19, 2008
-
-
Ted Kremenek authored
"When dumping the tokens (-dumptokens output type), the column numbers are not correctly shown. This patch fixes that issue." llvm-svn: 53797
-
- Jul 18, 2008
-
-
Ted Kremenek authored
llvm-svn: 53770
-
Daniel Dunbar authored
+ test case <rdar://problem/6080040> http://llvm.org/bugs/show_bug.cgi?id=2280 llvm-svn: 53756
-
- Jul 16, 2008
-
-
Argyrios Kyrtzidis authored
When in C++, make EnumConstant names hide tag names in the same scope, instead of colliding with them. llvm-svn: 53702
-
Steve Naroff authored
This fixes <rdar://problem/5987211> clang ObjC rewriter: @try / @finally block produces unbalanced output. llvm-svn: 53679
-
Argyrios Kyrtzidis authored
When checking for name collision between a tag and a previously defined namespace, the collision occured even when the tag was in a different nested scope. Fix it by taking into account the scope when checking for namespace-tag name collisions. llvm-svn: 53667
-
Ted Kremenek authored
llvm-svn: 53647
-
- Jul 15, 2008
-
-
Ted Kremenek authored
llvm-svn: 53628
-
Ted Kremenek authored
Provide an "Analysis Scope" for Analyses so checks can either be run on code declarations (bodies) or Objective-C @implementation blocks. llvm-svn: 53584
-
- Jul 14, 2008
-
-
Nate Begeman authored
Add some code to handle vector comparisons, which is the language side of the llvm vicmp/vfcmp instructions. Also make the vector-vector and vector-scalar asign checks a bit more sane under the presence of lax vector conversions. llvm-svn: 53565
-
- Jul 12, 2008
-
-
Ted Kremenek authored
ObjCImplementationDecls and sees if a ancestor class defines a method with the same selector but with a different type signature. Right now it just compares return types, and mainly looks at differences in primitive values. The checking will be expanded in the future. llvm-svn: 53482
-
- Jul 09, 2008
-
-
Ted Kremenek authored
llvm-svn: 53335
-
- Jul 07, 2008
-
-
Nuno Lopes authored
also fix the correspondent test (it was expecting more errors than it should. please confirm my fix is correct (at least gcc agrees with me) llvm-svn: 53174
-
- Jul 04, 2008
-
-
Argyrios Kyrtzidis authored
'&&' commands together so that the test status reflects the results of all the commands, otherwise the test status will be the result of only the last command. llvm-svn: 53135
-
Ted Kremenek authored
'&&' clang commands together so that the test status reflects the results of all three clang executions. llvm-svn: 53132
-
Ted Kremenek authored
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002157.html Essentially the observer mechanism in LiveVariables was observing block-level expressions multiple times, leading to a case where the dead store checker could see a value as dead when it was really live. llvm-svn: 53115
-
- Jul 03, 2008
-
-
Ted Kremenek authored
llvm-svn: 53100
-
Ted Kremenek authored
Added static analysis check to see if a subclass of NSObject implements -dealloc, and whether or not that implementation calls [super dealloc]. llvm-svn: 53075
-
Chris Lattner authored
llvm-svn: 53071
-
Chris Lattner authored
'integer constant is so large that it is unsigned' warning for hex literals. llvm-svn: 53070
-
Chris Lattner authored
by filling in the body of a union with enum constants. llvm-svn: 53069
-
Ted Kremenek authored
llvm-svn: 53056
-
Ted Kremenek authored
Update test case: simply running "clang -checker-simple" doesn't invoke the dead store checker anymore. We need "-warn-dead-stores" as well. llvm-svn: 53055
-
- Jul 02, 2008
-
-
Ted Kremenek authored
llvm-svn: 53024
-