Sort the remaining #include lines in include/... and lib/....
authorChandler Carruth <chandlerc@gmail.com>
Tue, 6 Jun 2017 11:49:48 +0000 (11:49 +0000)
committerMaria Guseva <m.guseva@samsung.com>
Tue, 11 Jul 2017 02:46:03 +0000 (11:46 +0900)
commit3e871fbc6c6432130a4196f2ca1b76376fcec1cb
treeb6c3a0534a509b0c4a768d735e660cd646fcb2b8
parent4c137abb5eb31c2638c2ff9caf9cb9438942aeb5
Sort the remaining #include lines in include/... and lib/....

I did this a long time ago with a janky python script, but now
clang-format has built-in support for this. I fed clang-format every
line with a #include and let it re-sort things according to the precise
LLVM rules for include ordering baked into clang-format these days.

I've reverted a number of files where the results of sorting includes
isn't healthy. Either places where we have legacy code relying on
particular include ordering (where possible, I'll fix these separately)
or where we have particular formatting around #include lines that
I didn't want to disturb in this patch.

This patch is *entirely* mechanical. If you get merge conflicts or
anything, just ignore the changes in this patch and run clang-format
over your #include lines in the files.

Sorry for any noise here, but it is important to keep these things
stable. I was seeing an increasing number of patches with irrelevant
re-ordering of #include lines because clang-format was used. This patch
at least isolates that churn, makes it easy to skip when resolving
conflicts, and gets us to a clean baseline (again).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304787 91177308-0d34-0410-b5e6-96231b3b80d8
67 files changed:
lib/Fuzzer/FuzzerDriver.cpp
lib/Fuzzer/FuzzerExtFunctionsDlsymWin.cpp
lib/Fuzzer/FuzzerLoop.cpp
lib/Fuzzer/FuzzerMerge.cpp
lib/Fuzzer/FuzzerMutate.cpp
lib/Fuzzer/FuzzerShmemPosix.cpp
lib/Fuzzer/FuzzerShmemWindows.cpp
lib/Fuzzer/FuzzerTracePC.cpp
lib/Fuzzer/FuzzerTraceState.cpp
lib/Fuzzer/FuzzerUtilWindows.cpp
lib/Fuzzer/afl/afl_driver.cpp
lib/Fuzzer/test/AFLDriverTest.cpp
lib/Fuzzer/test/AbsNegAndConstant64Test.cpp
lib/Fuzzer/test/AbsNegAndConstantTest.cpp
lib/Fuzzer/test/AccumulateAllocationsTest.cpp
lib/Fuzzer/test/BadStrcmpTest.cpp
lib/Fuzzer/test/BufferOverflowOnInput.cpp
lib/Fuzzer/test/CallerCalleeTest.cpp
lib/Fuzzer/test/CleanseTest.cpp
lib/Fuzzer/test/CustomMutatorTest.cpp
lib/Fuzzer/test/CxxStringEqTest.cpp
lib/Fuzzer/test/DSOTestMain.cpp
lib/Fuzzer/test/DivTest.cpp
lib/Fuzzer/test/FourIndependentBranchesTest.cpp
lib/Fuzzer/test/FullCoverageSetTest.cpp
lib/Fuzzer/test/FuzzerUnittest.cpp
lib/Fuzzer/test/LeakTest.cpp
lib/Fuzzer/test/LeakTimeoutTest.cpp
lib/Fuzzer/test/LoadTest.cpp
lib/Fuzzer/test/Memcmp64BytesTest.cpp
lib/Fuzzer/test/MemcmpTest.cpp
lib/Fuzzer/test/NotinstrumentedTest.cpp
lib/Fuzzer/test/NthRunCrashTest.cpp
lib/Fuzzer/test/NullDerefOnEmptyTest.cpp
lib/Fuzzer/test/NullDerefTest.cpp
lib/Fuzzer/test/OneHugeAllocTest.cpp
lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp
lib/Fuzzer/test/OutOfMemoryTest.cpp
lib/Fuzzer/test/RepeatedBytesTest.cpp
lib/Fuzzer/test/RepeatedMemcmp.cpp
lib/Fuzzer/test/ShrinkControlFlowTest.cpp
lib/Fuzzer/test/ShrinkValueProfileTest.cpp
lib/Fuzzer/test/SignedIntOverflowTest.cpp
lib/Fuzzer/test/SimpleCmpTest.cpp
lib/Fuzzer/test/SimpleDictionaryTest.cpp
lib/Fuzzer/test/SimpleHashTest.cpp
lib/Fuzzer/test/SimpleTest.cpp
lib/Fuzzer/test/SimpleThreadedTest.cpp
lib/Fuzzer/test/SingleByteInputTest.cpp
lib/Fuzzer/test/SingleMemcmpTest.cpp
lib/Fuzzer/test/SingleStrcmpTest.cpp
lib/Fuzzer/test/SingleStrncmpTest.cpp
lib/Fuzzer/test/SpamyTest.cpp
lib/Fuzzer/test/StrcmpTest.cpp
lib/Fuzzer/test/StrncmpOOBTest.cpp
lib/Fuzzer/test/StrncmpTest.cpp
lib/Fuzzer/test/StrstrTest.cpp
lib/Fuzzer/test/SwapCmpTest.cpp
lib/Fuzzer/test/Switch2Test.cpp
lib/Fuzzer/test/SwitchTest.cpp
lib/Fuzzer/test/TableLookupTest.cpp
lib/Fuzzer/test/ThreadedLeakTest.cpp
lib/Fuzzer/test/ThreadedTest.cpp
lib/Fuzzer/test/TimeoutEmptyTest.cpp
lib/Fuzzer/test/TimeoutTest.cpp
lib/Fuzzer/test/TraceMallocTest.cpp
lib/Fuzzer/test/TwoDifferentBugsTest.cpp