[PATCH] D35379: Add documentation for @available

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 13 13:35:44 PDT 2017


thakis added inline comments.


================
Comment at: docs/LanguageExtensions.rst:1290
 
-.. _langext-overloading:
-
----------------
erik.pilkington wrote:
> did you mean to remove this?
I meant to move it above the "protocol-qualifier mangling of parameters" section; I think that's where it belongs. Did that.


================
Comment at: docs/LanguageExtensions.rst:1309
+  void my_fun(NSSomeClass* var) {
+    if (@available(macOS 10.12)) {
+      [var fancyNewMethod];
----------------
erik.pilkington wrote:
> Don't forget the '*', ie @available(macos 10.12, *)!
Done, thanks. What does the `*` do, by the way? :-)


https://reviews.llvm.org/D35379





More information about the cfe-commits mailing list