[PATCH] D68388: [PR41008][OpenCL] Add OpenCL C compatibility mode to C++ for OpenCL
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 22 05:01:57 PST 2019
Anastasia added a comment.
I think we should use `-fpermissive` rather than adding similar flag to Clang. At the end we might end up with other cases where we need similar mechanism it doesn't make sense to add a flag for each case.
Also I am not sure that what you are doing here is really enabling OpenCL C compatibility mode that would imply to me that `restrict` is expected to behave in C++ mode as it was in C but is it really the case?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68388/new/
https://reviews.llvm.org/D68388
More information about the cfe-commits
mailing list