djasper added a comment. Passing snippets / single lines from an IDE does not make sense. Don't try to go down this road. clang-format always needs the full file as context.
If you are already in an IDE, that IDE should control the line endings, not clang-format. Write a thin wrapper that changes clang-format's output to use the correct line endings. http://reviews.llvm.org/D19031 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits