]> granicus.if.org Git - clang/commit
[clang-format] Add option to group multiple #include blocks when sorting includes
authorKrasimir Georgiev <krasimir@google.com>
Mon, 27 Nov 2017 13:23:45 +0000 (13:23 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Mon, 27 Nov 2017 13:23:45 +0000 (13:23 +0000)
commitd2087527b959aeeb163ae5cf540e170ea00c0f22
tree466d941bcfb41d166ea1a0255d34ee6d4bd5c8fd
parent7e7c081cf80d2010868bbb1d9985bab28fc7175b
[clang-format] Add option to group multiple #include blocks when sorting includes

Summary:
This patch allows grouping multiple #include blocks together and sort all includes as one big block.
Additionally, sorted includes can be regrouped after sorting based on configured categories.

Contributed by @KrzysztofKapusta!

Reviewers: krasimir

Reviewed By: krasimir

Subscribers: cfe-commits, klimek

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319024 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
unittests/Format/SortIncludesTest.cpp