[all-commits] [llvm/llvm-project] 729403: [clang-tidy] Correcting issues in `readability-imp...
Björn Svensson via All-commits
all-commits at lists.llvm.org
Thu May 23 09:57:43 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 729403e244c9970efa7aa17be32c197eb8e28fac
https://github.com/llvm/llvm-project/commit/729403e244c9970efa7aa17be32c197eb8e28fac
Author: Björn Svensson <bjorn.a.svensson at est.tech>
Date: 2024-05-23 (Thu, 23 May 2024)
Changed paths:
M clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/readability/implicit-bool-conversion.rst
A clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion.c
Log Message:
-----------
[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++.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list