Skip to content

Commit dfd5925

Browse files
authored
Merge pull request #2108 from ericniebler/stable-names-in-docs
correct all C++ stable section names mentioned in the source
2 parents 61fb73d + 70dcff4 commit dfd5925

29 files changed

Lines changed: 49 additions & 43 deletions

docs/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ set(DOXYGEN_INDEX_FILE ${DOXYGEN_OUTPUT_DIR}/xml/index.xml)
3838
set(DOXYFILE_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
3939
set(DOXYFILE_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
4040

41+
# Doxygen INPUT_FILTER that hyperlinks [exec.*] working-draft stable names in
42+
# the comments to the corresponding sections on https://eel.is/c++draft.
43+
set(DOXYGEN_INPUT_FILTER "perl ${CMAKE_CURRENT_SOURCE_DIR}/eelis_link_filter.pl")
44+
4145
# Find the location of stddef.h
4246
execute_process(COMMAND echo "#include <stddef.h>"
4347
COMMAND c++ -xc -dI -E -

docs/CONTRIBUTING-docs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ both call syntaxes (direct and pipe) in a small `@code{.cpp}` block. End
5858
with a pointer to the normative spec: `See [exec.foo] in the C++26
5959
working draft for the normative specification.`
6060
61+
Use the exact working-draft stable name in brackets (e.g. `[exec.then]`,
62+
`[exec.sync.wait.var]`). A Doxygen input filter (`eelis_link_filter.pl`)
63+
automatically turns any `[exec.*]` reference into a hyperlink to the matching
64+
section on <https://eel.is/c++draft> in the generated docs, so just write the
65+
bare stable name — do not add the URL by hand.
66+
6167
### 3. Inline section headings
6268
6369
Use **bold inline headings** for sub-sections — not `@par`, not `###`.

docs/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ IMAGE_PATH =
10981098
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
10991099
# properly processed by doxygen.
11001100

1101-
INPUT_FILTER =
1101+
INPUT_FILTER = "@DOXYGEN_INPUT_FILTER@"
11021102

11031103
# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
11041104
# basis. Doxygen will compare the file name with each pattern and apply the

include/exec/ensure_started.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
namespace experimental::execution
2929
{
3030
/////////////////////////////////////////////////////////////////////////////
31-
// [execution.senders.adaptors.ensure_started]
3231
namespace __ensure_started
3332
{
3433
using namespace __shared;

include/exec/execute.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
namespace experimental::execution
2929
{
3030
/////////////////////////////////////////////////////////////////////////////
31-
// [execution.execute]
3231
struct __execute_t
3332
{
3433
template <STDEXEC::scheduler _Scheduler, STDEXEC::__std::move_constructible _Fun>

include/exec/on.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace experimental::execution
2121
{
2222
/////////////////////////////////////////////////////////////////////////////
23-
// A scoped version of [execution.senders.adaptors.on]
23+
// A scoped version of [exec.on]
2424
using on_t [[deprecated(
2525
"on_t has been moved to the " STDEXEC_PP_STRINGIZE(STDEXEC) ":: namespace")]] = STDEXEC::on_t;
2626

include/exec/sequence_senders.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ namespace experimental::execution
261261
STDEXEC::_WITH_ENVIRONMENT_(_Env)...>;
262262

263263
/////////////////////////////////////////////////////////////////////////////
264-
// [execution.seqtraits]
265264
namespace __sequence_sndr
266265
{
267266
struct get_item_types_t;

include/exec/split.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
namespace experimental::execution
2929
{
3030
////////////////////////////////////////////////////////////////////////////
31-
// [execution.senders.adaptors.split]
3231
struct split_t
3332
{
3433
template <class _Env = STDEXEC::env<>, STDEXEC::sender_in<_Env> _CvSender>

include/exec/start_detached.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
namespace experimental::execution
3030
{
3131
/////////////////////////////////////////////////////////////////////////////
32-
// [execution.senders.consumer.start_detached]
3332
namespace __start_detached
3433
{
3534
struct __submit_receiver

include/stdexec/__detail/__bulk.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ STDEXEC_PRAGMA_IGNORE_GNU("-Wmissing-braces")
3434
namespace STDEXEC
3535
{
3636
/////////////////////////////////////////////////////////////////////////////
37-
// [execution.senders.adaptors.bulk]
37+
// [exec.bulk]
3838
namespace __bulk
3939
{
4040
//! Wrapper for a policy object.

0 commit comments

Comments
 (0)