From: Anastasia Stulova Date: Fri, 23 Aug 2019 17:10:33 +0000 (+0000) Subject: [OpenCL] Renamed value of std flag in C++ mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bdc54ffe368bc4b9e8cfc04abd20fa1a6e1a114;p=clang [OpenCL] Renamed value of std flag in C++ mode. Clang should accept -std=clc++ (not -std=c++!) for OpenCL. This was forgotten in r367008. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369779 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/LangStandards.def b/include/clang/Basic/LangStandards.def index 537ab2c793..427691fb71 100644 --- a/include/clang/Basic/LangStandards.def +++ b/include/clang/Basic/LangStandards.def @@ -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) diff --git a/test/Driver/unknown-std.cl b/test/Driver/unknown-std.cl index 285582ee0a..6f371bac13 100644 --- a/test/Driver/unknown-std.cl +++ b/test/Driver/unknown-std.cl @@ -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: {{^.+$}}