style: clang-format the entire project

This commit is contained in:
MatthewBeshay
2026-04-09 10:17:55 +10:00
parent 81c2eb82f0
commit cd4b39cf88
803 changed files with 6092 additions and 6095 deletions

View File

@@ -11,10 +11,10 @@ IPlatformFilesystem& PlatformFilesystem_get() {
static StdFilesystem instance;
return instance;
}
}
} // namespace platform_internal
IPlatformFilesystem::ReadResult StdFilesystem::readFile(const std::filesystem::path& path,
void* buffer, std::size_t capacity) {
IPlatformFilesystem::ReadResult StdFilesystem::readFile(
const std::filesystem::path& path, void* buffer, std::size_t capacity) {
std::error_code ec;
auto size = std::filesystem::file_size(path, ec);
if (ec) return {ReadStatus::NotFound, 0, 0};
@@ -29,9 +29,9 @@ IPlatformFilesystem::ReadResult StdFilesystem::readFile(const std::filesystem::p
static_cast<std::size_t>(size)};
}
IPlatformFilesystem::ReadResult StdFilesystem::readFileSegment(const std::filesystem::path& path,
std::size_t offset, void* buffer,
std::size_t bytesToRead) {
IPlatformFilesystem::ReadResult StdFilesystem::readFileSegment(
const std::filesystem::path& path, std::size_t offset, void* buffer,
std::size_t bytesToRead) {
std::error_code ec;
auto size = std::filesystem::file_size(path, ec);
if (ec) return {ReadStatus::NotFound, 0, 0};