[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
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: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: dgregor at apple.com, llvm-bugs at 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.
-------------- 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