[llvm] [code-format] Also include libc++ extensionless headers (PR #73142)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 08:37:46 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 cae46f6210293ba4d3568eb21b935d438934290d..60b6c0453b1a4a49487fcf26f896db57ea1db990 llvm/utils/git/code-format-helper.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- code-format-helper.py	2023-11-22 16:34:37.000000 +0000
+++ code-format-helper.py	2023-11-22 16:37:38.146570 +0000
@@ -125,11 +125,11 @@
             print(f"{self.name}: Excluding file {path}")
             return True
         return False
 
     def should_include_extensionless_file(self, path: str) -> bool:
-        return path.startswith('libcxx/include')
+        return path.startswith("libcxx/include")
 
     def filter_changed_files(self, changed_files: list[str]) -> list[str]:
         filtered_files = []
         for path in changed_files:
             _, ext = os.path.splitext(path)

``````````

</details>


https://github.com/llvm/llvm-project/pull/73142


More information about the llvm-commits mailing list