[clang-format] turn on formatting after "clang-format on" while sorting includes
authorRafał Jelonek <71409580+rjelonek@users.noreply.github.com>
Mon, 11 Jan 2021 08:34:01 +0000 (09:34 +0100)
committerMarek Kurdej <marek.kurdej@gmail.com>
Mon, 11 Jan 2021 08:41:15 +0000 (09:41 +0100)
commit7473940bae0f263832456d2c99a4bd606ed0d76e
tree3ee86ef5a0df73587d5fb9ae624120444723c090
parent0c8b748f321736d016da0f6d710778f503a89b51
[clang-format] turn on formatting after "clang-format on" while sorting includes

Formatting is not active after "clang-format on" due to merging lines while formatting is off. Also, use trimmed line. Behaviour with LF is different than with CRLF.

Reviewed By: curdeius, MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D94206
clang/lib/Format/Format.cpp
clang/unittests/Format/SortIncludesTest.cpp