]> granicus.if.org Git - clang/commit
[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)
commita0e6e6dd37f4acee8477c106d5e5679de015d120
tree3b2fa30cad51b9600df3fa47e61a35a35f8bc18c
parentbb60fc6a71f280f8e19e7f1a784ef05c40f5aa39
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176068 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
test/Analysis/temporaries.cpp