forked from OSchip/llvm-project
[OpenCL] Renamed value of std flag in C++ mode.
Clang should accept -std=clc++ (not -std=c++!) for OpenCL. This was forgotten in r367008. llvm-svn: 369779
This commit is contained in:
parent
0ae5498146
commit
ad5047d23d
|
@ -165,7 +165,7 @@ LANGSTANDARD(opencl12, "cl1.2",
|
|||
LANGSTANDARD(opencl20, "cl2.0",
|
||||
OpenCL, "OpenCL 2.0",
|
||||
LineComment | C99 | Digraphs | HexFloat | OpenCL)
|
||||
LANGSTANDARD(openclcpp, "c++",
|
||||
LANGSTANDARD(openclcpp, "clc++",
|
||||
OpenCL, "C++ for OpenCL",
|
||||
LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus14 | CPlusPlus17 |
|
||||
Digraphs | HexFloat | OpenCL)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// CHECK-NEXT: note: use 'cl1.1' for 'OpenCL 1.1' standard
|
||||
// CHECK-NEXT: note: use 'cl1.2' for 'OpenCL 1.2' standard
|
||||
// CHECK-NEXT: note: use 'cl2.0' for 'OpenCL 2.0' standard
|
||||
// CHECK-NEXT: note: use 'c++' for 'C++ for OpenCL' standard
|
||||
// CHECK-NEXT: note: use 'clc++' for 'C++ for OpenCL' standard
|
||||
|
||||
// Make sure that no other output is present.
|
||||
// CHECK-NOT: {{^.+$}}
|
||||
|
|
Loading…
Reference in New Issue