This is an archive of the discontinued LLVM Phabricator instance.

Clang-Tidy implicit bool conversion check use upercase suffixes
Needs ReviewPublic

Authored by kili on Dec 7 2021, 7:53 AM.

Details

Reviewers
alexfh
njames93
Summary

Make the type suffix of the implicit bool conversion check upercase. So that the result does not fail the readability uppercase literall suffix check.

Diff Detail

Event Timeline

kili created this revision.Dec 7 2021, 7:53 AM
kili requested review of this revision.Dec 7 2021, 7:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2021, 7:53 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
kili updated this revision to Diff 392678.Dec 8 2021, 1:24 AM

Fix tests

Something stylistic like this should likely be configurable. Lowercase literals are a part of the language and there is likely a codebase out there that explicitly prefers them