]> granicus.if.org Git - clang/commit
Sema: use PropertyDecl for property selector
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 20 Feb 2017 23:45:49 +0000 (23:45 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 20 Feb 2017 23:45:49 +0000 (23:45 +0000)
commit644e38eecd04088e84a11740dddcf1a4f26606c8
tree5e319c71eb0767b1f88b0fd03929db2881e70358
parent269fdd27b59fe7af6a75e5343a23ac3305314782
Sema: use PropertyDecl for property selector

Using the constructed name for the class properties with dot syntax may
yield an inappropriate selector (i.e. if it is specified via property
attributes).  Prefer the declaration for the selector, falling back to
the constructed name otherwise.

Patch by David Herzka!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295683 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprObjC.cpp
test/SemaObjC/objc-class-property.m