]> granicus.if.org Git - clang/commit
Support for CR LF newlines.
authorAlexander Kornienko <alexfh@google.com>
Wed, 11 Sep 2013 12:25:57 +0000 (12:25 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 11 Sep 2013 12:25:57 +0000 (12:25 +0000)
commit73d845cbe26df2fb188e30853efb8ce4b0556afe
tree0fd588dfe7d97f616a01118c19ec664c5671d076
parente4814134df9918ad1414d6f4c6308e0ec0e2fcd2
Support for CR LF newlines.

Summary:
reformat() tries to determine the newline style used in the input
(either LF or CR LF), and uses it for the output. Maybe not every single case is
supported, but at least the bug described in http://llvm.org/PR17182 should be
resolved.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1643

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190519 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
lib/Format/WhitespaceManager.cpp
lib/Format/WhitespaceManager.h
unittests/Format/FormatTest.cpp