[analyzer] StackAddrEscapeChecker: strip qualifiers from temporary types.
authorJordan Rose <jordan_rose@apple.com>
Tue, 26 Feb 2013 01:21:21 +0000 (01:21 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 26 Feb 2013 01:21:21 +0000 (01:21 +0000)
commitc948709cda56a76cea07357db29c288235baa0ba
tree6f34fff2aec64443db93d4b916c9259204b38471
parent2367f8a7883a2ff90d7ae7f740541fa97de2964a
[analyzer] StackAddrEscapeChecker: strip qualifiers from temporary types.

With the new support for trivial copy constructors, we are not always
consistent about whether a CXXTempObjectRegion gets reused or created
from scratch, which affects whether qualifiers are preserved. However,
we probably don't care anyway.

This also switches to using the current PrintingPolicy for the type,
which means C++ types don't get a spurious 'struct' prefix anymore.

llvm-svn: 176068
clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
clang/test/Analysis/temporaries.cpp