[llvm-bugs] [Bug 39652] New: Improve printf format string diagnostics for vector types
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 13 14:38:28 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39652
Bug ID: 39652
Summary: Improve printf format string diagnostics for vector
types
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangbugs at nondot.org
Reporter: Matthew.Arsenault at amd.com
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org
Currently printf format string warnings don't bother checking anything about
the v modifier for vectors.
r346806 includes some example cases that should warn, such as:
// FIXME: This should warn
kernel void format_missing_num_elts(float4 arg)
{
printf("%vf\n", arg); // expected-no-diagnostics
}
// FIXME: This should warn
kernel void vector_precision_modifier_v4i32(int4 arg)
{
printf("%.2v4f\n", arg); // expected-no-diagnostics
}
--
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/20181113/2af03a97/attachment.html>
More information about the llvm-bugs
mailing list