]> granicus.if.org Git - clang/commit
Availability: attach the note to the declaration with the attributes.
authorManman Ren <manman.ren@gmail.com>
Fri, 6 May 2016 19:57:16 +0000 (19:57 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 6 May 2016 19:57:16 +0000 (19:57 +0000)
commit99a5d7a2782d9cf1d261ac43269cd3f79f33a95a
tree5b5493b4a4ee04b319e39c496fe0f3127b6a46e7
parent013b98557bd41791da37975f7a21b09714f9143b
Availability: attach the note to the declaration with the attributes.

Sometimes, the declaration we found has inherited availability
attributes, attaching the note to it does not tell us where the
availability attributes are in the source.

Go through the redecl chain to find the declaration with actual
availability attributes.

rdar://25221771

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268786 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-availability-macosx.c