]> granicus.if.org Git - clang/commit
[CFG] [analyzer] Add construction contexts for returning C++ objects in ObjC++.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 31 Jul 2018 19:46:14 +0000 (19:46 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 31 Jul 2018 19:46:14 +0000 (19:46 +0000)
commit0065b256efa39476c9d32097b06c80a50356e27c
tree9f5973399689198b886775c34470a979586b6c93
parentcfd925989dd73b13810fba243f7819dbec58940a
[CFG] [analyzer] Add construction contexts for returning C++ objects in ObjC++.

Like any normal funciton, Objective-C message can return a C++ object
in Objective-C++. Such object would require a construction context.

This patch, therefore, is an extension of r327343 onto Objective-C++.

Differential Revision: https://reviews.llvm.org/D48608

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338426 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/CFG.h
lib/Analysis/CFG.cpp
test/Analysis/cfg-rich-constructors.mm
test/Analysis/lifetime-extension.mm [new file with mode: 0644]