summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaOpenCL/printf-format-strings.cl
Commit message (Collapse)AuthorAgeFilesLines
* OpenCL: Use length modifier for warning on vector printf argumentsMatt Arsenault2019-01-291-1/+118
| | | | | | | | | | | | Re-enable format string warnings on printf. The warnings are still incomplete. Apparently it is undefined to use a vector specifier without a length modifier, which is not currently warned on. Additionally, type warnings appear to not be working with the hh modifier, and aren't warning on all of the special restrictions from c99 printf. llvm-svn: 352540
* Revert "OpenCL: Extend argument promotion rules to vector types"Matt Arsenault2019-01-291-2/+2
| | | | | | | | | | | | This reverts r348083. This was based on a misreading of the spec for printf specifiers. Also revert r343653, as without a subsequent patch, a correctly specified format for a vector will incorrectly warn. Fixes bug 40491. llvm-svn: 352539
* OpenCL: Improve vector printf warningsMatt Arsenault2018-12-011-10/+70
| | | | | | | | | | | | 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. Fixes bug 39652 llvm-svn: 348084
* OpenCL: Don't warn on v printf modifierMatt Arsenault2018-11-131-0/+34
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 llvm-svn: 346806
OpenPOWER on IntegriCloud