Consistent (non) use of empty lines in include blocks
authorSam Clegg <sbc@chromium.org>
Tue, 20 Feb 2018 21:53:18 +0000 (21:53 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 20 Feb 2018 21:53:18 +0000 (21:53 +0000)
The profailing style in lld seem to be to not include such empty lines.
Clang-tidy/clang-format seem to handle this just fine.

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

llvm-svn: 325629

21 files changed:
lld/COFF/DLL.cpp
lld/COFF/Driver.cpp
lld/COFF/MapFile.cpp
lld/ELF/AArch64ErrataFix.cpp
lld/ELF/AArch64ErrataFix.h
lld/ELF/Config.h
lld/ELF/EhFrame.cpp
lld/ELF/InputFiles.h
lld/ELF/OutputSections.h
lld/ELF/Relocations.cpp
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/wasm/InputFiles.cpp
lld/wasm/InputFiles.h
lld/wasm/MarkLive.h
lld/wasm/OutputSections.cpp
lld/wasm/SymbolTable.cpp
lld/wasm/SymbolTable.h
lld/wasm/Symbols.cpp
lld/wasm/Writer.cpp
lld/wasm/WriterUtils.cpp

index 195839139670b3e09443321c5213dbb54d5db0b1..464abe8e0894f83e8e51f2d280109d6f91853bb8 100644 (file)
@@ -18,8 +18,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "Chunks.h"
 #include "DLL.h"
+#include "Chunks.h"
 #include "llvm/Object/COFF.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Path.h"
index 3a26e61b727929cc4b972ca26ae81fb0baae79ee..9a78987e80ce6e26c5a5e7ca0452f28618c1546d 100644 (file)
@@ -38,7 +38,6 @@
 #include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
 #include <algorithm>
 #include <memory>
-
 #include <future>
 
 using namespace llvm;
index 717ed3419ea5d01e4503fafa0e12119bbb6dbbdc..d475641533a0b0cb35c990b09d59b0f638acb11e 100644 (file)
@@ -23,7 +23,6 @@
 #include "SymbolTable.h"
 #include "Symbols.h"
 #include "Writer.h"
-
 #include "lld/Common/ErrorHandler.h"
 #include "llvm/Support/Parallel.h"
 #include "llvm/Support/raw_ostream.h"
index d16873ec988694e4eb2c35a66dfcf7c2ddf4ac32..50685c1269db96fe8e5138376c544632405d5347 100644 (file)
@@ -39,7 +39,6 @@
 #include "SyntheticSections.h"
 #include "Target.h"
 #include "lld/Common/Memory.h"
-
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
index 6c100f25d8afbceef6afd328de8a3bbb6a19973b..edd154d4cab3305b022bf71134d3b3e31995f761 100644 (file)
@@ -11,7 +11,6 @@
 #define LLD_ELF_AARCH64ERRATAFIX_H
 
 #include "lld/Common/LLVM.h"
-
 #include <map>
 #include <vector>
 
index 9e3224099ccb3a2515d1e393a8a353f414bda355..77d10de46d32edfcd5b2de92745f12e770809d2b 100644 (file)
@@ -18,7 +18,6 @@
 #include "llvm/Support/CachePruning.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Endian.h"
-
 #include <vector>
 
 namespace lld {
index 62abc3973e7e2f98ffcf9d61b0cc9f60ff9dc3b0..7a9adc95c3cd5fde4630e0fa0da114fa8c9675e8 100644 (file)
@@ -21,7 +21,6 @@
 #include "InputSection.h"
 #include "Relocations.h"
 #include "Strings.h"
-
 #include "lld/Common/ErrorHandler.h"
 #include "llvm/BinaryFormat/Dwarf.h"
 #include "llvm/Object/ELF.h"
index 5a1aeab314f9dc671165d541d7e7f434dc88559d..e21862389aea274f148e95c22b8e048c46df9a2f 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "Config.h"
 #include "lld/Common/ErrorHandler.h"
-
 #include "lld/Common/LLVM.h"
 #include "lld/Common/Reproduce.h"
 #include "llvm/ADT/CachedHashString.h"
@@ -23,7 +22,6 @@
 #include "llvm/Object/ELF.h"
 #include "llvm/Object/IRObjectFile.h"
 #include "llvm/Support/Threading.h"
-
 #include <map>
 
 namespace llvm {
index 4d7c4a32f3b46f5849f0d6d7c9953fcdff6983dc..2e2f7d3c9a3ba283284d6a24317b17e36b9c72aa 100644 (file)
@@ -14,7 +14,6 @@
 #include "InputSection.h"
 #include "LinkerScript.h"
 #include "Relocations.h"
-
 #include "lld/Common/LLVM.h"
 #include "llvm/MC/StringTableBuilder.h"
 #include "llvm/Object/ELF.h"
index 882c172905b89156efbe1a44fd625815e0642237..66b9c88b4fbe8e4bbfdb3f16fe4a3e30bed06cdf 100644 (file)
@@ -52,7 +52,6 @@
 #include "Target.h"
 #include "Thunks.h"
 #include "lld/Common/Memory.h"
-
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
index 373d04021871dd9711426279c282340a3cc1f90e..58ed899c73e3225ccd926656b89414debcb35361 100644 (file)
@@ -14,7 +14,6 @@
 #include "SyntheticSections.h"
 #include "Target.h"
 #include "Writer.h"
-
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Strings.h"
 #include "llvm/ADT/STLExtras.h"
index ea284777b9b9f6a19c9f2761ada3b76ba6e3a8b8..437d91d6dd3fd9585fd1718a8a161516486a72f6 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "InputSection.h"
 #include "Strings.h"
-
 #include "lld/Common/LLVM.h"
 #include "llvm/Object/Archive.h"
 #include "llvm/Object/ELF.h"
index 0624634c32798945d37b8cfa1c0a754cab517903..be806c50ef3bec25afa4c0abaafe5055ab475608 100644 (file)
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "InputFiles.h"
-
 #include "Config.h"
 #include "InputChunks.h"
 #include "SymbolTable.h"
index b31b356678d51afe35f2420ef53946455e17b8db..8d49d2028aae530cd47eaf357c00834dae459a95 100644 (file)
 #ifndef LLD_WASM_INPUT_FILES_H
 #define LLD_WASM_INPUT_FILES_H
 
+#include "Symbols.h"
 #include "lld/Common/LLVM.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/Object/Archive.h"
 #include "llvm/Object/Wasm.h"
 #include "llvm/Support/MemoryBuffer.h"
-
-#include "Symbols.h"
-
 #include <vector>
 
 using llvm::object::Archive;
index 6fc05635ed76553b035eee4c17ff45a94d18500c..0b58f153ce458cb6e1ea682c6028019b7e125a61 100644 (file)
@@ -14,7 +14,8 @@ namespace lld {
 namespace wasm {
 
 void markLive();
-}
+
+} // namespace wasm
 } // namespace lld
 
 #endif // LLD_WASM_MARKLIVE_H
index ed50a3c04e4d905ce37967c15ebf497ab38a313e..35adc807dae61030d108b3f34e2ce88c014f6d55 100644 (file)
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "OutputSections.h"
-
 #include "InputChunks.h"
 #include "InputFiles.h"
 #include "OutputSegment.h"
index c83e91926d3d542992bc216e4de431c6cea7e07d..408b5addf8ea18ed019955ffd768b37d3c6cf983 100644 (file)
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "SymbolTable.h"
-
 #include "Config.h"
 #include "InputChunks.h"
 #include "WriterUtils.h"
index cc0c776c523d42d90682a366d95b22ee96c4d2bf..523da4d0b77916f01b01e9e2577fffcc5836d164 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "InputFiles.h"
 #include "Symbols.h"
-
 #include "llvm/ADT/CachedHashString.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Support/raw_ostream.h"
index b0c9d18e81fa83fe7a8ce13f1300c4e2312d2f91..237534ea95106be06f8cd99882df204b7cd43b0d 100644 (file)
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "Symbols.h"
-
 #include "Config.h"
 #include "InputChunks.h"
 #include "InputFiles.h"
index b4e034a6b1683923a90cd44edb54d5ca5ae88ec2..a03fc12bd6dadd1b359f33e5003122425fdda108 100644 (file)
@@ -8,8 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "Writer.h"
-
-#include "llvm/ADT/DenseSet.h"
 #include "Config.h"
 #include "InputChunks.h"
 #include "OutputSections.h"
@@ -19,6 +17,7 @@
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Memory.h"
 #include "lld/Common/Threads.h"
+#include "llvm/ADT/DenseSet.h"
 #include "llvm/Support/FileOutputBuffer.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/FormatVariadic.h"
index a4537e436d1720b75cd2f3be9a163ccf6121d0a3..c82a36abc19a4c10c24d56e9ba46e2295345fad5 100644 (file)
@@ -8,9 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "WriterUtils.h"
-
 #include "lld/Common/ErrorHandler.h"
-
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/EndianStream.h"
 #include "llvm/Support/LEB128.h"