This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Improve some -Wunguarded-availability diagnostic messages
ClosedPublic

Authored by erik.pilkington on Aug 1 2017, 4:31 PM.

Details

Summary

This patch improves the decl-level unguarded availability warnings to use the same messages as the function-level ones. This makes the diagnostic have different parameters than deprecated/unavailable, so I moved some things around in DoEmitAvailabilityWarning so that partial diagnostics are handled separately.

rdar://33543523

Thanks,
Erik

Diff Detail

Repository
rL LLVM

Event Timeline

erik.pilkington created this revision.Aug 1 2017, 4:31 PM
arphaman edited edge metadata.Aug 2 2017, 7:47 AM

This needs a test for the fixits as well, see test/FixIt/fixit-availability*

This needs a test for the fixits as well, see test/FixIt/fixit-availability*

Why? This patch doesn't change the behavior of the fixits, so there isn't any new behavior to test.

Right, sorry, I didn't realize that code was moved.

arphaman accepted this revision.Aug 14 2017, 9:58 AM

Sorry for the delay, LGTM

This revision is now accepted and ready to land.Aug 14 2017, 9:58 AM
This revision was automatically updated to reflect the committed changes.