Skip to content

-Wstring-conversion and assert #42889

@grandinj

Description

@grandinj
mannequin
Bugzilla Link 43544
Version unspecified
OS All
CC @stbergmann

Extended Description

It would be nice if the above warning would whitelist the common idiom

    assert(!"Unknown LibreOfficeKitCallbackType type.");

so I don't have to rewrite them all to

    assert(false && "Unknown LibreOfficeKitCallbackType type.");

which seems to work

:-)

(I'm testing this with clang trunk from about 4 weeks ago i.e. clang towards 10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions