[clang-format] Sort whole block of using declarations while partially formatting
authorKrasimir Georgiev <krasimir@google.com>
Wed, 18 Oct 2017 22:13:25 +0000 (22:13 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Wed, 18 Oct 2017 22:13:25 +0000 (22:13 +0000)
commitac9a20e9574e836e0873a41e1c79bbbaf9869a93
tree7f01ad48efdf5989ad9ac10d47c7d50135f31a99
parent070fec4a8362bfce136b8cd82a3977183b2394ee
[clang-format] Sort whole block of using declarations while partially formatting

Summary:
This patch enables sorting the full block of using declarations when
some line is affected.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D39024

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316130 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UsingDeclarationsSorter.cpp
unittests/Format/UsingDeclarationsSorterTest.cpp