[llvm-bugs] [Bug 43544] New: -Wstring-conversion and assert

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 3 02:28:37 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43544

            Bug ID: 43544
           Summary: -Wstring-conversion and assert
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: noelgrandin at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191003/efb72fea/attachment.html>


More information about the llvm-bugs mailing list