[clang-tools-extra] [clang-tidy] Allow disabling color in clang-tidy-diff (PR #245996)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 26 21:19:21 PST 2026


================
@@ -192,7 +203,14 @@ def main():
         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(
+        "-use-color",
+        type=strtobool,
+        nargs="?",
+        const=True,
+        help="Use colors in diagnostics, overriding clang-tidy's default behavior "
----------------
vbvictor wrote:

I suppose we can leave it as is

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


More information about the cfe-commits mailing list