- Jul 04, 2008
-
-
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
-
Ted Kremenek authored
analyses. This potentially is the primordial origins of a Clang-equivalent "PassManager". The new AnalysisConsumer interface allows multiple analyses to be run from a single invocation of Clang. Migrated the logic of "-warn-dead-stores" and "-warn-uninit-values" to use the new AnalysisConsumer interface. The new interface results in a significant code reduction to incorporate an analysis into the Driver. Updated a test case to (correctly) acknowledge that it contains a dead store (this check wasn't being performed because it was previously masked by -warn-uninit-values). llvm-svn: 52996
-
Ted Kremenek authored
llvm-svn: 52993
-
- Jul 01, 2008
-
-
Argyrios Kyrtzidis authored
llvm-svn: 52956
-
- Jun 30, 2008
-
-
Chris Lattner authored
rejected FP immediates like 08.123 llvm-svn: 52890
-
- Jun 29, 2008
-
-
Chris Lattner authored
decl attributes out of the various places they can hide. This makes us correctly reject things like this: t.c:2:22: error: mode attribute only supported for integer and floating-point types int **__attribute((mode(HI)))* i32; ^ because you can't make a pointer be HImode. llvm-svn: 52876
-
- Jun 28, 2008
-
-
Argyrios Kyrtzidis authored
llvm-svn: 52855
-
Eli Friedman authored
integers which have the same width and different signedness work correctly. (The testcase in PR2501 uses a comparison between long and unsigned int). llvm-svn: 52853
-
Chris Lattner authored
double in some places. llvm-svn: 52846
-
- Jun 27, 2008
-
-
Ted Kremenek authored
llvm-svn: 52799
-
- Jun 26, 2008
-
-
Chris Lattner authored
llvm-svn: 52770
-
Chris Lattner authored
used to mutate the attribute list for declspecs when the type was converted, breaking the case where one declspec was shared by multiple declarators. This fixes rdar://6032532. llvm-svn: 52769
-
Chris Lattner authored
llvm-svn: 52754
-
- Jun 25, 2008
-
-
Ted Kremenek authored
Tracked objects now have their type information tracked with them. Enhanced summaries for ObjC methods to include the type information of the receiver. Used the enhanced summaries to support the idiom that NSWindow owns itself (it sends a release message to itself upon close). Added some comments. Did some cleanups with the checker logic using operator overloading (reduced redundant code which I was concerned about being the source of bugs). llvm-svn: 52741
-
Argyrios Kyrtzidis authored
Note that Parser::ParseCXXMemberSpecification is temporarily disabled until the Sema support is in place. Once ParseCXXMemberSpecification is enabled, the Parser/cxx-class.cpp test will pass. llvm-svn: 52694
-
- Jun 23, 2008
-
-
Ted Kremenek authored
The CF retain/release checker now assumes that allocations do not fail. Eventually we will add a flag to the driver to enable allocation failures (documented as a FIXME). llvm-svn: 52632
-
- Jun 21, 2008
-
-
Chris Lattner authored
"this patch adds code generation hooks for Objective-C constant strings. It also modifies Sema so that Objective-C constant strings are treated as untyped objects if the interface for the constant string class can not be found. This is consistent with Apple GCC. I thought it was consistent with GNU GCC, since this was causing failures when trying to compile GNUstep with (GNU) GCC, but it appears that this is not the case when attempting to produce a simple test case to demonstrate it. Possibly there is a way of making the error go away, but I haven't found out what it is yet." Patch by David Chisnall! llvm-svn: 52599
-
Chris Lattner authored
"This moves built-in Objective-C types up the scope chains to where they can be replaced by versions included from the runtime library's headers." This makes it ok to use @"foo" without a declaration for NSConstantString. Patch by David Chisnall! llvm-svn: 52593
-
Chris Lattner authored
Patch by David Chisnall! llvm-svn: 52586
-
Chris Lattner authored
Patch by David Chisnall with objc rewriter and stmtdumper updates from me. llvm-svn: 52580
-
Ted Kremenek authored
llvm-svn: 52578
-
Ted Kremenek authored
llvm-svn: 52568
-
- Jun 20, 2008
-
-
Ted Kremenek authored
1) Check if a dead store appears as a subexpression. For such cases, we emit a verbose diagnostic so that users aren't confused. This addresses: <rdar://problem/5968508> checker gives misleading report for dead store in loop 2) Don't emit a dead store warning when assigning a null value to a pointer. This is a common form of defensive programming. We may wish to make this an option to the the checker one day. This addresses the feature request in the following email: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-June/001978.html llvm-svn: 52555
-
- Jun 19, 2008
-
-
Ted Kremenek authored
have complex RValues yet, so this logic is only fully implemented when __imag__ and __real__ are used on non-complex types. llvm-svn: 52501
-
- Jun 17, 2008
-
-
Eli Friedman authored
which made it work. llvm-svn: 52382
-
- Jun 16, 2008
-
-
Ted Kremenek authored
llvm-svn: 52366
-
Ted Kremenek authored
llvm-svn: 52362
-
Ted Kremenek authored
llvm-svn: 52359
-
Ted Kremenek authored
Move NSString.m test case from Analysis-Apple to Analysis. The test case now works on all platforms. llvm-svn: 52354
-
Ted Kremenek authored
llvm-svn: 52349
-
Ted Kremenek authored
llvm-svn: 52348
-