Skip to content

[clang-tidy] readability-implicit-bool-conversion + readability-uppercase-literal-suffix should suggest uppercase literal suffix #133592

@tearfur

Description

@tearfur

It'll be nice if readability-implicit-bool-conversion would suggest uppercase literal suffix when readability-uppercase-literal-suffix is also enabled. Currently it always suggests lowercase literal suffix.

https://godbolt.org/z/Wb9MaEj5M

<source>:6:10: warning: implicit conversion 'unsigned char' -> 'bool' [readability-implicit-bool-conversion]
    6 | bool b = uc();
      |          ^   
      |               != 0u

Current trunk: 1ff7491

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidywontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions