This is an archive of the discontinued LLVM Phabricator instance.

OpenCL: Mark printf format string argument
ClosedPublic

Authored by arsenm on Sep 24 2018, 5:51 AM.

Details

Reviewers
Anastasia
Summary

Fixes not warning on format string errors.

Diff Detail

Event Timeline

arsenm created this revision.Sep 24 2018, 5:51 AM
Anastasia accepted this revision.Oct 2 2018, 10:01 AM

LGTM! Thanks! Sorry I missed this somehow.

This revision is now accepted and ready to land.Oct 2 2018, 10:01 AM
arsenm closed this revision.Oct 2 2018, 7:03 PM

r343653

jprice added a subscriber: jprice.Oct 6 2018, 11:23 AM

This change has caused Clang to start emitting erroneous warnings when using OpenCL's vector specifier, e.g. "%v4f", which doesn't seem to be covered by the format string analysis.