[PATCH] D55023: OpenCL: Improve vector printf warnings
Matt Arsenault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 28 13:27:52 PST 2018
arsenm created this revision.
arsenm added a reviewer: Anastasia.
Herald added subscribers: yaxunl, wdng.
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.
https://reviews.llvm.org/D55023
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55023.175759.patch
Type: text/x-patch
Size: 12381 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181128/452b4b9d/attachment-0001.bin>
More information about the cfe-commits
mailing list