[PATCH] D81953: [clang-tidy] warnings-as-error no longer exits with ErrorCount

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 17 04:17:01 PDT 2020


aaron.ballman added a comment.

In D81953#2096635 <https://reviews.llvm.org/D81953#2096635>, @njames93 wrote:

> In D81953#2096388 <https://reviews.llvm.org/D81953#2096388>, @aaron.ballman wrote:
>
> > LGTM unless @jroelofs has a reason why the code was originally written that way, but can you add test coverage for it?
>
>
> How would you suggest I add test coverage for this, afaik llvm-lit doesn't seem to handle checking specific exit codes, only whether is was 0 or not. 
>  There are already test cases for a non-zero exit code with `-warnings-as-errors`.


If lit doesn't provide a way to do this, I don't insist. I was thinking you'd have a way to use the lit shell to compare against the return value since it had the ability to test against nonzero or not.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81953





More information about the cfe-commits mailing list