This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix init-list handling in readability-implicit-bool-conversion
ClosedPublic

Authored by PiotrZSL on Apr 4 2023, 11:38 AM.

Details

Summary

Adds support for explicit casts using initListExpr,
for example: int{boolValue} constructions.

Fixes: #47000

Diff Detail

Event Timeline

PiotrZSL created this revision.Apr 4 2023, 11:38 AM
Herald added a project: Restricted Project. · View Herald Transcript
PiotrZSL requested review of this revision.Apr 4 2023, 11:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 11:38 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ccotter accepted this revision.Apr 4 2023, 6:10 PM
ccotter added a subscriber: ccotter.

lgtm

This revision is now accepted and ready to land.Apr 4 2023, 6:10 PM