forked from DescentDevelopers/Descent3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This ensures that everything uses the format rules specified in .clang-format. Unfortunately, in order to make sure that the clang-format Check workflow succeeded, I had to make sure that my system had the same version of clang-format that jidicula/clang-format-action uses. I’m not sure what the best way to to run the script with an outdated version of clang-format is, but here’s how I was able to do it: 1. Make sure that the Nix package manager (https://nix.dev) is installed. 2. Create a file named shell.nix. Put the following in it: let url = "https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz"; tarball = builtins.fetchTarball url; pkgs = import tarball { }; in pkgs.mkShell { name = "shell-for-clang-format-18.1.13"; packages = let customLlvmPackages = pkgs.llvmPackages_18.override { officialRelease = { version = "18.1.3"; sha256 = "saQGbpYd95JuudwLcdG80GL8YhadH7TUY1FC0o0ithY="; }; }; in [ customLlvmPackages.clang-tools ]; } 3. Run “nix-shell”. 4. Change directory to the root of the Descent3 repo. 5. Run “tools/formatter.sh”.
- Loading branch information
1 parent
53ae5de
commit 876243d
Showing
705 changed files
with
21,960 additions
and
22,574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,89 @@ | ||
{ | ||
"version": 3, | ||
"configurePresets": [ | ||
{ | ||
"name": "defaults", | ||
"hidden": true, | ||
"binaryDir": "${sourceDir}/builds/${presetName}" | ||
}, | ||
{ | ||
"name": "win", | ||
"inherits": "defaults", | ||
"generator": "Ninja Multi-Config", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
}, | ||
"cacheVariables": { | ||
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md" | ||
}, | ||
"architecture": { | ||
"strategy": "external", | ||
"value": "x64" | ||
}, | ||
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" | ||
}, | ||
{ | ||
"name": "mac", | ||
"inherits": "defaults", | ||
"generator": "Ninja Multi-Config", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
}, | ||
{ | ||
"name": "linux", | ||
"inherits": "defaults", | ||
"generator": "Ninja Multi-Config", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Linux" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "win", | ||
"configurePreset": "win" | ||
}, | ||
{ | ||
"name": "mac", | ||
"configurePreset": "mac" | ||
}, | ||
{ | ||
"name": "linux", | ||
"configurePreset": "linux" | ||
} | ||
], | ||
"testPresets": [ | ||
{ | ||
"name": "defaults", | ||
"hidden": true, | ||
"output": { | ||
"outputOnFailure": true | ||
} | ||
}, | ||
{ | ||
"name": "win", | ||
"inherits": "defaults", | ||
"description": "Testing under Windows x64", | ||
"configurePreset": "win" | ||
}, | ||
{ | ||
"name": "mac", | ||
"inherits": "defaults", | ||
"description": "Testing under macOS", | ||
"configurePreset": "mac" | ||
}, | ||
{ | ||
"name": "linux", | ||
"inherits": "defaults", | ||
"description": "Testing under Linux", | ||
"configurePreset": "linux" | ||
} | ||
] | ||
"version": 3, | ||
"configurePresets": [ | ||
{ | ||
"name": "defaults", | ||
"hidden": true, | ||
"binaryDir": "${sourceDir}/builds/${presetName}" | ||
}, | ||
{ | ||
"name": "win", | ||
"inherits": "defaults", | ||
"generator": "Ninja Multi-Config", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
}, | ||
"cacheVariables": { | ||
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md" | ||
}, | ||
"architecture": { | ||
"strategy": "external", | ||
"value": "x64" | ||
}, | ||
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" | ||
}, | ||
{ | ||
"name": "mac", | ||
"inherits": "defaults", | ||
"generator": "Ninja Multi-Config", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
}, | ||
{ | ||
"name": "linux", | ||
"inherits": "defaults", | ||
"generator": "Ninja Multi-Config", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Linux" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "win", | ||
"configurePreset": "win" | ||
}, | ||
{ | ||
"name": "mac", | ||
"configurePreset": "mac" | ||
}, | ||
{ | ||
"name": "linux", | ||
"configurePreset": "linux" | ||
} | ||
], | ||
"testPresets": [ | ||
{ | ||
"name": "defaults", | ||
"hidden": true, | ||
"output": { | ||
"outputOnFailure": true | ||
} | ||
}, | ||
{ | ||
"name": "win", | ||
"inherits": "defaults", | ||
"description": "Testing under Windows x64", | ||
"configurePreset": "win" | ||
}, | ||
{ | ||
"name": "mac", | ||
"inherits": "defaults", | ||
"description": "Testing under macOS", | ||
"configurePreset": "mac" | ||
}, | ||
{ | ||
"name": "linux", | ||
"inherits": "defaults", | ||
"description": "Testing under Linux", | ||
"configurePreset": "linux" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.