summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/array-struct.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement retrieval of the default value of element and field regions.Zhongxing Xu2009-01-231-0/+8
| | | | llvm-svn: 62847
* Add a test case for init expr of array and struct type.Zhongxing Xu2009-01-231-0/+1
| | | | llvm-svn: 62845
* Fix RegionStore::getLValueElement() to handle the case when the base region ↵Ted Kremenek2009-01-221-2/+3
| | | | | | | | is not an ElementRegion (also do some cleanups of its core logic). This gets array-struct.c to work with RegionStore. llvm-svn: 62781
* Add -analyze action to run static analyzer, instead of inferring fromDaniel Dunbar2009-01-201-2/+2
| | | | | | individual checker options. llvm-svn: 62634
* Add KillStruct to region store. Zhongxing Xu2009-01-131-0/+1
| | | | | | | | - put the killed region in the kill set. - set its default value to unknown. - removes all bindings for its subregions. llvm-svn: 62138
* MemRegion:Ted Kremenek2008-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | - Overhauled the notion of "types" for TypedRegions. We now distinguish between the "lvalue" of a region (via getLValueRegion()) and the "rvalue" of a region (va getRValueRegion()). Since a region represents a chunk of memory it has both, but we were conflating these concepts in some cases, leading to some insidious bugs. - Removed AnonPointeeType, partially because it is unused and because it doesn't have a clear notion of lvalue vs rvalue type. We can add it back once there is a need for it and we can resolve its role with these concepts. StoreManager: - Overhauled StoreManager::CastRegion. It expects an *lvalue* type for a region. This is actually what motivated the overhaul to the MemRegion type mechanism. It also no longer returns an SVal; we can just return a MemRegion*. - BasicStoreManager::CastRegion now overlays an "AnonTypedRegion" for pointer-pointer casts. This matches with the MemRegion changes. - Similar changes to RegionStore, except I've added a bunch of FIXMEs where it wasn't 100% clear where we should use TypedRegion::getRValueRegion() or TypedRegion::getLValueRegion(). AuditCFNumberCreate check: - Now blasts through AnonTypedRegions that may layer the original memory region, thus checking if the actually memory block is of the appropriate type. This change was needed to work with the changes to StoreManager::CastRegion. GRExprEngine::VisitCast: - Conform to the new interface of StoreManager::CastRegion. Tests: - None of the analysis tests fail now for using the "basic store". - Disabled the tests 'array-struct.c' and 'rdar-6442306-1.m' pending further testing and bug fixing. llvm-svn: 60995
* remove a test case that causes compiler warning.Zhongxing Xu2008-11-301-1/+0
| | | | llvm-svn: 60282
* Add test for initializing array with string literal.Zhongxing Xu2008-11-301-0/+7
| | | | llvm-svn: 60281
* Add documentation for test.Zhongxing Xu2008-11-251-0/+10
| | | | llvm-svn: 60002
* Add no-warning to test case.Zhongxing Xu2008-11-241-1/+1
| | | | llvm-svn: 59995
* Improve test case.Zhongxing Xu2008-11-231-1/+1
| | | | llvm-svn: 59902
* Add test cast for struct array.Zhongxing Xu2008-11-181-0/+4
| | | | llvm-svn: 59522
* Re-enable array-struct test.Zhongxing Xu2008-11-161-1/+1
| | | | llvm-svn: 59396
* - Revert r59229 and r59232: AllocRegion should be immutable.Ted Kremenek2008-11-131-2/+2
| | | | | | - Temporarily disabled test Analysis/array-struct.c for region store. llvm-svn: 59245
* Add test for unsigned array index.Zhongxing Xu2008-11-131-0/+5
| | | | llvm-svn: 59239
* Add test for incomplete struct pointer.Zhongxing Xu2008-11-131-0/+9
| | | | llvm-svn: 59236
* Add a test case for alloca().Zhongxing Xu2008-11-131-0/+6
| | | | llvm-svn: 59233
* Append the test runs with '&&'.Argyrios Kyrtzidis2008-11-071-1/+1
| | | | llvm-svn: 58851
* Add function side-effect test cast.Zhongxing Xu2008-11-021-0/+7
| | | | llvm-svn: 58565
* Add test code for array initialization.Zhongxing Xu2008-10-311-0/+5
| | | | llvm-svn: 58502
* Add test for SCA region store.Zhongxing Xu2008-10-271-0/+8
| | | | llvm-svn: 58234
* Add StringLiteral test code.Zhongxing Xu2008-10-251-0/+7
| | | | llvm-svn: 58136
* Add random array and struct test code for SCA.Zhongxing Xu2008-10-241-1/+6
| | | | llvm-svn: 58085
* Add test case for array and struct variable lvalue evaluation.Zhongxing Xu2008-10-171-0/+14
llvm-svn: 57670
OpenPOWER on IntegriCloud