#
daa1c834 |
| 29-Jul-2010 |
Jordy Rose <jediknil@belkadan.com> |
Use a LazyCompoundVal to handle initialization with a string literal, rather than copying each character.
llvm-svn: 109734
|
Revision tags: llvmorg-2.7.0 |
|
#
2f2692f8 |
| 05-Feb-2010 |
Ted Kremenek <kremenek@apple.com> |
Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.
llvm-svn: 95348
|
#
8fbe78f6 |
| 15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead o
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target).
llvm-svn: 91446
show more ...
|
#
27f686f8 |
| 14-Dec-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Replace clang-cc with clang -cc1.
llvm-svn: 91272
|
#
4ef13f8a |
| 13-Nov-2009 |
Ted Kremenek <kremenek@apple.com> |
Add clang-cc option "--analyzer-experimental-internal-checks". This option enables new "internal" checks that will eventually be turned on by default but still require broader testing.
llvm-svn: 88
Add clang-cc option "--analyzer-experimental-internal-checks". This option enables new "internal" checks that will eventually be turned on by default but still require broader testing.
llvm-svn: 88671
show more ...
|
#
f06c684a |
| 09-Nov-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Add checker for CWE-588: Attempt to Access Child of a Non-structure Pointer.
llvm-svn: 86529
|
#
8b576979 |
| 08-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Eliminate &&s in tests. - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious.
llvm-svn: 86430
|
#
fceb64bd |
| 07-Nov-2009 |
John McCall <rjmccall@apple.com> |
Implement -Wconversion. Off by default, in the non-gcc group. There's significant work left to be done to reduce the false-positive rate here.
llvm-svn: 86326
|
Revision tags: llvmorg-2.6.0 |
|
#
499de425 |
| 30-Jul-2009 |
Anders Carlsson <andersca@mac.com> |
Add casts to avoid a bunch of unused expr warnings. (They aren't reported right now due to a bug that I intend to fix). Ted, please review.
llvm-svn: 77630
|
#
4301526e |
| 29-Jul-2009 |
Ted Kremenek <kremenek@apple.com> |
Remove 'StoreManager::OldCastRegion()', TypedViewRegion (which only OldCastRegion used), and the associated command line option '-analyzer-store=old-basic-cast'.
llvm-svn: 77509
|
#
c1986570 |
| 21-Jul-2009 |
Ted Kremenek <kremenek@apple.com> |
Remove stale comment and fix RUN line.
llvm-svn: 76656
|
#
f6655797 |
| 10-Jul-2009 |
Ted Kremenek <kremenek@apple.com> |
Switch BasicStoreManager to use the new CastRegion implementation by default, and replace the 'clang-cc' option '-analyzer-store=basic-new-cast' with '-analyzer-store=basic-old-cast'. We'll keep the
Switch BasicStoreManager to use the new CastRegion implementation by default, and replace the 'clang-cc' option '-analyzer-store=basic-new-cast' with '-analyzer-store=basic-old-cast'. We'll keep the old CastRegion implementation around for a little while for regression testing.
llvm-svn: 75209
show more ...
|
#
eea8c29a |
| 06-Jul-2009 |
Ted Kremenek <kremenek@apple.com> |
Make 'BasicStoreManager' + 'NewCastRegion' testable from the command line using '-analyzer-store=basic-new-cast'.
llvm-svn: 74865
|
#
4744d560 |
| 29-Jun-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Invalidate the alloca region by setting its default value to conjured symbol.
llvm-svn: 74419
|
#
55e07003 |
| 28-Jun-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Now this test case passes.
llvm-svn: 74410
|
#
6f610707 |
| 28-Jun-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Invalidate a field of struct type by setting its default value to conjured symbol.
llvm-svn: 74408
|
#
1642bdaa |
| 26-Jun-2009 |
Ted Kremenek <kremenek@apple.com> |
Introduce a new concept to the static analyzer: SValuator.
GRTransferFuncs had the conflated role of both constructing SVals (symbolic expressions) as well as handling checker-specific logic. Now SV
Introduce a new concept to the static analyzer: SValuator.
GRTransferFuncs had the conflated role of both constructing SVals (symbolic expressions) as well as handling checker-specific logic. Now SValuator has the role of constructing SVals from expressions and GRTransferFuncs just handles checker-specific logic. The motivation is by separating these two concepts we will be able to much more easily create richer constraint-generating logic without coupling it to the main checker transfer function logic.
We now have one implementation of SValuator: SimpleSValuator.
SimpleSValuator is essentially the SVal-related logic that was in GRSimpleVals (which is removed in this patch). This includes the logic for EvalBinOp, EvalCast, etc. Because SValuator has a narrower role than the old GRTransferFuncs, the interfaces are much simpler, and so is the implementation of SimpleSValuator compared to GRSimpleVals. I also did a line-by-line review of SVal-related logic in GRSimpleVals and cleaned it up while moving it over to SimpleSValuator.
As a consequence of removing GRSimpleVals, there is no longer a '-checker-simple' option. The '-checker-cfref' did everything that option did but also ran the retain/release checker. Of course a user may not always wish to run the retain/release checker, nor do we wish core analysis logic buried in the checker-specific logic. The next step is to refactor the logic in CFRefCount.cpp to separate out these pieces into the core analysis engine.
llvm-svn: 74229
show more ...
|
#
519a47d4 |
| 11-Jun-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Bind the mistakenly generated nonloc::SymbolVal to struct correctly. See the comments for added test case for details.
llvm-svn: 73189
|
#
1075cc0b |
| 20-May-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Treat AllocaRegion as SymbolicRegion in RegionStore::Retrieve().
llvm-svn: 72166
|
#
1f275ba1 |
| 20-May-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Add comments to test case.
llvm-svn: 72165
|
#
a7907608 |
| 20-May-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
* API change: we need to pass GRState to GRExprEngine::EvalBinOp() because RegionStore needs to know the type of alloca region. * RegionStoreManager::EvalBinOp() now converts the alloca region to
* API change: we need to pass GRState to GRExprEngine::EvalBinOp() because RegionStore needs to know the type of alloca region. * RegionStoreManager::EvalBinOp() now converts the alloca region to its first element region, as what is done to symbolic region.
llvm-svn: 72164
show more ...
|
#
08a2ede0 |
| 12-May-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
Add logic for invalidating array region to CFRefCount.cpp. When invalidating array region, set its default value to conjured symbol. When retrieving its element, create new region value symbol for th
Add logic for invalidating array region to CFRefCount.cpp. When invalidating array region, set its default value to conjured symbol. When retrieving its element, create new region value symbol for the element.
Also fix some 80 columns violations.
llvm-svn: 71548
show more ...
|
#
02e50896 |
| 04-May-2009 |
Ted Kremenek <kremenek@apple.com> |
Per conversations with Zhongxing, add an 'element type' to ElementRegion. I also removed 'ElementRegion::getArrayRegion', although we may need to add this back.
This breaks a few test cases with Re
Per conversations with Zhongxing, add an 'element type' to ElementRegion. I also removed 'ElementRegion::getArrayRegion', although we may need to add this back.
This breaks a few test cases with RegionStore: - 'array-struct.c' triggers an infinite recursion in RegionStoreManager. Need to investigate. - misc-ps.m triggers a failure with RegionStoreManager as we now get the diagnostic: 'Line 159: Uninitialized or undefined return value returned to caller.' There were a bunch of places that needed to be edit RegionStoreManager, and we may not be passing all the correct 'element types' down from GRExprEngine.
Zhongxing: When you get a chance, could you review this? I could have easily screwed up something basic in RegionStoreManager.
llvm-svn: 70830
show more ...
|
#
3e3e69bb |
| 03-May-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
region store: make Retrieve() can retrieve embedded array correctly. Also simplify the retrieve logic.
llvm-svn: 70651
|
#
a45cf5b6 |
| 24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc.
Tests and drivers updated, still need to shuffle dirs.
llvm-svn: 67602
|