[Lint/CI] Use LLVM v19 for Linux & Lint

This commit is contained in:
Adrian 2025-06-20 23:05:29 +01:00 committed by Radosław Gliński
parent f91be22742
commit fd1abfe6aa
4 changed files with 7 additions and 8 deletions

View file

@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@main
- name: Setup
run: |
LLVM_VERSION=18 # Same as Windows
LLVM_VERSION=19 # Same as Windows
UBUNTU_BASE=jammy
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-add-repository "deb http://apt.llvm.org/${UBUNTU_BASE}/ llvm-toolchain-${UBUNTU_BASE}-$LLVM_VERSION main"

View file

@ -629,7 +629,7 @@ static constexpr uint32_t PregenerateUint32Div(uint32_t _denom,
int s;
} magu{};
magu.a = 0;
nc = -1 - ((uint32_t) - (int32_t)d) % d;
nc = -1 - ((uint32_t)-(int32_t)d) % d;
p = 31;
q1 = 0x80000000 / nc;
r1 = 0x80000000 - q1 * nc;

View file

@ -122,7 +122,7 @@ static void signal_handler(int signal, siginfo_t* info, void* context);
void install_signal_handler(SignalType type) {
if (signal_handler_installed[static_cast<size_t>(type)]) return;
struct sigaction action {};
struct sigaction action{};
action.sa_flags = SA_SIGINFO;
action.sa_sigaction = signal_handler;
sigemptyset(&action.sa_mask);

View file

@ -631,11 +631,10 @@ 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( \