[format] Require EOF newline

This commit is contained in:
Margen67 2025-07-18 11:26:28 -07:00
parent 45ca1c352d
commit 3eef564ff8
72 changed files with 74 additions and 73 deletions

View file

@ -3,6 +3,9 @@ BasedOnStyle: Google
DerivePointerAlignment: false
PointerAlignment: Left
SortIncludes: true
KeepEmptyLines:
AtStartOfFile: false
InsertNewlineAtEOF: true
# Regroup causes unnecessary noise due to clang-format bug.
IncludeBlocks: Preserve

View file

@ -554,4 +554,4 @@ void AudioMediaPlayer::DeleteDriver() {
}
} // namespace apu
} // namespace xe
} // namespace xe

View file

@ -133,4 +133,4 @@ class XmaContextNew : public XmaContext {
} // namespace apu
} // namespace xe
#endif // XENIA_APU_XMA_CONTEXT_H_
#endif // XENIA_APU_XMA_CONTEXT_H_

View file

@ -49,4 +49,4 @@ static uint32_t GetPacketFrameOffset(const uint8_t* packet) {
} // namespace apu
} // namespace xe
#endif // XENIA_APU_XMA_HELPERS_H_
#endif // XENIA_APU_XMA_HELPERS_H_

View file

@ -113,4 +113,4 @@ void BitMap::Reset() {
}
}
} // namespace xe
} // namespace xe

View file

@ -43,4 +43,4 @@ class StartupCpuFeatureCheck {
// Ref:
// https://reviews.llvm.org/D12689#243295
__attribute__((
init_priority(101))) static StartupCpuFeatureCheck gStartupAvxCheck;
init_priority(101))) static StartupCpuFeatureCheck gStartupAvxCheck;

View file

@ -43,4 +43,4 @@ class StartupCpuFeatureCheck {
// https://docs.microsoft.com/en-us/cpp/preprocessor/init-seg
#pragma warning(suppress : 4073)
#pragma init_seg(lib)
static StartupCpuFeatureCheck gStartupAvxCheck;
static StartupCpuFeatureCheck gStartupAvxCheck;

View file

@ -132,4 +132,4 @@ void InitFeatureFlags() {
g_did_initialize_feature_flags = true;
}
} // namespace amd64
} // namespace xe
} // namespace xe

View file

@ -36,4 +36,4 @@ struct SimpleFreelist {
}
void Reset() { head_ = nullptr; }
};
} // namespace xe
} // namespace xe

View file

@ -82,4 +82,4 @@ class split_map {
};
} // namespace xe
#endif // XENIA_BASE_SPLIT_MAP_H_
#endif // XENIA_BASE_SPLIT_MAP_H_

View file

@ -48,4 +48,4 @@ bool PosixX64CodeCache::Initialize() { return X64CodeCache::Initialize(); }
} // namespace x64
} // namespace backend
} // namespace cpu
} // namespace xe
} // namespace xe

View file

@ -611,4 +611,4 @@ EMITTER_OPCODE_TABLE(OPCODE_BRANCH_FALSE, BRANCH_FALSE_I8, BRANCH_FALSE_I16,
} // namespace x64
} // namespace backend
} // namespace cpu
} // namespace xe
} // namespace xe

View file

@ -122,4 +122,4 @@ void Breakpoint::ForEachHostAddress(
}
} // namespace cpu
} // namespace xe
} // namespace xe

View file

@ -133,4 +133,4 @@ class Breakpoint {
} // namespace cpu
} // namespace xe
#endif // XENIA_CPU_BREAKPOINT_H_
#endif // XENIA_CPU_BREAKPOINT_H_

View file

@ -21,4 +21,4 @@ std::unique_ptr<StackWalker> StackWalker::Create(
}
} // namespace cpu
} // namespace xe
} // namespace xe

View file

@ -26,4 +26,4 @@ uint32_t Thread::GetCurrentThreadId() {
}
} // namespace cpu
} // namespace xe
} // namespace xe

View file

@ -1382,4 +1382,4 @@ ResolveCopyShaderIndex ResolveInfo::GetCopyShader(
} // namespace draw_util
} // namespace gpu
} // namespace xe
} // namespace xe

View file

@ -767,4 +767,4 @@ bool GetResolveInfo(const RegisterFile& regs, const Memory& memory,
} // namespace gpu
} // namespace xe
#endif // XENIA_GPU_DRAW_UTIL_H_
#endif // XENIA_GPU_DRAW_UTIL_H_

