-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Programmability
-
Fully Compatible
-
Programmability 2025-03-31
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
There are a number of known issues with our current version especially with C++20 features like requires. While historically we have done this as part of a toolchain upgrade, there is no reason that it needs to be. We can upgrade clang-format independently from the rest of llvm, and it will be both less risky (should have zero impact on the generated code other than debug info), and be much easier (no worries about incompatible code in third party, and don't need to support our "exotic" platforms).
One possible option for building clang-format would be to fork https://github.com/muttleyxd/clang-tools-static-binaries, remove the versions and tools we don't care about, and add the missing platforms that we do care about (eg linux arm64). That uses github actions to produce a small (~4MB), statically linked binary for clang-format that should work on all linuxes.
- is related to
-
SERVER-102911 v5 clang-format breaks tpl (Cheetah template) files
-
- Backlog
-
-
SERVER-102907 Consider leveraging new features of clang-format
-
- Open
-