[PATCH] D19031: clang-format: Flexible line endings

Cameron via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 12 13:52:50 PDT 2016


cameron314 added a comment.

ClangFormat still needs to know what kind of newline to insert when reformatting code.
It already had the "auto-detect newline" behaviour; this patch simply allows the auto-detection to be overridden with an explicit setting. This is important for short files that have no newlines to start with, in which case the autodetection cannot work.


http://reviews.llvm.org/D19031





More information about the cfe-commits mailing list