[clang-format] Regroup #includes into blocks for Google style
authorEric Liu <ioeric@google.com>
Wed, 3 Apr 2019 09:25:16 +0000 (09:25 +0000)
committerEric Liu <ioeric@google.com>
Wed, 3 Apr 2019 09:25:16 +0000 (09:25 +0000)
commit0f4d5f85191c124d13046ceabc04d5861ae7ab6a
treeba2a17fe213cbbf05c3dfcd3af7cbd26a57ea9a6
parentacab05feeeb591b0c3fd265be80e0a01c57f15d8
[clang-format] Regroup #includes into blocks for Google style

Summary:
Regrouping #includes in blocks separated by blank lines when sorting C++ #include
headers was implemented recently, and it has been preferred in Google's C++ style guide:
https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes

Reviewers: sammccall, klimek

Subscribers: cfe-commits

Tags: #clang

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

llvm-svn: 357567
clang/lib/Format/Format.cpp
clang/unittests/Format/CleanupTest.cpp
clang/unittests/Format/SortIncludesTest.cpp