This is an archive of the discontinued LLVM Phabricator instance.

Improve a -Wunguarded-availability note
ClosedPublic

Authored by erik.pilkington on Jan 9 2019, 4:51 PM.

Details

Summary

Mention the deployment target, and don't say "partial" which doesn't really mean anything to users.

rdar://problem/33601513

Diff Detail

Repository
rC Clang

Event Timeline

erik.pilkington created this revision.Jan 9 2019, 4:51 PM

Hi Erik, this looks neat!

clang/test/Sema/availability-guard-format.mm
6 ↗(On Diff #180966)

I am probably missing something but where is the deployment target value set?

erik.pilkington marked an inline comment as done.Jan 10 2019, 9:41 AM
erik.pilkington added inline comments.
clang/test/Sema/availability-guard-format.mm
6 ↗(On Diff #180966)

Its set implicitly, but you can also control it with -mmacos-version-min= flag.

dexonsmith added inline comments.Jan 10 2019, 11:06 AM
clang/test/Sema/availability-guard-format.mm
6 ↗(On Diff #180966)

Would it be better to set the deployment target explicitly in this test? Otherwise we're implicitly testing what the default is, which seems orthogonal to what the diagnostic should say.

erik.pilkington marked an inline comment as done.

Fix some triples in the tests.

clang/test/Sema/availability-guard-format.mm
6 ↗(On Diff #180966)

Yeah, I guess that would make the tests less fragile. This should have been done already, but the triple was wrong. New patch fixes it.

This revision is now accepted and ready to land.Jan 14 2019, 11:00 AM
This revision was automatically updated to reflect the committed changes.