vita3k: Switch to C++23

This commit is contained in:
nishinji
2025-08-06 18:13:36 +09:00
committed by Gamid
parent 16afc7b89d
commit 53cbaa4c8b
4 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
@@ -52,7 +52,7 @@ DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|isl|json)/)'
+1 -1
View File
@@ -2,7 +2,7 @@
set -ex
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
git fetch origin $GITHUB_BASE_REF:refs/remotes/origin/$GITHUB_BASE_REF
for f in $(git diff --diff-filter=AM --name-only origin/$GITHUB_BASE_REF 'vita3k/**.cpp' 'vita3k/**.h' 'tools/**.cpp' 'tools/**.h'); do
if [ "$(diff -u <(cat $f) <(clang-format $f))" != "" ]
+1 -1
View File
@@ -16,7 +16,7 @@ ProcessorCount(CPU_COUNT)
# Define the Architecture variable, right now it should only contain "x86_64" or "arm64"
include("external/dynarmic/CMakeModules/DetectArchitecture.cmake")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
+1
View File
@@ -16,6 +16,7 @@
#include <regex>
#include <unistd.h>
#elif defined(_WIN32) || defined(_WIN64)
#include <cstdlib>
#include <windows.h>
#endif