njames93 added a comment.

Would it be wise to use `os.isatty(sys.stdout.fileno())` as the value if left 
unspecified.
As we capture stdout from clang-tidy, clang-tidy assumes we aren't connected to 
a terminal and thus disables colours, unless explicitly enabled.
Therefore if our python script is known to be running from a terminal and we 
haven't specified to use colours. We should enable `--use-color`.

Based off this, I think the argument should be a carbon copy of the 
`--use-color` option from clang-tidy.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93543/new/

https://reviews.llvm.org/D93543

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to