[libcxx-commits] [libcxx] [libc++] Protect the libc++ implementation from CUDA SDK's `__noinline__` macro (PR #73838)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 29 10:23:37 PST 2023
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 ff96567bd0fb8ed7a4739afa27a3cf3908115021..be0bbd342828a2adbfaa17066540d8a9eae79dd1 libcxx/test/libcxx/system_reserved_names.gen.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- system_reserved_names.gen.py 2023-11-29 18:18:49.000000 +0000
+++ system_reserved_names.gen.py 2023-11-29 18:23:29.146540 +0000
@@ -14,11 +14,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
{lit_header_restrictions.get(header, '')}
#define SYSTEM_RESERVED_NAME This name should not be used in libc++
@@ -160,6 +161,7 @@
// Macros from the CUDA SDKs
#define __noinline__ __attribute__((noinline))
#include <{header}>
-""")
+"""
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/73838
More information about the libcxx-commits
mailing list