- Oct 27, 2008
-
-
Ted Kremenek authored
Pull determination of the super region for a VarRegion into a single getVarRegion() method. This provides a common clean API for clients. llvm-svn: 58272
-
Ted Kremenek authored
llvm-svn: 58270
-
Douglas Gregor authored
- CastExpr is the root of all casts - ImplicitCastExpr is (still) used for all explicit casts - ExplicitCastExpr is now the root of all *explicit* casts - ExplicitCCastExpr (new name needed!?) is a C-style cast in C or C++ - CXXFunctionalCastExpr inherits from ExplicitCastExpr - CXXNamedCastExpr inherits from ExplicitCastExpr and is the root of all of the C++ named cast expression types (static_cast, dynamic_cast, etc.) - Added classes CXXStaticCastExpr, CXXDynamicCastExpr, CXXReinterpretCastExpr, and CXXConstCastExpr to Also, fixed returned-stack-addr.cpp, which broke once when we fixed reinterpret_cast to diagnose double->int* conversions and again when we eliminated implicit conversions to reference types. The fix is in both testcase and SemaChecking.cpp. Most of this patch is simply support for the renaming. There's very little actual change in semantics. llvm-svn: 58264
-
Zhongxing Xu authored
llvm-svn: 58247
-
Zhongxing Xu authored
llvm-svn: 58245
-
Zhongxing Xu authored
llvm-svn: 58243
-
Zhongxing Xu authored
llvm-svn: 58236
-
Zhongxing Xu authored
Only loc::MemRegionVal can be modified. This avoids crashing in RegionStore when a function pointer is used as an argument. llvm-svn: 58233
-
- Oct 26, 2008
-
-
Zhongxing Xu authored
llvm-svn: 58182
-
Zhongxing Xu authored
Simplify ArrayToPointer conversion. Actually the only thing we need to do is to get the first element region. It is not necessary to care about the kind of the base array region. llvm-svn: 58181
-
Oscar Fuentes authored
must be under the `tools' subdirectory of the LLVM *source* tree. llvm-svn: 58180
-
- Oct 25, 2008
-
-
Ted Kremenek authored
This fixes PR 2948. llvm-svn: 58148
-
Zhongxing Xu authored
llvm-svn: 58140
-
Zhongxing Xu authored
for StringLiteral lvalue evaluation, instead of directly returning a loc::StringLiteralVal by the Environment. llvm-svn: 58138
-
Zhongxing Xu authored
llvm-svn: 58137
-
Zhongxing Xu authored
llvm-svn: 58135
-
- Oct 24, 2008
-
-
Ted Kremenek authored
llvm-svn: 58114
-
Ted Kremenek authored
followsFundamentalRule() returns true if "alloc" or "new" appear at the beginning of the string, not anywhere within it. llvm-svn: 58112
-
Ted Kremenek authored
Implicit conversions from arrays can also be conversions to references (will add a test case shortly). llvm-svn: 58110
-
Ted Kremenek authored
Issue warnings about owned objects returned from a method that does not match the established Cocoa naming conventions. llvm-svn: 58108
-
Ted Kremenek authored
Added method "getSelfRegion" to Store. This method returns the region associated with the "this" or "self" object (C++ and Objective-C respectively). llvm-svn: 58107
-
Ted Kremenek authored
llvm-svn: 58106
-
Zhongxing Xu authored
The Decl of an array region can be VarDecl or FieldDecl. Handle this in RegionStoreManager::ArrayToPointer(). llvm-svn: 58086
-
Zhongxing Xu authored
the array initialization code into a function. llvm-svn: 58083
-
Zhongxing Xu authored
llvm-svn: 58077
-
Zhongxing Xu authored
llvm-svn: 58074
-
Zhongxing Xu authored
llvm-svn: 58073
-
Zhongxing Xu authored
llvm-svn: 58070
-
Zhongxing Xu authored
llvm-svn: 58061
-
Zhongxing Xu authored
llvm-svn: 58058
-
Ted Kremenek authored
llvm-svn: 58056
-
- Oct 23, 2008
-
-
Zhongxing Xu authored
llvm-svn: 58030
-
Zhongxing Xu authored
llvm-svn: 58028
-
Ted Kremenek authored
Disable warning about potential leaks of returned values until we test it a little more (lots of noise). llvm-svn: 58021
-
Ted Kremenek authored
Warn about potentially leaked objects that are returned from methods whose names do not follow the Cocoa Memory Management guidelines. llvm-svn: 58012
-
- Oct 22, 2008
-
-
Ted Kremenek authored
Enhance reference-count checker to correctly identify CG "release" functions. This fixes <rdar://problem/6303488>. llvm-svn: 57997
-
Zhongxing Xu authored
llvm-svn: 57977
-
Zhongxing Xu authored
llvm-svn: 57964
-
Zhongxing Xu authored
llvm-svn: 57963
-
- Oct 21, 2008
-
-
Ted Kremenek authored
When conjuring symbols for compound assignments, use the promoted type to determine if the symbolic value as a "loc::" or "nonloc::" value. llvm-svn: 57917
-