[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)
commit9da65aa8585ad3d73cb3495bcd018b4e226cac53
tree7e7cdcc56a7214914191f97b978e9df818ea390f
parent2f27456c826a9266f8f3e9cefafd1f7e08ab51b1
[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

llvm-svn: 316130
clang/lib/Format/UsingDeclarationsSorter.cpp
clang/unittests/Format/UsingDeclarationsSorterTest.cpp