The diagnostic added in D72231 also shows a diagnostic when casting to a _Bool. This is unwanted. This patch removes the diagnostic for _Bool.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Also, make sure to run git-clang-format HEAD~ on the patch, as the linter suggests. Thanks for the patch.
Comment Actions
I'll add some tests, but C++ uses a different codepath for c-style casts.
I'd rather not run it on the tests. The new code uses the same style as the surrounding code. If wanted I can run the formatter on the changed test files and commit them separately.
Comment Actions
Since the warning applies in both modes, we generally need to be testing all the cases in both. The implementation being significantly different is a *better* reason to do this.
Anyway, thanks, LGTM.