[libcxx-commits] [libcxx] [libc++][test] Raise a useful error when no -std=c++NN flag is found to work (PR #99423)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 17 20:11:04 PDT 2024
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 befd44bcdc6e9d2f4099bf344826b2cd0fd8cbdc...33db30b634a81c869f4ee53c42a629e681c3c57c libcxx/utils/libcxx/test/params.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- params.py 2024-07-18 03:05:19.000000 +0000
+++ params.py 2024-07-18 03:10:29.719308 +0000
@@ -85,10 +85,11 @@
}
if std in fallbacks and hasCompileFlag(cfg, "-std=" + fallbacks[std]):
return "-std=" + fallbacks[std]
return None
+
def getDefaultStdValue(cfg):
viable = [s for s in reversed(_allStandards) if getStdFlag(cfg, s)]
if not viable:
raise RuntimeError(
``````````
</details>
https://github.com/llvm/llvm-project/pull/99423
More information about the libcxx-commits
mailing list