https://llvm.org/bugs/show_bug.cgi?id=30320
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: unassignedclangb...@nondot.org Reporter: nicolaswe...@gmx.de CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified Consider: void f() { printf("\%\n"); } cl.exe says something along the lines of C:\src\chromium4\src\third_party\llvm\projects\compiler-rt\lib\profile\InstrProfilingFile.c(563): warning C4129: '%': unrecognized character escape sequence C:\src\chromium4\src\third_party\llvm\projects\compiler-rt\lib\profile\InstrProfilingFile.c(560): 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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs