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

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 12 14:33:03 PDT 2016


djasper added a comment.

It has very basic newline detection, but if possible, I'd like to not significantly increase that. Specifically, I don't think it is worth the complexity of additional configuration options that users have to worry about, if it can just do the right thing (which IMO, it currently does other than in a few some rare corner cases).

I am curious: Have you measured what makes clang-format slow if you give it the full file? Is that the file itself or the time clang-format spends on parsing it? Maybe some of the optimizations you now do in your IDE would actually be suited to clang-format itself.


http://reviews.llvm.org/D19031





More information about the cfe-commits mailing list