]> granicus.if.org Git - clang/commit
clang-format: Teach --sort-includes to interleave #include and #import.
authorNico Weber <nicolasweber@gmx.de>
Wed, 21 Oct 2015 17:13:45 +0000 (17:13 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 21 Oct 2015 17:13:45 +0000 (17:13 +0000)
commitf92e9f779483e040e6b6405dc0036aa53843481f
tree192237882567aed29a1346b0cf46fea292fee6a3
parente1f347b07358abbd4dce855250136a5ba40c8df3
clang-format: Teach --sort-includes to interleave #include and #import.

clang accepts both #include and #import for includes (the latter having an
implicit header guard).  Let clang-format interleave both types if
--sort-includes is passed.  #import is used frequently in Objective-C code.

http://reviews.llvm.org/D13853

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