[PATCH] D155998: Set default C++ level for PlayStation(r) to C++17.
Sunil Srivastava via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 15:06:15 PDT 2023
Sunil_Srivastava updated this revision to Diff 543088.
Sunil_Srivastava added a comment.
Deleted Sie specific test, now that the behavior is same as the default.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155998/new/
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
+++ /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
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.543088.patch
Type: text/x-patch
Size: 920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230721/814dc488/attachment-0001.bin>
More information about the cfe-commits
mailing list