- Jul 16, 2009
-
-
Chris Lattner authored
some target hooks. llvm-svn: 75895
-
Ted Kremenek authored
llvm-svn: 75885
-
Ted Kremenek authored
ValueManager::makeArrayIndex()/convertArrayIndex() methods. This handles yet another crash case when reasoning about array indices of different bitwidth and signedness. llvm-svn: 75884
-
Ted Kremenek authored
(1) Moved the SValuator object from GRExprEngine to ValueManager. This allows ValueManager to use the SValuator when creating SVals. (2) Added ValueManager::makeArrayIndex() and ValueManager::convertToArrayIndex(), two SVal creation methods that will help RegionStoreManager always have a consistent set of SVals with the same integer size and type when reasoning about array indices. llvm-svn: 75882
-
Fariborz Jahanian authored
Patch by Ryan Flynn llvm-svn: 75879
-
Zhongxing Xu authored
llvm-svn: 75873
-
Steve Naroff authored
This is fallout from the recent ObjCObjectPointerType rework. I'll work on fixing this tomorrow. llvm-svn: 75870
-
Owen Anderson authored
llvm-svn: 75869
-
Ted Kremenek authored
llvm-svn: 75865
-
Fariborz Jahanian authored
llvm-svn: 75861
-
Ted Kremenek authored
Objective-C pointers to using ObjCObjectPointerType. Now the checking for 'attribute ((nonnull))' in Sema doesn't emit an error when trying to apply that attribute to a parameter that is an Objective-C pointer (this is a regression). To prevent this regression from occuring in the future, the 'nonnull.c' test was moved to test/SemaObjC and renamed 'nonnull.m'. I also enhanced the tests to show that function calls involved a NULL Objective-C pointer constant does not trigger a warning. This is consistent with GCC, but should likely be fixed. llvm-svn: 75856
-
Fariborz Jahanian authored
a test failure, until figuring out what caused the failure. llvm-svn: 75855
-
Fariborz Jahanian authored
base/members. llvm-svn: 75849
-
rdar://problem/7062158Ted Kremenek authored
Fix <rdar://problem/7062158> by having BasicStoreManager model values for 'static' global variables. llvm-svn: 75844
-
- Jul 15, 2009
-
-
Ted Kremenek authored
llvm-svn: 75832
-
Daniel Dunbar authored
llvm-svn: 75821
-
Argyrios Kyrtzidis authored
llvm-svn: 75814
-
Steve Naroff authored
Implement the ObjC pseudo built-in types as clang "BuiltinType's". I say pseudo built-in types, since Sema still injects a typedef for recognition (i.e. they aren't truly built-ins from a parser perspective). This removes the static data/methods on ObjCObjectPointerType while preserving the nice API (no need to fiddle with ASTContext:-). This patch also adds Type::isObjCBuiltinType(). This should be the last fairly large patch related to recrafting the ObjC type system. The follow-on patches should be fairly small. llvm-svn: 75808
-
Dan Gohman authored
Force flag to control whether the case of opening an existing file is considered an error. llvm-svn: 75802
-
Daniel Dunbar authored
llvm-svn: 75764
-
Zhongxing Xu authored
llvm-svn: 75761
-
Zhongxing Xu authored
llvm-svn: 75750
-
Ted Kremenek authored
llvm-svn: 75748
-
Zhongxing Xu authored
llvm-svn: 75745
-
Zhongxing Xu authored
llvm-svn: 75740
-
Ted Kremenek authored
llvm-svn: 75738
-
Ted Kremenek authored
More test cases revealed that the logic in StoreManager::InvalidateRegion() needs more finesse when handling the invalidation of pointers. Pointers that were invalidated as integers could later cause problems for clients using them as pointers. It is easier for us to model a symbolic value as a pointer rather than modeling a non-symbolic value as a pointer. This patch causes: - StoreManager::InvalidateRegion() to not used the casted type of a region if it would cause a pointer type to be invalidated as a non-pointer type. - Pushes RegionStore::RetrieveElement() further by handling retrievals from symbolic arrays that have been invalidated. This uses the new SymbolDerived construct that was recently introduced. The result is that the failing test in misc-ps-region-store-x86_64.m now passes. Both misc-ps-region-store-x86_64.m and misc-ps-region-store-i386.m contain a test case that motivated this change. llvm-svn: 75730
-
Ted Kremenek authored
SymbolDerived allows us to model symbolic values that are related to other symbols via a region hierarchy. For example, SymbolDerived can be used to model individual values of a symbolic array. llvm-svn: 75728
-
Ted Kremenek authored
llvm-svn: 75713
-
Fariborz Jahanian authored
a dependent type in the ctor initializer-list. llvm-svn: 75712
-
Owen Anderson authored
llvm-svn: 75705
-
Fariborz Jahanian authored
llvm-svn: 75692
-
- Jul 14, 2009
-
-
Eli Friedman authored
using -traditional and -traditional-cpp with clang an error because it's unsupported in clang and causes a significant change in the semantics of the language. llvm-svn: 75690
-
Devang Patel authored
llvm-svn: 75684
-
Ted Kremenek authored
Enhance RegionStoreManager to handle 'Retrieve's from SymbolicRegions. We do this by silently wrapping the region with an ElementRegion. This fixes the failures in misc-ps-region-store.m. llvm-svn: 75679
-
Chris Lattner authored
llvm-svn: 75675
-
Ted Kremenek authored
llvm-svn: 75672
-
Fariborz Jahanian authored
out of line definition. llvm-svn: 75668
-
Fariborz Jahanian authored
ctor-initializer AST build. llvm-svn: 75662
-
Fariborz Jahanian authored
llvm-svn: 75651
-