View file

@ -55,4 +55,4 @@ void NullCommandProcessor::InitializeTrace() {}
} // namespace null
} // namespace gpu
} // namespace xe
} // namespace xe

View file

@ -52,4 +52,4 @@ class NullCommandProcessor : public CommandProcessor {
} // namespace gpu
} // namespace xe
#endif // XENIA_GPU_NULL_NULL_COMMAND_PROCESSOR_H_
#endif // XENIA_GPU_NULL_NULL_COMMAND_PROCESSOR_H_

View file

@ -39,4 +39,4 @@ std::unique_ptr<CommandProcessor> NullGraphicsSystem::CreateCommandProcessor() {
} // namespace null
} // namespace gpu
} // namespace xe
} // namespace xe

View file

@ -40,4 +40,4 @@ class NullGraphicsSystem : public GraphicsSystem {
} // namespace gpu
} // namespace xe
#endif // XENIA_GPU_NULL_NULL_GRAPHICS_SYSTEM_H_
#endif // XENIA_GPU_NULL_NULL_GRAPHICS_SYSTEM_H_

View file

@ -1,5 +1,3 @@
#if defined(OVERRIDING_BASE_CMDPROCESSOR)
#define PM4_OVERRIDE override
#else
@ -107,4 +105,4 @@ XE_NOINLINE
XE_COLD
bool ExecutePacketType0_CountOverflow(uint32_t count);
#undef PM4_OVERRIDE
#undef PM4_OVERRIDE

View file

@ -1434,4 +1434,4 @@ void COMMAND_PROCESSOR::ExecutePacket(uint32_t ptr, uint32_t count) {
}
} while (reader_.read_count());
reader_ = old_reader;
}
}

View file

@ -61,4 +61,4 @@ FORMAT_INFO(k_1_REVERSE, kUncompressed, 1, 1, 1),
FORMAT_INFO(k_CTX1, kCompressed, 4, 4, 4),
FORMAT_INFO(k_DXT3A_AS_1_1_1_1, kCompressed, 4, 4, 4),
FORMAT_INFO(k_8_8_8_8_GAMMA_EDRAM, kUncompressed, 1, 1, 32),
FORMAT_INFO(k_2_10_10_10_FLOAT_EDRAM, kUncompressed, 1, 1, 32),
FORMAT_INFO(k_2_10_10_10_FLOAT_EDRAM, kUncompressed, 1, 1, 32),

View file

@ -547,4 +547,4 @@ class DeferredCommandBuffer {
} // namespace gpu
} // namespace xe
#endif // XENIA_GPU_VULKAN_DEFERRED_COMMAND_BUFFER_H_
#endif // XENIA_GPU_VULKAN_DEFERRED_COMMAND_BUFFER_H_

View file

@ -242,4 +242,4 @@ const char* GetPrimitiveTypeEnglishDescription(xenos::PrimitiveType prim_type) {
}
} // namespace xenos
} // namespace gpu
} // namespace xe
} // namespace xe

View file

@ -48,4 +48,4 @@ struct TypedGuestPointer {
};
} // namespace xe
#endif // XENIA_GUEST_POINTERS_H_
#endif // XENIA_GUEST_POINTERS_H_

View file

@ -35,4 +35,4 @@ class SDLHelper {
} // namespace helper
} // namespace xe
#endif // XENIA_HELPER_SDL_SDL_HELPER_H_
#endif // XENIA_HELPER_SDL_SDL_HELPER_H_

View file

@ -29,4 +29,4 @@ X_STATUS SkylanderPortalEmulated::write(std::vector<uint8_t>& data) {
};
} // namespace hid
} // namespace xe
} // namespace xe

View file

@ -31,4 +31,4 @@ class SkylanderPortalEmulated final : public SkylanderPortal {
} // namespace hid
} // namespace xe
#endif
#endif

View file

@ -118,4 +118,4 @@ X_STATUS SkylanderPortalLibusb::write(std::vector<uint8_t>& data) {
};
} // namespace hid
} // namespace xe
} // namespace xe

View file

@ -44,4 +44,4 @@ class SkylanderPortalLibusb final : public SkylanderPortal {
} // namespace hid
} // namespace xe
#endif
#endif

View file

@ -16,4 +16,4 @@ SkylanderPortal::SkylanderPortal() {}
SkylanderPortal::~SkylanderPortal() {}
} // namespace hid
} // namespace xe
} // namespace xe

View file

@ -37,4 +37,4 @@ class SkylanderPortal {
} // namespace hid
} // namespace xe
#endif
#endif

View file

@ -184,4 +184,4 @@ void SystemManagementController::SetLedState(X_SMC_DATA* smc_message,
}
} // namespace kernel
} // namespace xe
} // namespace xe

View file

@ -108,4 +108,4 @@ static_assert(!IsOriginalXboxTitle(0x4D5308BC)); // 360 Game
} // namespace kernel
} // namespace xe
#endif
#endif

View file

@ -30,4 +30,4 @@ void RC4(const uint8_t* key, uint32_t key_size_in, const uint8_t* data,
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_UTIL_CRYPTO_UTILS_H_
#endif // XENIA_KERNEL_UTIL_CRYPTO_UTILS_H_

View file

@ -281,4 +281,4 @@ std::vector<GameInfoDatabase::Achievement> GameInfoDatabase::GetAchievements()
} // namespace util
} // namespace kernel
} // namespace xe
} // namespace xe

View file

@ -135,4 +135,4 @@ class GameInfoDatabase {
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_UTIL_GAME_INFO_DATABASE_H_
#endif // XENIA_KERNEL_UTIL_GAME_INFO_DATABASE_H_

View file

@ -26,4 +26,4 @@ namespace xe::kernel::util {
class NativeList;
class ObjectTable;
} // namespace xe::kernel::util
#endif
#endif

View file

@ -150,4 +150,4 @@ std::queue<std::string> AttributeStringFormatter::GetPresenceFormatSpecifiers()
}
} // namespace util
} // namespace kernel
} // namespace xe
} // namespace xe

View file

@ -77,4 +77,4 @@ class AttributeStringFormatter {
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_UTIL_PRESENCE_STRING_BUILDER_H_
#endif // XENIA_KERNEL_UTIL_PRESENCE_STRING_BUILDER_H_

View file

@ -127,4 +127,4 @@ UserData::UserData(const X_USER_DATA_TYPE data_type,
} // namespace xam
} // namespace kernel
} // namespace xe
} // namespace xe

View file

@ -202,4 +202,4 @@ class UserData {
} // namespace kernel
} // namespace xe
#endif
#endif

View file

@ -78,4 +78,4 @@ void Property::WriteToGuest(XUSER_PROPERTY* property) const {
} // namespace xam
} // namespace kernel
} // namespace xe
} // namespace xe

View file

@ -62,4 +62,4 @@ class Property : public UserData {
} // namespace kernel
} // namespace xe
#endif
#endif

View file

@ -124,4 +124,4 @@ class UserTracker {
} // namespace kernel
} // namespace xe
#endif
#endif

View file

@ -69,4 +69,4 @@ DECLARE_XAM_EXPORT1(XamMediaVerificationInject, kNone, kStub);
} // namespace kernel
} // namespace xe
DECLARE_XAM_EMPTY_REGISTER_EXPORTS(Media);
DECLARE_XAM_EMPTY_REGISTER_EXPORTS(Media);

View file

@ -103,4 +103,4 @@ DECLARE_XAM_EXPORT1(XamProfileGetCreationStatus, kNone, kStub);
} // namespace kernel
} // namespace xe
DECLARE_XAM_EMPTY_REGISTER_EXPORTS(Profile);
DECLARE_XAM_EMPTY_REGISTER_EXPORTS(Profile);

View file

@ -71,4 +71,4 @@ class XamState {
} // namespace kernel
} // namespace xe
#endif
#endif

View file

@ -1056,4 +1056,4 @@ DECLARE_XAM_EXPORT1(XamUserGetUserTenure, kUserProfiles, kImplemented);
} // namespace kernel
} // namespace xe
DECLARE_XAM_EMPTY_REGISTER_EXPORTS(User);
DECLARE_XAM_EMPTY_REGISTER_EXPORTS(User);

View file

