[PATCH] D155998: Set default C++ level for Playstation to C++17.

Sunil Srivastava via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 21 14:36:51 PDT 2023


Sunil_Srivastava created this revision.
Herald added a project: All.
Sunil_Srivastava requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155998

Files:
  clang/lib/Basic/LangStandards.cpp
  clang/test/Preprocessor/lang-std-sie.cpp


Index: clang/test/Preprocessor/lang-std-sie.cpp
===================================================================
--- clang/test/Preprocessor/lang-std-sie.cpp
+++ clang/test/Preprocessor/lang-std-sie.cpp
@@ -1,6 +1,6 @@
-/// Test that PS4/PS5 defaults to gnu++14.
+/// Test that PS4/PS5 defaults to gnu++17.
 
-// 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
+// RUN: %clang_cc1 -dM -E -triple x86_64-scei-ps4 %s | FileCheck --check-prefix=CXX17 %s
+// RUN: %clang_cc1 -dM -E -triple x86_64-sie-ps5 %s | FileCheck --check-prefix=CXX17 %s
 
-// CXX14: #define __cplusplus 201402L
+// CXX17: #define __cplusplus 201703L
Index: clang/lib/Basic/LangStandards.cpp
===================================================================
--- clang/lib/Basic/LangStandards.cpp
+++ clang/lib/Basic/LangStandards.cpp
@@ -66,8 +66,6 @@
   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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155998.543073.patch
Type: text/x-patch
Size: 1197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230721/dfa402b5/attachment.bin>


More information about the cfe-commits mailing list