[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:17:25 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:
This description is too verbose, it is expected to override config file like any other option
https://github.com/llvm/llvm-project/pull/245996
More information about the cfe-commits
mailing list