[PATCH] D23003: [ObjC Availability] Warn upon unguarded use of partially available declaration

Erik Pilkington via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 2 14:29:27 PDT 2016


erik.pilkington updated this revision to Diff 66555.
erik.pilkington added a comment.

@dcoughlin: Yes, good point!

This new patch uses the enclosing version to diagnose both branches of the '*' case, as opposed to ignoring them.


https://reviews.llvm.org/D23003

Files:
  include/clang/AST/Stmt.h
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/ScopeInfo.h
  include/clang/Sema/Sema.h
  lib/AST/Stmt.cpp
  lib/Sema/JumpDiagnostics.cpp
  lib/Sema/ScopeInfo.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaDeclAttr.cpp
  lib/Sema/SemaExpr.cpp
  lib/Sema/SemaStmt.cpp
  test/Parser/objc-available.m
  test/Sema/attr-availability.c
  test/SemaObjC/attr-availability.m
  test/SemaObjC/property-deprecated-warning.m
  test/SemaObjC/unguarded-availability.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23003.66555.patch
Type: text/x-patch
Size: 39476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160802/c799749e/attachment-0001.bin>


More information about the cfe-commits mailing list