]> granicus.if.org Git - clang/commit
clang-format: Add initial #include sorting capabilities.
authorDaniel Jasper <djasper@google.com>
Wed, 23 Sep 2015 08:30:47 +0000 (08:30 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 23 Sep 2015 08:30:47 +0000 (08:30 +0000)
commit30ddf33877ec91815bee893b05850fc9b87fc09e
treeafec74c096e6ef3fc46c574c031145c9d8f79def
parent9240be34fe1f55cce266ea93c08ea7e804952cc4
clang-format: Add initial #include sorting capabilities.

To implement this nicely, add a function that merges two sets of
replacements that are meant to be done in sequence. This functionality
will also be useful for other applications, e.g. formatting the result
of clang-tidy fixes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248367 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
include/clang/Tooling/Core/Replacement.h
lib/Format/Format.cpp
lib/Format/FormatToken.cpp
lib/Tooling/Core/Replacement.cpp
tools/clang-format/CMakeLists.txt
tools/clang-format/ClangFormat.cpp
tools/clang-format/clang-format.py
unittests/Format/CMakeLists.txt
unittests/Format/SortIncludesTest.cpp [new file with mode: 0644]
unittests/Tooling/RefactoringTest.cpp