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: unassignedclangb...@nondot.org
Reporter: matthew.arsena...@amd.com
CC: anastasia.stul...@arm.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs