llvm-project/clang/lib/Rewrite
John McCall c07a0c7e48 Change the representation of GNU ?: expressions to use a different expression
class and to bind the shared value using OpaqueValueExpr.  This fixes an
unnoticed problem with deserialization of these expressions where the
deserialized form would lose the vital pointer-equality trait;  or rather,
it fixes it because this patch also does the right thing for deserializing
OVEs.

Change OVEs to not be a "temporary object" in the sense that copy elision is
permitted.

This new representation is not totally unawkward to work with, but I think
that's really part and parcel with the semantics we're modelling here.  In
particular, it's much easier to fix things like the copy elision bug and to
make the CFG look right.

I've tried to update the analyzer to deal with this in at least some          
obvious cases, and I think we get a much better CFG out, but the printing
of OpaqueValueExprs probably needs some work.

llvm-svn: 125744
2011-02-17 10:25:35 +00:00
..
CMakeLists.txt CMake: LLVM_NO_RTTI must be obsolete now! 2011-02-10 09:15:32 +00:00
DeltaTree.cpp "I see dead code". IdempotentOperationChecker::isTruncationExtensionAssignment 2010-09-03 04:34:38 +00:00
FixItRewriter.cpp Merge System into Support. 2010-11-29 18:12:39 +00:00
FrontendActions.cpp Replace all uses of PathV1::get{Basename,Dirname,Suffix} with their PathV2 equivalents. 2010-12-18 04:13:32 +00:00
HTMLPrint.cpp Break Frontend's dependency on Rewrite, Checker and CodeGen in shared library configuration 2010-06-15 17:48:49 +00:00
HTMLRewrite.cpp Introduced raw_identifier token kind. 2010-12-22 08:23:18 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
RewriteMacros.cpp Introduced raw_identifier token kind. 2010-12-22 08:23:18 +00:00
RewriteObjC.cpp Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
RewriteRope.cpp zap more dead code. 2010-09-04 18:19:08 +00:00
RewriteTest.cpp Break Frontend's dependency on Rewrite, Checker and CodeGen in shared library configuration 2010-06-15 17:48:49 +00:00
Rewriter.cpp Pass StringRefs by value. 2010-07-14 23:19:41 +00:00
TokenRewriter.cpp Clang should not warn on code in clang that is only there to remove warnings. 2011-01-06 01:37:28 +00:00