| Issue |
176889
|
| Summary |
[clang-tidy] Erroneous readability-implicit-bool-conversion report with C bools
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
philippkarg
|
Hello,
Using the latest `clangd` [snapshot](https://github.com/clangd/clangd/releases/tag/snapshot_20260118), I am getting a `clang-tidy` `readability-implicit-bool-conversion` warning for booleans in C code.
This happens even when setting `AllowIntegerConditions` to true.
Minimal snippet to reproduce:
<img width="1124" height="314" alt="Image" src="" />
**`clang-tidy` config**
```yaml
---
Checks: >
readability-implicit-bool-conversion,
CheckOptions:
# Other options
readability-implicit-bool-conversion.AllowIntegerConditions: true
readability-implicit-bool-conversion.AllowPointerConditions: true
HeaderFilterRegex: "*.*\\.h$"
```
**System information**
Output of `clangd --version`:
`clangd/ version 23.0.0git (https://github.com/llvm/llvm-project 3dc5259bc8908a516ea3c90278339d5d40e397d5)`
Editor/LSP plugin: VSCode
Operating system: Fedora 43
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs