[PATCH] D35379: Add documentation for @available
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 13 13:31:28 PDT 2017
erik.pilkington added a reviewer: arphaman.
erik.pilkington added a subscriber: arphaman.
erik.pilkington added a comment.
This looks great, thanks for working on this! LGTM, but @arphaman might have some thoughts.
================
Comment at: docs/LanguageExtensions.rst:1290
-.. _langext-overloading:
-
----------------
did you mean to remove this?
================
Comment at: docs/LanguageExtensions.rst:1309
+ void my_fun(NSSomeClass* var) {
+ if (@available(macOS 10.12)) {
+ [var fancyNewMethod];
----------------
Don't forget the '*', ie @available(macos 10.12, *)!
https://reviews.llvm.org/D35379
More information about the cfe-commits
mailing list