Skip to content

Remove LLVM 20 limitation#485

Open
MathewBensonCode wants to merge 1 commit intoJeanPhilippeKernel:developfrom
MathewBensonCode:update-llvm
Open

Remove LLVM 20 limitation#485
MathewBensonCode wants to merge 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

if ($IsLinux) {
'/usr/bin/clang-format'
'/usr/bin/clang-format-21'
'/usr/bin/clang-format-20'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That means we want to remove the clang-format-20 from candidate list

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought to leave it in as a precaution incase someone is still on the older platform. The main idea was to remove the restriction on newer versions but that compatibility with the older version is retained as specified in repoConfig.json

- 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)

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 DevOps

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

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

3 participants