[PATCH] D157188: [clang-tidy] Add bugprone-new-bool-conversion

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 5 07:48:05 PDT 2023


Eugene.Zelenko added a comment.

In D157188#4563139 <https://reviews.llvm.org/D157188#4563139>, @PiotrZSL wrote:

> In D157188#4563105 <https://reviews.llvm.org/D157188#4563105>, @Eugene.Zelenko wrote:
>
>> Shouldn't C-style allocation be checked too? Same for custom allocators via configuration option.
>
> In theory it could, but in such case name of check would need to change...

Something like `bugprone-resource-bool-conversion` should be generic enough.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157188/new/

https://reviews.llvm.org/D157188



More information about the cfe-commits mailing list