- 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
-
- Jul 22, 2008
-
-
Ted Kremenek authored
This implements <rdar://problem/6069935> llvm-svn: 53891
-
- Jul 18, 2008
-
-
Ted Kremenek authored
llvm-svn: 53770
-
- Jul 16, 2008
-
-
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 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 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
-
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
-
- Jun 27, 2008
-
-
Ted Kremenek authored
llvm-svn: 52799
-
- 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
-
- 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
-
-
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 16, 2008
-
-
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
-
Ted Kremenek authored
llvm-svn: 52346
-
Ted Kremenek authored
llvm-svn: 52344
-
Ted Kremenek authored
Moved CFDate.m from test/Analysis-Apple to test/Analysis, and added the necessary declarations from Foundation.h to CFDate.m so that the test case can be exercised on all platforms. llvm-svn: 52343
-
- May 22, 2008
-
-
Ted Kremenek authored
llvm-svn: 51395
-
- May 21, 2008
-
-
Ted Kremenek authored
Fixed bug in the transfer function for dereferences: the loaded value from EvalLoad should bind to the UnaryOperator*, not its subexpression. Added test case to exercise this fix when checking for uses of uninitialized values. Patch by Zhongxing Xu! llvm-svn: 51377
-
- May 06, 2008
-
-
Ted Kremenek authored
llvm-svn: 50679
-
- May 05, 2008
-
-
Ted Kremenek authored
highlight the most nested subexpression that appears most responsible (giving the user better diagnostic feedback). Updated test cases to illustrate this feature. Implements: <rdar://problem/5880443> llvm-svn: 50647
-
- Apr 30, 2008
-
-
Ted Kremenek authored
llvm-svn: 50467
-