From aa34b34e93d444efec6cd894e5e55927d0e413e6 Mon Sep 17 00:00:00 2001 From: Sunil Srivastava Date: Fri, 21 Jul 2023 18:18:21 -0700 Subject: [PATCH] Set default C++ level for PlayStation(r) to C++17. --- clang/lib/Basic/LangStandards.cpp | 2 -- clang/test/Preprocessor/lang-std-sie.cpp | 6 ------ 2 files changed, 8 deletions(-) delete mode 100644 clang/test/Preprocessor/lang-std-sie.cpp diff --git a/clang/lib/Basic/LangStandards.cpp b/clang/lib/Basic/LangStandards.cpp index 033c0ef..af9cf4f 100644 --- a/clang/lib/Basic/LangStandards.cpp +++ b/clang/lib/Basic/LangStandards.cpp @@ -66,8 +66,6 @@ LangStandard::Kind clang::getDefaultLanguageStandard(clang::Language Lang, case Language::ObjCXX: case Language::CUDA: case Language::HIP: - if (T.isPS()) - return LangStandard::lang_gnucxx14; return LangStandard::lang_gnucxx17; case Language::RenderScript: return LangStandard::lang_c99; diff --git a/clang/test/Preprocessor/lang-std-sie.cpp b/clang/test/Preprocessor/lang-std-sie.cpp deleted file mode 100644 index e8e6569..0000000 --- a/clang/test/Preprocessor/lang-std-sie.cpp +++ /dev/null @@ -1,6 +0,0 @@ -/// Test that PS4/PS5 defaults to gnu++14. - -// RUN: %clang_cc1 -dM -E -triple x86_64-scei-ps4 %s | FileCheck --check-prefix=CXX14 %s -// RUN: %clang_cc1 -dM -E -triple x86_64-sie-ps5 %s | FileCheck --check-prefix=CXX14 %s - -// CXX14: #define __cplusplus 201402L -- 2.7.4