[PATCH] D36044: [OpenCL] -cl-ext option can overwrite OpenCL features imported from a module
Anastasia added inline comments. Comment at: include/clang/Basic/OpenCLOptions.h:132 - void disableAll() { + void enableAll(bool On = true) { for (llvm::StringMap::iterator I = OptMap.begin(), May be the name could be `setAll` since it's doing both
[PATCH] D36044: [OpenCL] -cl-ext option can overwrite OpenCL features imported from a module
bader added inline comments. Comment at: test/SemaOpenCL/extensions-import.cl:14 + +#ifdef FP64 +// expected-no-diagnostics You can use `#ifdef cl_khr_fp64` to check if extension is supported. https://reviews.llvm.org/D36044