|
From: Nicholas N. <n.n...@gm...> - 2023-04-28 06:08:27
|
On Fri, 28 Apr 2023 at 03:08, Bart Van Assche <bva...@ac...> wrote: > > Can you name one major open source project written in C or C++, that is > not controlled by Mozilla and that enforces the formatting of the code by > rejecting push requests that do not comply with the code style of that > project? > MongoDB <https://github.com/mongodb/mongo/wiki/Server-Code-Style>, Blender <https://wiki.blender.org/wiki/Tools/ClangFormat>, Godot <https://docs.godotengine.org/en/stable/contributing/development/code_style_guidelines.html> all mandate the use of clang-format. (I didn't check whether they enforce this with a pre-push check, but the language in the linked documents makes it clear that auto-formatting is mandatory.) There's no good reason to ignore other languages, though. I know for certain that mandatory autoformatting is ubiquitous in Rust projects, with rustc and Cargo being obvious examples. I suspect there are countless Go and Swift projects that use it too. Nick |