@ -157,4 +157,4 @@ class GpdInfo : public XdbfFile {
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_XAM_XDBF_GPD_INFO_H_
#endif // XENIA_KERNEL_XAM_XDBF_GPD_INFO_H_

View file

@ -48,4 +48,4 @@ class GpdInfoProfile : public GpdInfo {
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_XAM_XDBF_GPD_INFO_PROFILE_H_
#endif // XENIA_KERNEL_XAM_XDBF_GPD_INFO_PROFILE_H_

View file

@ -57,4 +57,4 @@ class GpdInfoTitle : public GpdInfo {
} // namespace xam
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_XAM_XDBF_GPD_INFO_TITLE_H_
#endif // XENIA_KERNEL_XAM_XDBF_GPD_INFO_TITLE_H_

View file

@ -166,4 +166,4 @@ class XSocket : public XObject {
} // namespace kernel
} // namespace xe
#endif // XENIA_KERNEL_XSOCKET_H_
#endif // XENIA_KERNEL_XSOCKET_H_

View file

@ -90,4 +90,4 @@ class XNotifyWindow final : ImGuiGuestNotification {
} // namespace ui
} // namespace xe
#endif
#endif

View file

@ -49,4 +49,4 @@ class HostNotificationWindow final : ImGuiHostNotification {
} // namespace ui
} // namespace xe
#endif
#endif

View file

@ -132,4 +132,4 @@ class ImGuiNotification {
} // namespace ui
} // namespace xe
#endif
#endif

View file

@ -36,4 +36,4 @@ class RenderdocApi {
} // namespace ui
} // namespace xe
#endif // XENIA_UI_RENDERDOC_API_H_
#endif // XENIA_UI_RENDERDOC_API_H_

View file

@ -36,4 +36,4 @@ VmaAllocator CreateVmaAllocator(const VulkanProvider& provider,
} // namespace ui
} // namespace xe
#endif // XENIA_UI_VULKAN_VULKAN_MEM_ALLOC_H_
#endif // XENIA_UI_VULKAN_VULKAN_MEM_ALLOC_H_

View file

@ -201,4 +201,4 @@ XContentContainerDevice::Result XContentContainerDevice::ReadHeaderAndVerify(
}
} // namespace vfs
} // namespace xe
} // namespace xe

View file

@ -21,4 +21,4 @@ XContentContainerEntry::~XContentContainerEntry() = default;
bool XContentContainerEntry::DeleteEntryInternal(Entry* entry) { return false; }
} // namespace vfs
} // namespace xe
} // namespace xe

View file

@ -52,4 +52,4 @@ class XContentContainerEntry : public Entry {
} // namespace vfs
} // namespace xe
#endif // XENIA_VFS_DEVICES_XCONTENT_CONTAINER_ENTRY_H_
#endif // XENIA_VFS_DEVICES_XCONTENT_CONTAINER_ENTRY_H_

View file

@ -63,4 +63,4 @@ X_STATUS XContentContainerFile::ReadSync(std::span<uint8_t> buffer,
}
} // namespace vfs
} // namespace xe
} // namespace xe

View file

@ -37,4 +37,4 @@ X_STATUS StfsContainerEntry::Open(uint32_t desired_access, File** out_file) {
bool StfsContainerEntry::DeleteEntryInternal(Entry* entry) { return false; }
} // namespace vfs
} // namespace xe
} // namespace xe

View file

@ -39,4 +39,4 @@ class StfsContainerEntry : public XContentContainerEntry {
} // namespace vfs
} // namespace xe
#endif // XENIA_VFS_DEVICES_XCONTENT_CONTAINER_ENTRY_H_
#endif // XENIA_VFS_DEVICES_XCONTENT_CONTAINER_ENTRY_H_

View file

@ -28,4 +28,4 @@ size_t StfsContainerFile::Read(std::span<uint8_t> buffer, size_t offset,
}
} // namespace vfs
} // namespace xe
} // namespace xe

View file

@ -38,4 +38,4 @@ X_STATUS SvodContainerEntry::Open(uint32_t desired_access, File** out_file) {
bool SvodContainerEntry::DeleteEntryInternal(Entry* entry) { return false; }
} // namespace vfs
} // namespace xe
} // namespace xe

View file

@ -45,4 +45,4 @@ class SvodContainerEntry : public XContentContainerEntry {
} // namespace vfs
} // namespace xe
#endif // XENIA_VFS_DEVICES_XCONTENT_SVOD_CONTAINER_ENTRY_H_
#endif // XENIA_VFS_DEVICES_XCONTENT_SVOD_CONTAINER_ENTRY_H_

View file

@ -29,4 +29,4 @@ size_t SvodContainerFile::Read(std::span<uint8_t> buffer, size_t offset,
}
} // namespace vfs
} // namespace xe
} // namespace xe

View file

@ -64,4 +64,4 @@ class File {
} // namespace vfs
} // namespace xe
#endif // XENIA_VFS_FILE_H_
#endif // XENIA_VFS_FILE_H_