[libc++] Add a bunch of missing _LIBCPP_HIDE_FROM_ABI in <ranges>
We've been forgetting to add those to most of the <ranges> review.
To avoid forgetting in the future, I added an item in the pre-commit
checklist.
Differential Revision: https://reviews.llvm.org/D106287
NOKEYCHECK=True
GitOrigin-RevId: d153e7d0a5f2bb9b3cb59ebed8dd3f9a861ce8f7
diff --git a/docs/Contributing.rst b/docs/Contributing.rst
index 0cf752f..9d52445 100644
--- a/docs/Contributing.rst
+++ b/docs/Contributing.rst
@@ -31,6 +31,7 @@
- Do you have tests for every public class and/or function you're adding or modifying?
- Did you update the synopsis of the relevant headers?
- Did you update the relevant files to track implementation status (in ``docs/Status/``)?
+- Did you mark all functions and type declarations with the :ref:`proper visibility macro <visibility-macros>`?
- If you added a header:
- Did you add it to ``include/module.modulemap``?
diff --git a/docs/DesignDocs/VisibilityMacros.rst b/docs/DesignDocs/VisibilityMacros.rst
index 20237b7..e5aa500 100644
--- a/docs/DesignDocs/VisibilityMacros.rst
+++ b/docs/DesignDocs/VisibilityMacros.rst
@@ -5,6 +5,8 @@
.. contents::
:local:
+.. _visibility-macros:
+
Overview
========
@@ -44,6 +46,10 @@
Mark a function as not being part of the ABI of any final linked image that
uses it.
+**_LIBCPP_INLINE_VISIBILITY**
+ Historical predecessor of ``_LIBCPP_HIDE_FROM_ABI`` -- please use
+ ``_LIBCPP_HIDE_FROM_ABI`` instead.
+
**_LIBCPP_HIDE_FROM_ABI_AFTER_V1**
Mark a function as being hidden from the ABI (per `_LIBCPP_HIDE_FROM_ABI`)
when libc++ is built with an ABI version after ABI v1. This macro is used to