- 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 24, 2008
-
-
Ted Kremenek authored
llvm-svn: 52668
-
Ted Kremenek authored
llvm-svn: 52667
-
Ted Kremenek authored
Added ObjCSummaryCache, a new summary cache object to cache summaries for Objective-C methods. Instead of mapping from Selectors -> Summaries, we will now map from (ObjCInterfaceDecl*,Selectors) -> Summaries. This will allow more nuanced summary generation. This patch just swaps in the new data structure; the rest of the code works as before by allowing the ObjCInterfaceDecl* to be null. llvm-svn: 52653
-
Ted Kremenek authored
Rename summary methods for "instance methods" to "class methods" (the names got screwed up). No functionality change. llvm-svn: 52650
-
- 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
When using the dead-stores checker with the BugReporter class, properly capture the diagnostic associated with a specific warning and emit it. llvm-svn: 52565
-
- 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 18, 2008
-
-
Ted Kremenek authored
Added a new ProgramPoint: PostPurgeDeadSymbols. This new program point distinguishes between the cases when we just evaluated the transfer function of a Stmt* (PostStmt) or performed a load (PostLoad). This solves a caching bug observed in a recent bug report. llvm-svn: 52443
-
- Jun 17, 2008
-
-
Ted Kremenek authored
llvm-svn: 52426
-
Chris Lattner authored
Patch by David Chisnall! llvm-svn: 52422
-
Ted Kremenek authored
clang as a Release build. The big change is that all AST nodes (subclasses of Stmt) whose children are Expr* store their children as Stmt* or arrays of Stmt*. This is to remove strict-aliasing warnings when using StmtIterator. None of the interfaces of any of the classes have changed (except those with arg_iterators, see below), as the accessor methods introduce the needed casts (via cast<>). While this extra casting may seem cumbersome, it actually adds some important sanity checks throughout the codebase, as clients using StmtIterator can potentially overwrite children that are expected to be Expr* with Stmt* (that aren't Expr*). The casts provide extra sanity checks that are operational in debug builds to catch invariant violations such as these. For classes that have arg_iterators (e.g., CallExpr), the definition of arg_iterator has been replaced. Instead of it being Expr**, it is an actual class (called ExprIterator) that wraps a Stmt**, and provides the necessary operators for iteration. The nice thing about this class is that it also uses cast<> to type-checking, which introduces extra sanity checks throughout the codebase that are useful for debugging. A few of the CodeGen functions that use arg_iterator (especially from OverloadExpr) have been modified to take begin and end iterators instead of a base Expr** and the number of arguments. This matches more with the abstraction of iteration. This still needs to be cleaned up a little bit, as clients expect that ExprIterator is a RandomAccessIterator (which we may or may not wish to allow for efficiency of representation). This is a fairly large patch. It passes the tests (except CodeGen/bitfield.c, which was already broken) on both a Debug and Release build, but it should obviously be reviewed. llvm-svn: 52378
-
- Jun 02, 2008
-
-
- May 29, 2008
-
-
Steve Naroff authored
- #include ExprObjC.h in many places llvm-svn: 51703
-
- May 23, 2008
-
-
Ted Kremenek authored
llvm-svn: 51453
-
- May 22, 2008
-
-
Ted Kremenek authored
tracked object to "escape": it's reference count might be incremented by the called function, thus causing an object's lifetime to extend beyond when the local reference count is decremented to 0. This addresses: <rdar://problem/5933215> llvm-svn: 51433
-
Ted Kremenek authored
Don't use ostringstream (pulling in <sstream>) when creating the dead store diagnostic (simply not needed). llvm-svn: 51432
-
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 20, 2008
-
-
Nuno Lopes authored
llvm-svn: 51324
-
- May 17, 2008
-
-
Ted Kremenek authored
llvm-svn: 51214
-
Ted Kremenek authored
llvm-svn: 51213
-
Ted Kremenek authored
llvm-svn: 51212
-
- May 16, 2008
-
-
Ted Kremenek authored
llvm-svn: 51198
-
Ted Kremenek authored
Partitioned BugTypeCachedLocation::isCached() into two methods: one that accepts and ExplodedNode, and the other that accepts a ProgramPoint. The default behavior is to cache bug reports by the location they occur (the end node). Subclasses can override this behavior by providing a different ProgramPoint. llvm-svn: 51197
-
- May 12, 2008
-
-
Ted Kremenek authored
llvm-svn: 50979
-
- May 10, 2008
-
-
Ted Kremenek authored
Rename IsPointerType to LVal::IsLValType, and update CFRefCount::EvalSummary to use IsLValType when conjuring symbols for return values (this fixes a bug with an assertion firing in the analyzer when two qualified objective-c types were compared). llvm-svn: 50924
-
- May 07, 2008
-
-
Ted Kremenek authored
llvm-svn: 50831
-
Ted Kremenek authored
function that returns a CFxxxRef, not just functions whose name begins with CF. This implements <rdar://problem/5917879>. Added test case for this feature. Updated calls to CStrInCStrNoCase to swap their arguments, per compatibility with strcasestr. llvm-svn: 50829
-
Ted Kremenek authored
llvm-svn: 50824
-
Ted Kremenek authored
Correctly check if the result of CStrInCStrNoCase is NULL to generate summaries; before we were inverting the condition. llvm-svn: 50822
-
Ted Kremenek authored
llvm-svn: 50817
-
Ted Kremenek authored
Do not treat **instance** methods "copyWithZone:" and "mutableCopyWithZone:" from NSObject as allocators. llvm-svn: 50802
-
Ted Kremenek authored
llvm-svn: 50798
-
Ted Kremenek authored
llvm-svn: 50795
-
Ted Kremenek authored
llvm-svn: 50777
-
- May 06, 2008
-
-
Ted Kremenek authored
"#if 0" out some assumptions when auto-generating method summaries. llvm-svn: 50772
-
Ted Kremenek authored
llvm-svn: 50753
-