[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 27 10:33:48 PDT 2025
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 545ea0dd378912d588550a79728cc98cd4dbaa24...48bb3c79069c9bad5ee01865058a155368586b2e clang-tools-extra/test/clang-tidy/check_clang_tidy.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- check_clang_tidy.py 2025-03-27 17:28:59.000000 +0000
+++ check_clang_tidy.py 2025-03-27 17:33:17.048667 +0000
@@ -70,11 +70,10 @@
return process_output
# This class represents the appearance of a message prefix in a file.
class MessagePrefix:
-
def __init__(self, label: str) -> None:
self.has_message = False
self.prefixes: List[str] = []
self.label = label
@@ -85,11 +84,10 @@
self.prefixes.append(self.prefix)
return self.has_message
class CheckRunner:
-
def __init__(self, args: argparse.Namespace, extra_args: List[str]) -> None:
self.resource_dir = args.resource_dir
self.assume_file_name = args.assume_filename
self.input_file_name = args.input_file_name
self.check_name = args.check_name
``````````
</details>
https://github.com/llvm/llvm-project/pull/133140
More information about the cfe-commits
mailing list