[all-commits] [llvm/llvm-project] 2d1d07: [CUDA][HIP] Use the same default language std as C++
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Wed Jul 19 20:58:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2d1d07152bd26b001dedec3400b4b01d3bb11622
https://github.com/llvm/llvm-project/commit/2d1d07152bd26b001dedec3400b4b01d3bb11622
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2023-07-19 (Wed, 19 Jul 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/LangStandards.def
M clang/lib/Basic/LangStandards.cpp
M clang/test/CodeGenCUDA/long-double.cu
M clang/test/Driver/unknown-std.cpp
M clang/test/Preprocessor/lang-std.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list