[PATCH] D22697: [ObjC Availability] Consider lexical context of use of declaration when emitting availability diagnostics

Erik Pilkington via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 26 14:10:08 PDT 2016


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

Thanks for taking a look!

This new patch makes a `getCurContextVersion` (now `getVersionForDecl`) take a parameter, which is the declaration that needs to be considered. This is so that we can later reuse it to check for @available(...) violations, which will be diagnosed after Sema leaves the context of the declaration we are checking. Does this still LG?


https://reviews.llvm.org/D22697

Files:
  include/clang/AST/DeclBase.h
  include/clang/Sema/Sema.h
  lib/AST/DeclBase.cpp
  lib/Sema/SemaDeclAttr.cpp
  lib/Sema/SemaExpr.cpp
  test/SemaObjC/attr-availability.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22697.65595.patch
Type: text/x-patch
Size: 9935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160726/68200336/attachment-0001.bin>


More information about the cfe-commits mailing list