[clang-tools-extra] Allow to pass config file to clang-tidy-diff (PR #75457)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 14 02:37:57 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 2952bc3384412ca67fd1dcd2eac595088d692802...05aff16d9b117e7e04c5342ec1792c91ef41e48b clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
``````````

</details>

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

``````````diff
--- clang-tidy-diff.py	2023-12-14 10:31:28.000000 +0000
+++ clang-tidy-diff.py	2023-12-14 10:37:50.326684 +0000
@@ -171,12 +171,16 @@
     parser.add_argument(
         "-checks",
         help="checks filter, when not specified, use clang-tidy " "default",
         default="",
     )
-    parser.add_argument("-config-file", dest="config_file",
-        help="Specify the path of .clang-tidy or custom config file",default="")
+    parser.add_argument(
+        "-config-file",
+        dest="config_file",
+        help="Specify the path of .clang-tidy or custom config file",
+        default="",
+    )
     parser.add_argument("-use-color", action="store_true", help="Use colors in output")
     parser.add_argument(
         "-path", dest="build_path", help="Path used to read a compile command database."
     )
     if yaml:

``````````

</details>


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


More information about the cfe-commits mailing list