]> granicus.if.org Git - clang/commit
[clang-format] Support sorting using declarations
authorKrasimir Georgiev <krasimir@google.com>
Wed, 21 Jun 2017 12:03:12 +0000 (12:03 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Wed, 21 Jun 2017 12:03:12 +0000 (12:03 +0000)
commit2b802eb186d5a699e7f16fac42f7107e9f694f5f
tree59840b4537b09f409e514fdb77b0cbec8c96c3ef
parenta86381f7e1838d1d03d263ff65bd89537b52985b
[clang-format] Support sorting using declarations

Summary:
This patch adds UsingDeclarationsSorter, a TokenAnalyzer that sorts consecutive
using declarations.

Reviewers: klimek

Reviewed By: klimek

Subscribers: Typz, djasper, cfe-commits, klimek, mgorny

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305901 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/CMakeLists.txt
lib/Format/Format.cpp
lib/Format/UsingDeclarationsSorter.cpp [new file with mode: 0644]
lib/Format/UsingDeclarationsSorter.h [new file with mode: 0644]
unittests/Format/CMakeLists.txt
unittests/Format/UsingDeclarationsSorterTest.cpp [new file with mode: 0644]