[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:21:53 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:
Or I'm missing something here on why we want to specify this in help.
Right now seems to me of how AI would generate description if you feed linked issue into it
https://github.com/llvm/llvm-project/pull/245996
More information about the cfe-commits
mailing list