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
Make clang-format play nice with other line endings #17556
Comments
That works fine here, results in: #define sha1macro(func, val) Can you provide more details? Which version of clang-format are you running, which platform are you running on, etc.? One thought, does that file contain windows line endings ()? |
Linux, clang r190394
Yes it does and if I convert those newlines into Unix one clang-format works fine. |
Most of the issues related to CR LF line endings are fixed in r190519. Starting from this revision, clang-format should correctly handle both LF and CR LF line endings, and output replacements with the line ending style prevalent in the input file. |
*** Bug llvm/llvm-bugzilla-archive#17269 has been marked as a duplicate of this bug. *** |
mentioned in issue llvm/llvm-bugzilla-archive#17269 |
Extended Description
sha1.cpp attached.
The text was updated successfully, but these errors were encountered: