]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add macros for the inline namespace std::_V2
authorJonathan Wakely <jwakely@redhat.com>
Wed, 11 May 2022 15:35:45 +0000 (16:35 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 13 May 2022 12:32:22 +0000 (13:32 +0100)
commite4905f11852d722cd711b53a5626245528ace1d2
tree715f08b60d0bae7d829a8de1577ea4b7200f6e6a
parent4163b0be816f596147fa9a2732fc652e4ea9572c
libstdc++: Add macros for the inline namespace std::_V2

Use macros to open and close the inline namespace _V2 that is used for
ABI versioning of individual components such as chrono::system_clock.

This allows the namespace to be hidden in the docs generated by Doxygen,
so that we document std::foo instead of std::_V2::foo.

This also makes it easy to remove that namespace entirely for the
gnu-versioned-namespace build, where everything is already versioned as
std::__8 and there are no backwards compatibility guarantees.

libstdc++-v3/ChangeLog:

* doc/doxygen/user.cfg.in (PREDEFINED): Expand new macros to
nothing.
* include/bits/c++config (_GLIBCXX_BEGIN_INLINE_ABI_NAMESPACE)
(_GLIBCXX_END_INLINE_ABI_NAMESPACE): Define new macros.
* include/bits/algorithmfwd.h (_V2::__rotate): Use new macros
for the namespace.
* include/bits/chrono.h (chrono::_V2::system_clock): Likewise.
* include/bits/stl_algo.h (_V2::__rotate): Likewise.
* include/std/condition_variable (_V2::condition_variable_any):
Likewise.
* include/std/system_error (_V2::error_category): Likewise.
libstdc++-v3/doc/doxygen/user.cfg.in
libstdc++-v3/include/bits/algorithmfwd.h
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/bits/chrono.h
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/std/condition_variable
libstdc++-v3/include/std/system_error
This page took 0.062434 seconds and 6 git commands to generate.