- Jun 30, 2009
-
-
Argyrios Kyrtzidis authored
The implementations of these methods can Use Decl::getASTContext() to get the ASTContext. This commit touches a lot of files since call sites for these methods are everywhere. I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it. llvm-svn: 74501
-
- Jun 18, 2009
-
-
- Apr 07, 2009
-
-
Ted Kremenek authored
are considered 'live'. This hack isn't needed anymore because we have a separation in the path-sensitive analyzer between variable names and bindings; the analyzer can continue to reason about the storage of a variable after its name is no longer directly referenced. Now the live variables analysis literally means "is this name live". Along this line, update the dead stores checker to explicitly look for variables whose values have escaped. llvm-svn: 68504
-
- Apr 03, 2009
-
-
Ted Kremenek authored
llvm-svn: 68345
-
- Apr 01, 2009
-
-
rdar://problem/6740387Ted Kremenek authored
should only be an error if that value is consumed. This fix was largely accomplished by moving 'isConsumedExpr' back to ParentMap. llvm-svn: 68195
-
- Feb 09, 2009
-
-
Ted Kremenek authored
Fix PR 2514: Do not flag dead initializations for variables initialized to a constant global variable. llvm-svn: 64149
-
- Jan 25, 2009
-
-
Eli Friedman authored
accurately states what the function is trying to do and how it is different from Expr::isEvaluatable. Also get rid of a parameter that is both unused and inaccurate. llvm-svn: 62951
-
- Jan 20, 2009
-
-
rdar://problem/6506065Ted Kremenek authored
Dead stores checker: Fix <rdar://problem/6506065> by being more selective when say that a store is dead even though the computed value is used in the enclosing expression. llvm-svn: 62552
-
- Jan 09, 2009
-
-
Ted Kremenek authored
Dead stores checker: Don't flag dead stores for self-assignments (common escape hatch for 'unused variable' warnings). llvm-svn: 62010
-
- Nov 24, 2008
-
-
Chris Lattner authored
uses of getName() with uses of getDeclName(). This upgrades a bunch of diags to take DeclNames instead of std::strings. This also tweaks a couple of diagnostics to be cleaner and changes CheckInitializerTypes/PerformInitializationByConstructor to pass around DeclarationNames instead of std::strings. llvm-svn: 59947
-
- Oct 15, 2008
-
-
Ted Kremenek authored
Enhance dead store checker to not flag preincrements to dead variables where the preincrement is a subexpression, e.g. foo(++x); This can cause false negatives, but will remove a whole class of false positives. llvm-svn: 57554
-
- Sep 20, 2008
-
-
Ted Kremenek authored
Changed casing of many bug names. The convention will be to have bug names (mostly) lower cased, and categories use some capitalization. llvm-svn: 56385
-
- Aug 09, 2008
-
-
Ted Kremenek authored
llvm-svn: 54568
-
Ted Kremenek authored
llvm-svn: 54563
-
- Aug 08, 2008
-
-
Ted Kremenek authored
llvm-svn: 54492
-
- Aug 05, 2008
-
-
Ted Kremenek authored
Added decl_iterator to DeclStmt to provide an abstract interface to iterate over the ScopedDecls of a DeclStmt. Updated a few clients of DeclStmt::getNextDeclarator() to use decl_iterator instead. Will update other clients after additional testing. llvm-svn: 54368
-
- Aug 02, 2008
-
-
Ted Kremenek authored
llvm-svn: 54268
-
- Jul 25, 2008
-
-
Ted Kremenek authored
This fixes PR 2573: http://llvm.org/bugs/show_bug.cgi?id=2573 llvm-svn: 54009
-
- Jul 24, 2008
-
-
Ted Kremenek authored
llvm-svn: 53983
-
Ted Kremenek authored
Don't flag dead stores when the result of a preincrement/predecrement is used in an enclosing expression. llvm-svn: 53964
-
- Jul 23, 2008
-
-
Ted Kremenek authored
llvm-svn: 53960
-
- Jul 22, 2008
-
-
Ted Kremenek authored
llvm-svn: 53906
-
- Jul 15, 2008
-
-
Ted Kremenek authored
llvm-svn: 53628
-
- Jul 14, 2008
-
-
Ted Kremenek authored
llvm-svn: 53573
-
- Jul 03, 2008
-
-
Ted Kremenek authored
Have BugReporter::getCFG and BugReporter::getLiveVariables returns pointers instead of references, because they can both fail on functions we cannot construct full CFGs for yet. llvm-svn: 53081
-
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: 53054
-
- Jul 02, 2008
-
-
Ted Kremenek authored
Refactored some of the BugReporter interface so that data such as the ASTContext&, PathDiagnosticClient*, can be provided by an external source. Split BugReporter into BugReporter and GRBugReporter so checkers not based on GRExprEngine can still use the BugReporter mechanism. llvm-svn: 53048
-
Ted Kremenek authored
Modified the DeadStores logic in AnalysisConsumer.cpp to use the LiveVariables object created by the AnalysisManager. llvm-svn: 53043
-
- 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
-
- May 22, 2008
-
-
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 06, 2008
-
-
Ted Kremenek authored
llvm-svn: 50679
-
- Apr 18, 2008
-
-
Ted Kremenek authored
can decide the policy on how to cache related bugs. This allows us to properly to handle warning about multiple leaks in the same location in the ref count checker (not yet done). llvm-svn: 49918
-
- Apr 15, 2008
-
-
Ted Kremenek authored
llvm-svn: 49711
-
Ted Kremenek authored
in a DeclStmt. llvm-svn: 49708
-
- Apr 14, 2008
-
-
Ted Kremenek authored
llvm-svn: 49672
-
Ted Kremenek authored
assume that DeclStmts only have VarDecls; they can have TypedefDecls. llvm-svn: 49662
-
Ted Kremenek authored
warnings are emitted as part of the warnings registered by GRSimpleVals. llvm-svn: 49658
-