]> granicus.if.org Git - clang/commit
OpenCL: Don't warn on v printf modifier
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 13 Nov 2018 22:30:35 +0000 (22:30 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 13 Nov 2018 22:30:35 +0000 (22:30 +0000)
commit03548372518c4556703f4c1b0e62033f42e874e0
tree975b34afe1c1326194630c3f13da715e09fb6231
parent5e1f58d79130478b969bcbb29dd1545852500f7f
OpenCL: Don't warn on v printf modifier

This avoids spurious warnings, but could use
a lot of work. For example the number of vector
elements is not verified, and the passed
value type is not checked.

Fixes bug 39486

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346806 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/FormatString.h
lib/AST/FormatString.cpp
lib/AST/PrintfFormatString.cpp
test/Sema/format-strings.c
test/SemaOpenCL/printf-format-strings.cl [new file with mode: 0644]