Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/docs/UsingLibcxx.rst
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | **_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS**: | ||||
disabled and must be manually enabled by the user. | disabled and must be manually enabled by the user. | ||||
**_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS**: | **_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS**: | ||||
This macro is used to disable all visibility annotations inside libc++. | This macro is used to disable all visibility annotations inside libc++. | ||||
Defining this macro and then building libc++ with hidden visibility gives a | Defining this macro and then building libc++ with hidden visibility gives a | ||||
build of libc++ which does not export any symbols, which can be useful when | build of libc++ which does not export any symbols, which can be useful when | ||||
building statically for inclusion into another library. | building statically for inclusion into another library. | ||||
**_LIBCPP_DISABLE_EXTERN_TEMPLATE**: | |||||
This macro is used to disable extern template declarations in the libc++ | |||||
headers. The intended use case is for clients who wish to use the libc++ | |||||
headers without taking a dependency on the libc++ library itself. | |||||
**_LIBCPP_DISABLE_ADDITIONAL_DIAGNOSTICS**: | **_LIBCPP_DISABLE_ADDITIONAL_DIAGNOSTICS**: | ||||
This macro disables the additional diagnostics generated by libc++ using the | This macro disables the additional diagnostics generated by libc++ using the | ||||
`diagnose_if` attribute. These additional diagnostics include checks for: | `diagnose_if` attribute. These additional diagnostics include checks for: | ||||
* Giving `set`, `map`, `multiset`, `multimap` and their `unordered_` | * Giving `set`, `map`, `multiset`, `multimap` and their `unordered_` | ||||
counterparts a comparator which is not const callable. | counterparts a comparator which is not const callable. | ||||
* Giving an unordered associative container a hasher that is not const | * Giving an unordered associative container a hasher that is not const | ||||
callable. | callable. | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |