- 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 17, 2008
-
-
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 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
-
- May 16, 2008
-
-
Ted Kremenek authored
llvm-svn: 51198
-
- 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
-
Ted Kremenek authored
llvm-svn: 50721
-
Ted Kremenek authored
llvm-svn: 50715
-
Ted Kremenek authored
llvm-svn: 50714
-
Ted Kremenek authored
Added test case. llvm-svn: 50711
-
Ted Kremenek authored
llvm-svn: 50710
-
Ted Kremenek authored
llvm-svn: 50709
-
Ted Kremenek authored
logic for function calls and message expressions. Use the following heuristic to infer "allocating" instance methods: [ClassName classWithXXX] allocates an object Update testcase to reflect this heuristic. llvm-svn: 50708
-
Ted Kremenek authored
llvm-svn: 50700
-
Ted Kremenek authored
llvm-svn: 50697
-
Ted Kremenek authored
llvm-svn: 50690
-
Ted Kremenek authored
llvm-svn: 50689
-
Ted Kremenek authored
llvm-svn: 50684
-
Ted Kremenek authored
In a leak's "name", indicate GC or non-GC bugs. llvm-svn: 50680
-
Ted Kremenek authored
generic and handles reference counts for NSObjects. llvm-svn: 50674
-
- May 05, 2008
-
-
Ted Kremenek authored
the object was last used. This can be confusing to users. For example: // 'y' is leaked x = foo(y); instead: x = foo(y); // 'y' is leaked llvm-svn: 50661
-
Ted Kremenek authored
llvm-svn: 50657
-
Ted Kremenek authored
Added test case for NSMakeCollectable. llvm-svn: 50653
-
- May 02, 2008
-
-
Ted Kremenek authored
llvm-svn: 50588
-