diff options
author | Björn Svensson <bjorn.a.svensson@est.tech> | 2024-05-23 18:57:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 18:57:21 +0200 |
commit | 729403e244c9970efa7aa17be32c197eb8e28fac (patch) | |
tree | 8b0bc170b4730b9db3c3db7ce8abd8537bd3b5df /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 558cb29feae6011beb2d384b1ef094bb9f7f2c27 (diff) | |
download | llvm-729403e244c9970efa7aa17be32c197eb8e28fac.zip llvm-729403e244c9970efa7aa17be32c197eb8e28fac.tar.gz llvm-729403e244c9970efa7aa17be32c197eb8e28fac.tar.bz2 |
[clang-tidy] Correcting issues in `readability-implicit-bool-conversion` on C23 (#92241)
`readability-implicit-bool-conversion` supports language-versions with
`LangOpts.Bool` which includes C23.
This PR corrects an issue that the fixer suggests `static_cast<>()`
which is not available in C23,
and will instead suggest C-style casts on other than C++.
The fixer will also suggest using `nullptr` instead of `0` and avoid a
problem with recursive fixes on C23.
The recursive issue, a function taking bool and a comparison, is now
excluded as in C++.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions