]> granicus.if.org Git - clang/commit
Added generating destructors for temporary objects. Two cases I know of, that are...
authorMarcin Swiderski <marcin.sfider@gmail.com>
Wed, 3 Nov 2010 06:19:35 +0000 (06:19 +0000)
committerMarcin Swiderski <marcin.sfider@gmail.com>
Wed, 3 Nov 2010 06:19:35 +0000 (06:19 +0000)
commit8599e7677e067fd01d3b2ee4c0875747d367fd8e
tree0133d20b1db121c00953684d173f65335c03b9ad
parent138e66ffa8008b95121580f5459af45487df9803
Added generating destructors for temporary objects. Two cases I know of, that are not handled properly:
1. For statement: const C& c = C(0) ?: C(1) destructors generated for condition will not differ from those generated for case without prolonged lifetime of temporary,
2. There will be no destructor for constant reference member bound to temporary at the exit from constructor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118158 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/CFG.h
lib/Analysis/CFG.cpp
test/Analysis/temp-obj-dtors-cfg-output.cpp [new file with mode: 0644]