[libcxx-commits] [libcxx] Heres the minimal contracts in libc++ (PR #98187)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 9 09:52:35 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 2a086dce691e3cc34a2fc27f4fb255bb2cbbfac9...843cd2ef0fbb095b933dea677dcb8e515759f140 libcxx/utils/libcxx/test/features.py libcxx/utils/libcxx/test/params.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- features.py 2024-07-09 16:47:35.000000 +0000
+++ features.py 2024-07-09 16:52:04.152173 +0000
@@ -175,11 +175,13 @@
name="fcontracts",
when=lambda cfg: hasCompileFlag(cfg, "-fcontracts"),
),
Feature(
name="contract-groups",
- when=lambda cfg: hasCompileFlag(cfg, "-fcontract-group-evaluation-semantic=std=enforce"),
+ when=lambda cfg: hasCompileFlag(
+ cfg, "-fcontract-group-evaluation-semantic=std=enforce"
+ ),
),
Feature(
name="has-fobjc-arc",
when=lambda cfg: hasCompileFlag(cfg, "-xobjective-c++ -fobjc-arc")
and sys.platform.lower().strip() == "darwin",
--- params.py 2024-07-09 16:47:35.000000 +0000
+++ params.py 2024-07-09 16:52:04.244161 +0000
@@ -115,12 +115,16 @@
if version in commandOutput(cfg, [f"{executable} --version"]):
return executable
except ConfigurationRuntimeError:
return None
+
def hasContractSupport(cfg):
- return hasCompileFlag(cfg, "-fcontracts") and hasCompileFlag(cfg, "-fcontract-group-evaluation-semantic=std=enforce")
+ return hasCompileFlag(cfg, "-fcontracts") and hasCompileFlag(
+ cfg, "-fcontract-group-evaluation-semantic=std=enforce"
+ )
+
def getSuitableClangTidy(cfg):
# If we didn't build the libcxx-tidy plugin via CMake, we can't run the clang-tidy tests.
if (
runScriptExitCode(
``````````
</details>
https://github.com/llvm/llvm-project/pull/98187
More information about the libcxx-commits
mailing list