[libcxx-commits] [libcxx] [AIX][libc++] Enable clang_modules_include.gen.py tests (PR #90971)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon May 6 09:03:05 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 1241e7692a466ceb420be2780f1c3e8bbab7d469...e1bb267aed1be7d4d67826d7b29abb4453932f74 libcxx/test/libcxx/clang_modules_include.gen.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- clang_modules_include.gen.py 2024-05-06 15:56:37.000000 +0000
+++ clang_modules_include.gen.py 2024-05-06 16:02:43.625376 +0000
@@ -18,11 +18,12 @@
import sys
sys.path.append(sys.argv[1])
from libcxx.header_information import lit_header_restrictions, public_headers
for header in public_headers:
- print(f"""\
+ print(
+ f"""\
//--- {header}.compile.pass.cpp
// RUN: %{{cxx}} %s %{{flags}} %{{compile_flags}} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only
// GCC doesn't support -fcxx-modules
// UNSUPPORTED: gcc
@@ -41,13 +42,15 @@
// UNSUPPORTED: LIBCXX-PICOLIBC-FIXME
{lit_header_restrictions.get(header, '')}
#include <{header}>
-""")
+"""
+ )
-print(f"""\
+print(
+ f"""\
//--- __std_clang_module.compile.pass.mm
// RUN: %{{cxx}} %s %{{flags}} %{{compile_flags}} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only
// REQUIRES: clang-modules-build
@@ -64,6 +67,7 @@
// TODO: Investigate this failure
// UNSUPPORTED: LIBCXX-FREEBSD-FIXME
@import std;
-""")
+"""
+)
``````````
</details>
https://github.com/llvm/llvm-project/pull/90971
More information about the libcxx-commits
mailing list