]> granicus.if.org Git - clang/commit
Fix Objective-C implicit property synthesis for C++ classes so we use valid
authorEli Friedman <eli.friedman@gmail.com>
Thu, 18 Oct 2012 20:14:08 +0000 (20:14 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 18 Oct 2012 20:14:08 +0000 (20:14 +0000)
commit9a14db3fefa73ef8a702dea1928fd0ee0befe59b
tree6e73389c2aac43fb4c7c30865f20183f0fb23eb3
parent4ca3abd3680afec6207d25d0bb80838bf59ecbfe
Fix Objective-C implicit property synthesis for C++ classes so we use valid
source locations in places where it is necessary for diagnostics.  By itself,
this causes assertions, so while I'm here, also fix property synthesis
for properties of C++ class type so we use so we properly set up a scope
and mark variable declarations.

<rdar://problem/12514189>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166219 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaObjCProperty.cpp
test/SemaObjCXX/property-synthesis-error.mm