-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Clang-Format removes empty line at end of file #56054
Labels
Comments
@llvm/issue-subscribers-clang-format |
Can you give a reproducer in which clang-format removes the existing empty line, please? |
I have this problem too: |
I also have this problem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For C and C++ an empty line at the end of each file (header and implementation) is mandatory.
clang format does not add this new line. Moreover, clang-format removes existing empty line at the and of files.
This leads to compiler warnings.
The text was updated successfully, but these errors were encountered: