- Dec 22, 2010
-
-
Zhongxing Xu authored
the location (l-value) to it. llvm-svn: 122396
-
Zhongxing Xu authored
llvm-svn: 122393
-
Zhongxing Xu authored
llvm-svn: 122390
-
Zhongxing Xu authored
This change is necessary when the variable is a const reference and we need the l-value of the construct expr. After that, when binding the variable, recover the lazy compound value when the variable is not a reference. In Environment, use the value of a no-op cast expression when it has one. Otherwise, blast-through it. llvm-svn: 122388
-
- Dec 20, 2010
-
-
Ted Kremenek authored
llvm-svn: 122271
-
Ted Kremenek authored
llvm-svn: 122270
-
- Dec 19, 2010
-
-
Zhongxing Xu authored
create a temporary object for it. llvm-svn: 122161
-
- Dec 18, 2010
-
-
Zhongxing Xu authored
llvm-svn: 122146
-
Michael J. Spencer authored
llvm-svn: 122140
-
Michael J. Spencer authored
llvm-svn: 122117
-
- Dec 17, 2010
-
-
Michael J. Spencer authored
llvm-svn: 122087
-
Ted Kremenek authored
checker that are automatically handled now by the Cocoa conventions logic. llvm-svn: 122047
-
Ted Kremenek authored
to libAnalysis. Similar to Format (format string checking), CocoaConventions has the potential to serve clients other than the static analyzer. llvm-svn: 122040
-
Ted Kremenek authored
only indicates the create rule if it starts at the beginning of the method name, not within the method name. llvm-svn: 122036
-
Ted Kremenek authored
to start with lowercase characters. No functionality change. llvm-svn: 122035
-
- Dec 16, 2010
-
-
Ted Kremenek authored
implicit lvalue-to-rvalue casts that John McCall recently introduced. This causes a whole bunch of logic in the analyzer for handling lvalues to vanish. It does, however, raise a few issues in the analyzer w.r.t to modeling various constructs (e.g., field accesses to compound literals). The .c/.m analysis test cases that fail are due to a missing lvalue-to-rvalue cast that will get introduced into the AST. The .cpp failures were more than I could investigate in one go, and the patch was already getting huge. I have XFAILED some of these tests, and they should obviously be further investigated. Some highlights of this patch include: - CFG no longer requires an lvalue bit for CFGElements - StackFrameContext doesn't need an 'asLValue' flag - The "VisitLValue" path from GRExprEngine has been eliminated. Besides the test case failures (XFAILed), there are surely other bugs that are fallout from this change. llvm-svn: 121960
-
- Dec 14, 2010
-
-
Abramo Bagnara authored
llvm-svn: 121795
-
- Dec 10, 2010
-
-
John McCall authored
space better. Remove this reference. To make that work, change some APIs (most importantly, getDesugaredType()) to take an ASTContext& if they need to return a QualType. Simultaneously, diminish the need to return a QualType by introducing some useful APIs on SplitQualType, which is just a std::pair<const Type *, Qualifiers>. llvm-svn: 121478
-
- Dec 08, 2010
-
-
Francois Pichet authored
llvm-svn: 121298
-
- Dec 07, 2010
-
-
Jay Foad authored
zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method trunc(), to be const and to return a new value instead of modifying the object in place. llvm-svn: 121121
-
Francois Pichet authored
New AST node introduced: BinaryTypeTraitExpr; to be reused for more intrinsics. llvm-svn: 121074
-
- Dec 06, 2010
-
-
John McCall authored
reason this is limited to C++, and it's certainly not limited to temporaries. llvm-svn: 120996
-
Ted Kremenek authored
llvm-svn: 120970
-
Ted Kremenek authored
Environment::lookupExpr() and move its implementation out-of-line. llvm-svn: 120969
-
- Dec 04, 2010
-
-
Francois Pichet authored
More anonymous struct/union redesign. This one deals with anonymous field used in a constructor initializer list: struct X { X() : au_i1(123) {} union { int au_i1; float au_f1; }; }; clang will now deal with au_i1 explicitly as an IndirectFieldDecl. llvm-svn: 120900
-
John McCall authored
not actually frequently used, because ImpCastExprToType only creates a node if the types differ. So explicitly create an ICE in the lvalue-to-rvalue conversion code in DefaultFunctionArrayLvalueConversion() as well as several other new places, and consistently deal with the consequences throughout the compiler. In addition, introduce a new cast kind for loading an ObjCProperty l-value, and make sure we emit those nodes whenever an ObjCProperty l-value appears that's not on the LHS of an assignment operator. This breaks a couple of rewriter tests, which I've x-failed until future development occurs on the rewriter. Ted Kremenek kindly contributed the analyzer workarounds in this patch. llvm-svn: 120890
-
Argyrios Kyrtzidis authored
llvm-svn: 120873
-
- Dec 03, 2010
-
-
Ted Kremenek authored
a node in the trimmed graph might not always correctly map back to the original error node. This could cause a crash in some cases when flagging memory leaks. llvm-svn: 120795
-
Ted Kremenek authored
when generating DOT output for an ExplodedGraph. llvm-svn: 120794
-
Argyrios Kyrtzidis authored
llvm-svn: 120783
-
Argyrios Kyrtzidis authored
Remove leftover code and use the text path diagnostic client even without a specified output file since it just uses diagnostic notes. llvm-svn: 120773
-
Argyrios Kyrtzidis authored
the sequence of events; useful for testing. llvm-svn: 120770
-
Argyrios Kyrtzidis authored
llvm-svn: 120769
-
Argyrios Kyrtzidis authored
llvm-svn: 120768
-
- Dec 02, 2010
-
-
Ted Kremenek authored
llvm-svn: 120696
-
John McCall authored
into the latter. llvm-svn: 120643
-
- Dec 01, 2010
-
-
Ted Kremenek authored
to 'assumeXXX'. llvm-svn: 120614
-
Ted Kremenek authored
'evalXXX'. llvm-svn: 120609
-
Ted Kremenek authored
reflects what the class actually does. llvm-svn: 120605
-
John McCall authored
llvm-svn: 120555
-