-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
maintenanceBackground workBackground work
Description
Verification
- I searched for similar issues (including closed issues) and found none was relevant.
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)
I've just checked, and the option to insert trailing newlines has been added in clang-format 16. Last time I updated it was 14, so it wasn't included in that. I'll do a upgrade to a newer version soon.
What version do you think is reasonable to update to? Unfortunately, I don't think that clang-format ignores unrecognised options, so it'll be a minimum version for anyone using it.
Preferred solution
clang-format checks the missing newline at end of file in CI
Version
main
FintasticMan
Metadata
Metadata
Assignees
Labels
maintenanceBackground workBackground work