mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[format] Require EOF newline
This commit is contained in:
parent
45ca1c352d
commit
3eef564ff8
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -554,4 +554,4 @@ void AudioMediaPlayer::DeleteDriver() {
|
|||
}
|
||||
|
||||
} // namespace apu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -133,4 +133,4 @@ class XmaContextNew : public XmaContext {
|
|||
} // namespace apu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_APU_XMA_CONTEXT_H_
|
||||
#endif // XENIA_APU_XMA_CONTEXT_H_
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -113,4 +113,4 @@ void BitMap::Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -132,4 +132,4 @@ void InitFeatureFlags() {
|
|||
g_did_initialize_feature_flags = true;
|
||||
}
|
||||
} // namespace amd64
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -36,4 +36,4 @@ struct SimpleFreelist {
|
|||
}
|
||||
void Reset() { head_ = nullptr; }
|
||||
};
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -82,4 +82,4 @@ class split_map {
|
|||
};
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_BASE_SPLIT_MAP_H_
|
||||
#endif // XENIA_BASE_SPLIT_MAP_H_
|
||||
|
|
|
|||
|
|
@ -48,4 +48,4 @@ bool PosixX64CodeCache::Initialize() { return X64CodeCache::Initialize(); }
|
|||
} // namespace x64
|
||||
} // namespace backend
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -122,4 +122,4 @@ void Breakpoint::ForEachHostAddress(
|
|||
}
|
||||
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -133,4 +133,4 @@ class Breakpoint {
|
|||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_CPU_BREAKPOINT_H_
|
||||
#endif // XENIA_CPU_BREAKPOINT_H_
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ std::unique_ptr<StackWalker> StackWalker::Create(
|
|||
}
|
||||
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@ uint32_t Thread::GetCurrentThreadId() {
|
|||
}
|
||||
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -1382,4 +1382,4 @@ ResolveCopyShaderIndex ResolveInfo::GetCopyShader(
|
|||
|
||||
} // namespace draw_util
|
||||
} // namespace gpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -55,4 +55,4 @@ void NullCommandProcessor::InitializeTrace() {}
|
|||
|
||||
} // namespace null
|
||||
} // namespace gpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -39,4 +39,4 @@ std::unique_ptr<CommandProcessor> NullGraphicsSystem::CreateCommandProcessor() {
|
|||
|
||||
} // namespace null
|
||||
} // namespace gpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1434,4 +1434,4 @@ void COMMAND_PROCESSOR::ExecutePacket(uint32_t ptr, uint32_t count) {
|
|||
}
|
||||
} while (reader_.read_count());
|
||||
reader_ = old_reader;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -242,4 +242,4 @@ const char* GetPrimitiveTypeEnglishDescription(xenos::PrimitiveType prim_type) {
|
|||
}
|
||||
} // namespace xenos
|
||||
} // namespace gpu
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -48,4 +48,4 @@ struct TypedGuestPointer {
|
|||
};
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_GUEST_POINTERS_H_
|
||||
#endif // XENIA_GUEST_POINTERS_H_
|
||||
|
|
|
|||
|
|
@ -35,4 +35,4 @@ class SDLHelper {
|
|||
} // namespace helper
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_HELPER_SDL_SDL_HELPER_H_
|
||||
#endif // XENIA_HELPER_SDL_SDL_HELPER_H_
|
||||
|
|
|
|||
|
|
@ -29,4 +29,4 @@ X_STATUS SkylanderPortalEmulated::write(std::vector<uint8_t>& data) {
|
|||
};
|
||||
|
||||
} // namespace hid
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -31,4 +31,4 @@ class SkylanderPortalEmulated final : public SkylanderPortal {
|
|||
} // namespace hid
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -118,4 +118,4 @@ X_STATUS SkylanderPortalLibusb::write(std::vector<uint8_t>& data) {
|
|||
};
|
||||
|
||||
} // namespace hid
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -44,4 +44,4 @@ class SkylanderPortalLibusb final : public SkylanderPortal {
|
|||
} // namespace hid
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ SkylanderPortal::SkylanderPortal() {}
|
|||
SkylanderPortal::~SkylanderPortal() {}
|
||||
|
||||
} // namespace hid
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -37,4 +37,4 @@ class SkylanderPortal {
|
|||
} // namespace hid
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -184,4 +184,4 @@ void SystemManagementController::SetLedState(X_SMC_DATA* smc_message,
|
|||
}
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -108,4 +108,4 @@ static_assert(!IsOriginalXboxTitle(0x4D5308BC)); // 360 Game
|
|||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -281,4 +281,4 @@ std::vector<GameInfoDatabase::Achievement> GameInfoDatabase::GetAchievements()
|
|||
|
||||
} // namespace util
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@ namespace xe::kernel::util {
|
|||
class NativeList;
|
||||
class ObjectTable;
|
||||
} // namespace xe::kernel::util
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -150,4 +150,4 @@ std::queue<std::string> AttributeStringFormatter::GetPresenceFormatSpecifiers()
|
|||
}
|
||||
} // namespace util
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -127,4 +127,4 @@ UserData::UserData(const X_USER_DATA_TYPE data_type,
|
|||
|
||||
} // namespace xam
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -202,4 +202,4 @@ class UserData {
|
|||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -78,4 +78,4 @@ void Property::WriteToGuest(XUSER_PROPERTY* property) const {
|
|||
|
||||
} // namespace xam
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -62,4 +62,4 @@ class Property : public UserData {
|
|||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -124,4 +124,4 @@ class UserTracker {
|
|||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -71,4 +71,4 @@ class XamState {
|
|||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -166,4 +166,4 @@ class XSocket : public XObject {
|
|||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_KERNEL_XSOCKET_H_
|
||||
#endif // XENIA_KERNEL_XSOCKET_H_
|
||||
|
|
|
|||
|
|
@ -90,4 +90,4 @@ class XNotifyWindow final : ImGuiGuestNotification {
|
|||
} // namespace ui
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -49,4 +49,4 @@ class HostNotificationWindow final : ImGuiHostNotification {
|
|||
} // namespace ui
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -132,4 +132,4 @@ class ImGuiNotification {
|
|||
} // namespace ui
|
||||
} // namespace xe
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,4 +36,4 @@ class RenderdocApi {
|
|||
} // namespace ui
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_UI_RENDERDOC_API_H_
|
||||
#endif // XENIA_UI_RENDERDOC_API_H_
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -201,4 +201,4 @@ XContentContainerDevice::Result XContentContainerDevice::ReadHeaderAndVerify(
|
|||
}
|
||||
|
||||
} // namespace vfs
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ XContentContainerEntry::~XContentContainerEntry() = default;
|
|||
bool XContentContainerEntry::DeleteEntryInternal(Entry* entry) { return false; }
|
||||
|
||||
} // namespace vfs
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -63,4 +63,4 @@ X_STATUS XContentContainerFile::ReadSync(std::span<uint8_t> buffer,
|
|||
}
|
||||
|
||||
} // namespace vfs
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -28,4 +28,4 @@ size_t StfsContainerFile::Read(std::span<uint8_t> buffer, size_t offset,
|
|||
}
|
||||
|
||||
} // namespace vfs
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -29,4 +29,4 @@ size_t SvodContainerFile::Read(std::span<uint8_t> buffer, size_t offset,
|
|||
}
|
||||
|
||||
} // namespace vfs
|
||||
} // namespace xe
|
||||
} // namespace xe
|
||||
|
|
|
|||
|
|
@ -64,4 +64,4 @@ class File {
|
|||
} // namespace vfs
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_VFS_FILE_H_
|
||||
#endif // XENIA_VFS_FILE_H_
|
||||
|
|
|
|||
Loading…
Reference in a new issue