- May 06, 2009
-
-
Zhongxing Xu authored
future we would create ElementRegion directly on top of typeless regions. llvm-svn: 71075
-
Zhongxing Xu authored
llvm-svn: 71074
-
Zhongxing Xu authored
llvm-svn: 71060
-
Zhongxing Xu authored
RegionStore. This CastRegion() performs casts according to the kind of the region being cast instead of the type that is cast to. llvm-svn: 71058
-
Ted Kremenek authored
start of 'do' and '@synchronized' statements. llvm-svn: 71038
-
Ted Kremenek authored
about Exprs that are not consumed and fix where the loop iteration diagnostic goes. llvm-svn: 71027
-
- May 05, 2009
-
-
Ted Kremenek authored
llvm-svn: 70990
-
Ted Kremenek authored
llvm-svn: 70952
-
Ted Kremenek authored
llvm-svn: 70946
-
Ted Kremenek authored
llvm-svn: 70943
-
Ted Kremenek authored
llvm-svn: 70940
-
- May 04, 2009
-
-
Ted Kremenek authored
llvm-svn: 70897
-
Ted Kremenek authored
control-flow expressions as dead. llvm-svn: 70887
-
Ted Kremenek authored
'==' and '!=' (some code in the '!=' was not replicated in the '==' code, causing some constraints to get lost). llvm-svn: 70885
-
Ted Kremenek authored
'objc_ownership_cfretain' -> 'cf_ownership_retain' 'objc_ownership_cfrelease' -> 'cf_ownership_release' Motivation: Core Foundation objects can be used in isolation from Objective-C, and this forces users to reason about the separate semantics of CF objects. More Sema support pending. llvm-svn: 70884
-
Ted Kremenek authored
retain checker: Add checker support for FunctionDecl ownership annotations. Need to add Sema support. llvm-svn: 70873
-
Ted Kremenek authored
separate method. llvm-svn: 70870
-
Ted Kremenek authored
llvm-svn: 70869
-
Ted Kremenek authored
ElementRegions that have non-zero array indices. llvm-svn: 70867
-
Ted Kremenek authored
llvm-svn: 70865
-
Ted Kremenek authored
llvm-svn: 70864
-
Zhongxing Xu authored
no-outofbounds.c still fails. Previously it passed because the array index is mistakenly a loc::ConcreteInt. llvm-svn: 70844
-
Ted Kremenek authored
StoreManager: Handle casts from one element region to another. Update test cases. llvm-svn: 70836
-
Ted Kremenek authored
'ElementRegion' on top of the VarRegion for 'x'. This causes the test case xfail_wine_crash.c to now pass for BasicStoreManager. It doesn't crash for RegionStoreManager either, but reports a bogus unintialized value warning. llvm-svn: 70832
-
Ted Kremenek authored
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
-
Ted Kremenek authored
- Fix retain checker test failures. - Update retain checker to have annotations override default summary effects, not completely redefine them. llvm-svn: 70828
-
Ted Kremenek authored
which is returned instead of a null pointer. This helps centralize the logic concerning "default effects". llvm-svn: 70826
-
Ted Kremenek authored
We never compare summaries by their pointers, and we create only a handful of them when analyzing a given function. llvm-svn: 70824
-
- May 03, 2009
-
-
rdar://problem/6850275Ted Kremenek authored
Fix: <rdar://problem/6850275> CF objects returned from methods with "new" or "copy" in their name should be treated as owned For methods that follow the "fundamental rule" and return Core Foundation objects, treat those objects as owned by the caller. llvm-svn: 70665
-
Ted Kremenek authored
Convert ArgEffects from an std::vector to an ImmutableMap. This will make it much easier to clean up the summary generation logic with annotations. llvm-svn: 70660
-
Ted Kremenek authored
llvm-svn: 70657
-
Zhongxing Xu authored
simplify the retrieve logic. llvm-svn: 70651
-
- May 02, 2009
-
-
Ted Kremenek authored
occurs in GC mode. llvm-svn: 70638
-
Ted Kremenek authored
GRCoreEngine. This tends to result in shorter paths for pathological cases. llvm-svn: 70585
-
- May 01, 2009
-
-
Ted Kremenek authored
- Don't layer TypedViewRegions on top of any region except SymbolicRegions and AllocaRegions. This follows from my offline discussion within Zhongxing about how TypedViewRegions really only represent memory getting re-appropriated for a new purpose. Fallout from this change: - Move test case from xfail_rdar_6440393.m to misc-ps-64.m (it now passes). - test/Analysis/fields.c now fails for region store (crash). Marking XFAIL. - test/Analysis/rdar-6441136-region.c now fails (only runs with region store). Marking XFAIL. Diagnosis: The analyzer now correctly identifies an early out-of-bounds memory access then the one flagged: rdar-6541136-region.c:17:3: warning: Load or store into an out-of-bound memory position. *p = 1; ^~ Changing the line: char *p = (void*) &wonky[1]; to char *p = (void*) &wonky[0]; (which should delay the buffer overrun) causes region store to crash, probably because it expects a TypedViewRegion. - test/Analysis/casts.c (region store) now fails (crash). Marking XFAIL. llvm-svn: 70565
-
Ted Kremenek authored
llvm-svn: 70564
-
Ted Kremenek authored
llvm-svn: 70563
-
Ted Kremenek authored
location context. This allows us to postpone the decision of whether or not a context should add a control-flow piece to the diagnostics when inspecting its subexpressions. llvm-svn: 70545
-
Ted Kremenek authored
llvm-svn: 70542
-
- Apr 30, 2009
-
-
Ted Kremenek authored
'objc_ownership_release' to the effects on receivers. llvm-svn: 70507
-