The vector modifier is considered separate, so
don't treat it as a conversion specifier.
This is still not warning on some cases, like
using a type that isn't a valid vector element.
Paths
| Differential D55023
OpenCL: Improve vector printf warnings ClosedPublic Authored by arsenm on Nov 28 2018, 1:27 PM.
Details
Summary The vector modifier is considered separate, so This is still not warning on some cases, like
Diff Detail Event Timelinearsenm added inline comments.
arsenm added inline comments.
Comment Actions LGTM! Thanks!
This revision is now accepted and ready to land.Nov 30 2018, 4:17 AM
Revision Contents
Diff 175920 include/clang/AST/FormatString.h
lib/AST/FormatString.cpp
lib/AST/FormatStringParsing.h
lib/AST/PrintfFormatString.cpp
test/SemaOpenCL/format-strings-fixit.cl
test/SemaOpenCL/printf-format-strings.cl
|
Does this not work yet?