-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Everywhere: Reformat using clang-format 19 #25075
base: master
Are you sure you want to change the base?
Conversation
This also fixes an accidental install-remove-install dance on Lagom jobs.
5279e78
to
c51410b
Compare
The next major version of LLVM brings new formatting for pointers-to-members, inline assembly blocks and some empty blocks. The commit was generated using ``` find AK Kernel Ladybird Meta Tests Userland \ \( -iname '*.cpp' -or -iname '*.h' \) \ -exec Toolchain/Local/clang/bin/clang-format -i '{}' ';' ``` with a few manual corrections.
c51410b
to
a25a5e8
Compare
I feel like we might want to hold off on this. Apart from the one fix in the last commit, the changes mostly look like changes that we may want to revert again once |
Hmm, @ADKaster and @spholz liked new pointer-to-member formatting and assembly formatting, respectively. |
SideNote: still waiting for clang format to allow us to enable "align consecutive assignments" for enums only |
pointer-to-member is something I hadn't seen until now, and I generally don't do much with inline assembly, so I don't really have a strong opinion on those two (I just assumed that assembly looked a bit nicer when aligned). However, for the
|
See discussion on Discord |
Re So I think if we do want to reformat every 6 months, then this looks like a fairly clean reformat as-is. |
Maybe it'd be nice to omit LibWeb here. That's mostly cherry-picks at the moment, and this here will make those even harder. |
We run CI to test changes, so what's the point of doing that locally?