[llvm-bugs] [Bug 30320] New: clang should warn about incorrect "\%" escape sequence

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 7 18:46:10 PDT 2016


            Bug ID: 30320
           Summary: clang should warn about incorrect "\%" escape sequence
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified


void f() { printf("\%\n"); }

cl.exe says something along the lines of

warning C4129: '%': unrecognized character escape sequence
warning C4476: 'fprintf' : unknown type field character 'm' in format specifier

clang's -Wformat should flag this too.

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/20160908/dbc1d55d/attachment.html>

More information about the llvm-bugs mailing list