[clang-tools-extra] [clang-tidy] fix an edge case in readability-implicit-bool-conversion (PR #186234)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 12 19:10:20 PDT 2026
================
@@ -3,11 +3,14 @@
// RUN: {readability-implicit-bool-conversion.AllowIntegerConditions: true, \
// RUN: readability-implicit-bool-conversion.AllowPointerConditions: true}}'
+namespace std { struct string { string(const char*); }; }
----------------
zeyi2 wrote:
```suggestion
#include <string>
```
We now have universal mock headers, so you don't have to do it yourself :)
https://github.com/llvm/llvm-project/pull/186234
More information about the cfe-commits
mailing list