-
-
Notifications
You must be signed in to change notification settings - Fork 948
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
Improve clang-format to check newlines at end of file #2127
Comments
The latest version of clang-format is 19, the latest version in the Ubuntu 24.04 repositories (which we use for CI) is 18, and the latest version in the Debian stable repos is 16 (just for a more conservative comparison). I'd be quite happy to go straight for 18, but I really don't know which versions other developers are using. If anyone is using a version of clang-format below 18, could you let me know here, along with which OS and version? Thanks! |
Ubuntu 22.04 has clang-format-14 https://packages.ubuntu.com/jammy/clang-format Clang-format-16 is available since Ubuntu 23.10 Just a data point, although I'm on arch so I have newer packages available |
In other words, the option we want is supported by Debian stable, Ubuntu LTS and anything newer right? So in that case I think we're safe to enable it Do we even specify a minimum clang format version anywhere (in code rather than docs)? If so I think it shouldn't be bumped past Debian stable (16) unless we want some newer feature |
We do specify a minimum version in the clang-format commit hook, so I'll just bump to 16 for now. |
Verification
Introduce the issue
I regularly criticize missing newline at end of file resulting in stop symbol of GitHub
@mark9064 suggested to let
clang-format
do this check #2107 (comment)@FintasticMan adds info on which
clang-format
version we could use #2107 (comment)Preferred solution
clang-format
checks the missing newline at end of file in CIVersion
main
The text was updated successfully, but these errors were encountered: