mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-01-31 00:55:19 +01:00
[clang-format] Added correct version and vscode formatter (#3971)
This commit is contained in:
@@ -17,8 +17,9 @@
|
|||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"llvm-vs-code-extensions.vscode-clangd",
|
"llvm-vs-code-extensions.vscode-clangd",
|
||||||
"ms-vscode.cmake-tools"
|
"ms-vscode.cmake-tools",
|
||||||
|
"xaver.clang-format"
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"clangd.arguments": [
|
"clangd.arguments": [
|
||||||
@@ -26,23 +27,25 @@
|
|||||||
"--clang-tidy",
|
"--clang-tidy",
|
||||||
"--completion-style=detailed",
|
"--completion-style=detailed",
|
||||||
"--header-insertion=never",
|
"--header-insertion=never",
|
||||||
"--compile-commands-dir=/workspaces/shadPS4/Build/x64-Clang-Release"
|
"--compile-commands-dir=/workspaces/shadPS4/Build/x64-Clang-Release"
|
||||||
],
|
],
|
||||||
"C_Cpp.intelliSenseEngine": "Disabled"
|
"C_Cpp.intelliSenseEngine": "Disabled"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"cmake.configureOnOpen": false,
|
"cmake.configureOnOpen": false,
|
||||||
"cmake.generator": "Unix Makefiles",
|
"cmake.generator": "Unix Makefiles",
|
||||||
"cmake.environment": {
|
"cmake.environment": {
|
||||||
"CC": "clang",
|
"CC": "clang",
|
||||||
"CXX": "clang++"
|
"CXX": "clang++"
|
||||||
},
|
},
|
||||||
"cmake.configureEnvironment": {
|
"cmake.configureEnvironment": {
|
||||||
"CMAKE_CXX_STANDARD": "23",
|
"CMAKE_CXX_STANDARD": "23",
|
||||||
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
|
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
|
||||||
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
||||||
}
|
},
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"clang-format.executable": "clang-format-19"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,6 +10,7 @@ RUN pacman-key --init && \
|
|||||||
RUN pacman -S --noconfirm \
|
RUN pacman -S --noconfirm \
|
||||||
base-devel \
|
base-devel \
|
||||||
clang \
|
clang \
|
||||||
|
clang19 \
|
||||||
ninja \
|
ninja \
|
||||||
git \
|
git \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -38,5 +39,7 @@ RUN pacman -S --noconfirm \
|
|||||||
libxinerama \
|
libxinerama \
|
||||||
libxss \
|
libxss \
|
||||||
&& pacman -Scc --noconfirm
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN ln -sf /usr/lib/llvm19/bin/clang-format /usr/bin/clang-format-19
|
||||||
|
|
||||||
WORKDIR /workspaces/shadPS4
|
WORKDIR /workspaces/shadPS4
|
||||||
Reference in New Issue
Block a user