[PATCH] D36200: [Sema] Improve some -Wunguarded-availability diagnostic messages

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 16:31:50 PDT 2017


erik.pilkington created this revision.

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


https://reviews.llvm.org/D36200

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaDeclAttr.cpp
  test/SemaObjC/attr-availability.m
  test/SemaObjC/unguarded-availability-new.m
  test/SemaObjC/unguarded-availability.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36200.109252.patch
Type: text/x-patch
Size: 15549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170801/d2ba52c6/attachment-0001.bin>


More information about the cfe-commits mailing list