This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Allow for variadic macros in C++ for OpenCL
ClosedPublic

Authored by olestrohm on Aug 6 2020, 6:02 AM.

Details

Summary

C++ for OpenCL intends to support variadic macros, a decision motivated by OpenCL 3.0. This patch simply skips the warning when compiling in C++ for OpenCL mode.

Diff Detail

Event Timeline

olestrohm created this revision.Aug 6 2020, 6:02 AM
olestrohm requested review of this revision.Aug 6 2020, 6:02 AM

Can you extend test test/Preprocessor/macro_variadic.cl to cover C++ for OpenCL mode, otherwise LGTM!

olestrohm updated this revision to Diff 283909.Aug 7 2020, 8:21 AM

I have amended the relevant test to validate this behaviour in C++ for OpenCL.

Anastasia accepted this revision.Aug 11 2020, 3:15 AM

LGTM! Thanks

This revision is now accepted and ready to land.Aug 11 2020, 3:15 AM