Skip to content

Remove LLVM 20 limitation#485

Merged
JeanPhilippeKernel merged 1 commit intoJeanPhilippeKernel:developfrom
MathewBensonCode:update-llvm
Mar 31, 2026
Merged

Remove LLVM 20 limitation#485
JeanPhilippeKernel merged 1 commit intoJeanPhilippeKernel:developfrom
MathewBensonCode:update-llvm

Conversation

@MathewBensonCode
Copy link
Copy Markdown
Contributor

  • clang-format ignore on CoroutineScheduler.h and VulkanDevice.h for operator bool()
  • update ubuntu CI workflow to use version 21.

Closes #484

- Isolate code that has changed in behaviour since version 20 and use
  clang-format off comments to ignore
  - CoroutineScheduler.h and VulkanDevice.h for
    operator bool()
  - VulkanDevice.cpp for re-aligned declarations
  - RenderPasses.cpp for re-aligned function signature
- update CI workflows for all OSs to use version 22
@MathewBensonCode
Copy link
Copy Markdown
Contributor Author

Updated this to support llvm version 22, which is now the current stable version.

I also all the CIs including the clang-format steps to use clang-format version 22.

I isolated the few areas which have issues in the newer versions by excluding them using // clang-format off calls.

This means that we should be able to work with any version from 20 upto 22, and even older(but haven't tested those)

@JeanPhilippeKernel
Copy link
Copy Markdown
Owner

the spreading usage of // clang-format off proves that we might need soon to raise the bar of minimal version of clang-format we want to support - let's track it with an issue for later.

@JeanPhilippeKernel JeanPhilippeKernel self-requested a review March 31, 2026 03:45
@JeanPhilippeKernel JeanPhilippeKernel added area-window Work on Window system area-macOS Work on macOS system labels Mar 31, 2026
@JeanPhilippeKernel JeanPhilippeKernel merged commit e07ed95 into JeanPhilippeKernel:develop Mar 31, 2026
21 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in ZEngine Board Mar 31, 2026
@MathewBensonCode MathewBensonCode deleted the update-llvm branch March 31, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-linux Work on Linux system area-macOS Work on macOS system area-window Work on Window system DevOps

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Remove LLVM 20 limitation, LLVM 21 current default on many platforms

2 participants