[libcxx-commits] [libcxx] [libc++] Include range access headers in `<optional>` only since C++26 (PR #214688)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 7 03:58:26 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD libcxx/test/std/iterators/iterator.range/mandatory_inclusions.gen.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- mandatory_inclusions.gen.py 2026-08-07 10:55:11.000000 +0000
+++ mandatory_inclusions.gen.py 2026-08-07 10:57:51.104585 +0000
@@ -49,15 +49,17 @@
"vector",
],
)
)
+
def get_standard_mode_threshold(header):
if header == "optional":
- return "26" # `optional` is a range only since C++26 via P3168R2.
+ return "26" # `optional` is a range only since C++26 via P3168R2.
else:
- return "0" # Other related components are ranges at first.
+ return "0" # Other related components are ranges at first.
+
for header in headers:
print(
f"""\
//--- {header}.pass.cpp
``````````
</details>
https://github.com/llvm/llvm-project/pull/214688
More information about the libcxx-commits
mailing list