[Build] Use clang 20 for clang format consistently across Win/Lin

This commit is contained in:
Herman S.
2026-02-15 01:22:52 +09:00
parent a769d70761
commit f9d4dbc8e9
4 changed files with 11 additions and 7 deletions

View File

@@ -53,7 +53,7 @@ jobs:
- name: Setup
id: setup
env:
LLVM_VERSION: 19 # Same as Windows
LLVM_VERSION: 20
run: |
UBUNTU_BASE=$(lsb_release -cs)
#echo "LLVM_VERSION=$LLVM_VERSION" >> "$GITHUB_OUTPUT"

View File

@@ -255,7 +255,10 @@ void ParsedVertexFetchInstruction::Disassemble(StringBuffer* out) const {
static const struct {
const char* name;
} kVertexFetchDataFormats[0xff] = {
#define TYPE(id) {#id}
#define TYPE(id) \
{ \
#id \
}
{0},
{0},
{0},

View File

@@ -632,10 +632,11 @@ using xe::cpu::ExportTag;
xe::kernel::shim::KernelModuleId::module_name, \
ordinals::name>(&name##_entry))>>; \
const auto EXPORT_##module_name##_##name = RegisterExport_##module_name( \
_register_##module_name##_##name ::RegisterExport < &name##_entry, \
tags | (static_cast<xe::cpu::ExportTag::type>( \
xe::cpu::ExportCategory::category) \
<< xe::cpu::ExportTag::CategoryShift) > (#name));
_register_##module_name##_##name ::RegisterExport< \
&name##_entry, tags | (static_cast<xe::cpu::ExportTag::type>( \
xe::cpu::ExportCategory::category) \
<< xe::cpu::ExportTag::CategoryShift)>( \
#name));
#define DECLARE_EMPTY_REGISTER_EXPORTS(module_name, group_name) \
void xe::kernel::module_name::Register##group_name##Exports( \

View File

@@ -124,7 +124,7 @@ void HostExceptionReport::AddString(const char* s) {
}
const char* HostExceptionReport::GetFormattedAddress(uintptr_t address) {
char(&current_buffer)[128] =
char (&current_buffer)[128] =
formatted_addresses[address_format_ring_index++ % 16];
/* if (address >= g_xenia_exe_base &&