[clang] aa34b34 - Set default C++ level for PlayStation(r) to C++17.

Sunil Srivastava via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 21 18:21:18 PDT 2023


Author: Sunil Srivastava
Date: 2023-07-21T18:18:21-07:00
New Revision: aa34b34e93d444efec6cd894e5e55927d0e413e6

URL: https://github.com/llvm/llvm-project/commit/aa34b34e93d444efec6cd894e5e55927d0e413e6
DIFF: https://github.com/llvm/llvm-project/commit/aa34b34e93d444efec6cd894e5e55927d0e413e6.diff

LOG: Set default C++ level for PlayStation(r) to C++17.

Added: 
    

Modified: 
    clang/lib/Basic/LangStandards.cpp

Removed: 
    clang/test/Preprocessor/lang-std-sie.cpp


################################################################################
diff  --git a/clang/lib/Basic/LangStandards.cpp b/clang/lib/Basic/LangStandards.cpp
index 033c0efe8d4f5d..af9cf4f273920e 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 e8e65690277a5b..00000000000000
--- 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


        


More information about the cfe-commits mailing list