Skip to content

Commit 39ff09b

Browse files
committed
Fix precommit.
1 parent 759c673 commit 39ff09b

3 files changed

Lines changed: 24 additions & 22 deletions

File tree

docs/_ext/auto_api_generator.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,24 @@
1616
# cannot parse. Skip generating individual API pages for these to avoid
1717
# unfixable build warnings under -W. Names must match the unqualified form
1818
# used by extract_namespace_items (i.e. without the project namespace prefix).
19-
_BREATHE_SKIP_SYMBOLS = frozenset({
20-
# cuda::experimental::stf::get_executor_func_t — function-pointer typedef.
21-
# Breathe renders as "pos4(*)(pos4, dim4, dim4)" which Sphinx's C++ parser
22-
# rejects ("Expected end of definition").
23-
# Listed both qualified (cudax) and unqualified (libcudacxx) since the
24-
# generator uses different naming conventions per project.
25-
"get_executor_func_t",
26-
"cuda::experimental::stf::get_executor_func_t",
27-
# cuda::property_with_value — variable template using _CCCL_REQUIRES_EXPR
28-
# with a typename(...) inside the expression. Sphinx cannot parse the
29-
# requires-expression expansion.
30-
"property_with_value",
31-
# cuda::has_property — variable template with _CCCL_REQUIRES_EXPR
32-
# containing a const keyword inside the expression body.
33-
"has_property",
34-
})
19+
_BREATHE_SKIP_SYMBOLS = frozenset(
20+
{
21+
# cuda::experimental::stf::get_executor_func_t — function-pointer typedef.
22+
# Breathe renders as "pos4(*)(pos4, dim4, dim4)" which Sphinx's C++ parser
23+
# rejects ("Expected end of definition").
24+
# Listed both qualified (cudax) and unqualified (libcudacxx) since the
25+
# generator uses different naming conventions per project.
26+
"get_executor_func_t",
27+
"cuda::experimental::stf::get_executor_func_t",
28+
# cuda::property_with_value — variable template using _CCCL_REQUIRES_EXPR
29+
# with a typename(...) inside the expression. Sphinx cannot parse the
30+
# requires-expression expansion.
31+
"property_with_value",
32+
# cuda::has_property — variable template with _CCCL_REQUIRES_EXPR
33+
# containing a const keyword inside the expression body.
34+
"has_property",
35+
}
36+
)
3537

3638

3739
def extract_param_summary(params):
@@ -555,7 +557,9 @@ def generate_group_index_page(group_name, group_refid, project_name, xml_dir, ap
555557
content.append("-------")
556558
content.append("")
557559
for member_kind, member_name, member_refid in members:
558-
content.append(format_doc_reference(member_name, member_refid, "", as_list_item=True))
560+
content.append(
561+
format_doc_reference(member_name, member_refid, "", as_list_item=True)
562+
)
559563
content.append("")
560564

561565
return "\n".join(content)

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
# bridge) limitations. These cannot be fixed in our source headers or RST files.
255255
#
256256
# See also _BREATHE_SKIP_SYMBOLS in _ext/auto_api_generator.py for symbols that
257-
# are excluded from page generation entirely due to unparseable declarations.
257+
# are excluded from page generation entirely due to unparsable declarations.
258258
suppress_warnings = [
259259
# Breathe walks each Doxygen XML file independently. When a symbol appears
260260
# in both a namespace XML and a class/group XML (which is normal for Doxygen),

libcudacxx/include/cuda/__memory_resource/legacy_pinned_memory_resource.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,15 @@ class legacy_pinned_memory_resource
9090

9191
//! @brief Equality comparison with another \c legacy_pinned_memory_resource.
9292
//! @return Whether both \c legacy_pinned_memory_resource were constructed with the same flags.
93-
[[nodiscard]] _CCCL_HOST_API constexpr bool
94-
operator==(legacy_pinned_memory_resource const& __other) const noexcept
93+
[[nodiscard]] _CCCL_HOST_API constexpr bool operator==(legacy_pinned_memory_resource const& __other) const noexcept
9594
{
9695
(void) __other;
9796
return true;
9897
}
9998
# if _CCCL_STD_VER <= 2017
10099
//! @brief Equality comparison with another \c legacy_pinned_memory_resource.
101100
//! @return Whether both \c legacy_pinned_memory_resource were constructed with different flags.
102-
[[nodiscard]] _CCCL_HOST_API constexpr bool
103-
operator!=(legacy_pinned_memory_resource const& __other) const noexcept
101+
[[nodiscard]] _CCCL_HOST_API constexpr bool operator!=(legacy_pinned_memory_resource const& __other) const noexcept
104102
{
105103
(void) __other;
106104
return false;

0 commit comments

Comments
 (0)