]> granicus.if.org Git - clang/commit
clang-format: Enable #include sorting by default.
authorDaniel Jasper <djasper@google.com>
Mon, 16 Nov 2015 12:38:56 +0000 (12:38 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 16 Nov 2015 12:38:56 +0000 (12:38 +0000)
commitd27c92ca6f5fcafbe4c63f6e2bc440f0e86f881a
treead657c37d39a5754cb449d192ced2ad553085e3e
parent09adec2e3ceb8b9a953d543ae049870e6570b579
clang-format: Enable #include sorting by default.

This has seen quite some usage and I am not aware of any issues. Also
add a style option to enable/disable include sorting. The existing
command line flag can from now on be used to override whatever is set
in the style.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253202 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
test/Format/disable-include-sorting.cpp [new file with mode: 0644]
tools/clang-format/ClangFormat.cpp
tools/clang-format/clang-format-sublime.py
tools/clang-format/clang-format.el
tools/clang-format/clang-format.py
unittests/Format/FormatTest.cpp
unittests/Format/SortIncludesTest.cpp