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: unassignedb...@nondot.org
          Reporter: noelgran...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to