[all-commits] [llvm/llvm-project] f7e87d: [CUDA][HIP] Change default lang std to c++14

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue Jun 1 18:09:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7e87dd6ff0c1c4a41a6b654d2460557ae97ab8d
      https://github.com/llvm/llvm-project/commit/f7e87dd6ff0c1c4a41a6b654d2460557ae97ab8d
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M clang/include/clang/Basic/LangStandards.def
    M clang/test/Parser/cuda-kernel-call.cu
    A clang/test/Preprocessor/lang-std.cu
    M clang/test/SemaCUDA/asm_delayed_diags.cu
    M clang/test/SemaCUDA/cuda-builtin-vars.cu
    M clang/test/SemaCUDA/function-target.cu
    M clang/test/SemaCUDA/implicit-member-target-collision.cu

  Log Message:
  -----------
  [CUDA][HIP] Change default lang std to c++14

Currently clang and nvcc use c++14 as default std for C++.
gcc 11 even uses c++17 as default std for C++. However,
clang uses c++98 as default std for CUDA/HIP.

As c++14 has been well adopted and became default for
clang, it seems reasonable to use c++14 as default std
for CUDA/HIP.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list