[PATCH] D35781: [Sema] Make sure that -Wunguarded-availability emits notes at the right redeclaration
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 23 14:04:45 PDT 2017
erik.pilkington created this revision.
This is done by modifying ShouldDiagnoseAvailabilityOfDecl() so that the OffendingDecl is the one with the original availability attribute. Also, keep track of this availability attribute so we don't have to constantly recompute it via getAttrForPlatform().
Thanks for taking a look!
Erik
https://reviews.llvm.org/D35781
Files:
include/clang/AST/DeclBase.h
include/clang/Sema/DelayedDiagnostic.h
lib/AST/DeclBase.cpp
lib/Sema/DelayedDiagnostic.cpp
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-availability-ios.c
test/Sema/attr-availability-tvos.c
test/Sema/attr-availability-watchos.c
test/Sema/attr-availability.c
test/SemaObjC/protocol-attribute.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35781.107840.patch
Type: text/x-patch
Size: 26307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170723/d9d413f4/attachment-0001.bin>
More information about the cfe-commits
mailing list