[CUDA][HIP] Use the same default language std as C++
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 17 Jul 2023 21:50:12 +0000 (17:50 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 20 Jul 2023 03:54:58 +0000 (23:54 -0400)
commit2d1d07152bd26b001dedec3400b4b01d3bb11622
treed2657b42953a1bc1743eeb7ec6bb34f2b87b6be8
parent1733d949633a61cd0213f63e22d461a39e798946
[CUDA][HIP] Use the same default language std as C++

Currently CUDA/HIP defines their own language standards in
LanguageStandards.def but they are redundant. They are the same as stdc++14.
The fact that CUDA/HIP uses c++* in option -std= indicates that they have the
same language standards as C++. The CUDA/HIP specific language features are
conveyed through language options, not language standards features. It makes
sense to let CUDA/HIP uses the same default language standard as C++.

Reviewed by: Siu Chi Chan, Artem Belevich

Differential Revision: https://reviews.llvm.org/D155539

Fixes: SWDEV-407685
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/LangStandards.def
clang/lib/Basic/LangStandards.cpp
clang/test/CodeGenCUDA/long-double.cu
clang/test/Driver/unknown-std.cpp
clang/test/Preprocessor/lang-std.cpp