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
//
//===----------------------------------------------------------------------===//
-#include "Chunks.h"
#include "DLL.h"
+#include "Chunks.h"
#include "llvm/Object/COFF.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Path.h"
#include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
#include <algorithm>
#include <memory>
-
#include <future>
using namespace llvm;
#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"
#include "SyntheticSections.h"
#include "Target.h"
#include "lld/Common/Memory.h"
-
#include "llvm/Support/Endian.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#define LLD_ELF_AARCH64ERRATAFIX_H
#include "lld/Common/LLVM.h"
-
#include <map>
#include <vector>
#include "llvm/Support/CachePruning.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Endian.h"
-
#include <vector>
namespace lld {
#include "InputSection.h"
#include "Relocations.h"
#include "Strings.h"
-
#include "lld/Common/ErrorHandler.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/Object/ELF.h"
#include "Config.h"
#include "lld/Common/ErrorHandler.h"
-
#include "lld/Common/LLVM.h"
#include "lld/Common/Reproduce.h"
#include "llvm/ADT/CachedHashString.h"
#include "llvm/Object/ELF.h"
#include "llvm/Object/IRObjectFile.h"
#include "llvm/Support/Threading.h"
-
#include <map>
namespace llvm {
#include "InputSection.h"
#include "LinkerScript.h"
#include "Relocations.h"
-
#include "lld/Common/LLVM.h"
#include "llvm/MC/StringTableBuilder.h"
#include "llvm/Object/ELF.h"
#include "Target.h"
#include "Thunks.h"
#include "lld/Common/Memory.h"
-
#include "llvm/Support/Endian.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include "SyntheticSections.h"
#include "Target.h"
#include "Writer.h"
-
#include "lld/Common/ErrorHandler.h"
#include "lld/Common/Strings.h"
#include "llvm/ADT/STLExtras.h"
#include "InputSection.h"
#include "Strings.h"
-
#include "lld/Common/LLVM.h"
#include "llvm/Object/Archive.h"
#include "llvm/Object/ELF.h"
//===----------------------------------------------------------------------===//
#include "InputFiles.h"
-
#include "Config.h"
#include "InputChunks.h"
#include "SymbolTable.h"
#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;
namespace wasm {
void markLive();
-}
+
+} // namespace wasm
} // namespace lld
#endif // LLD_WASM_MARKLIVE_H
//===----------------------------------------------------------------------===//
#include "OutputSections.h"
-
#include "InputChunks.h"
#include "InputFiles.h"
#include "OutputSegment.h"
//===----------------------------------------------------------------------===//
#include "SymbolTable.h"
-
#include "Config.h"
#include "InputChunks.h"
#include "WriterUtils.h"
#include "InputFiles.h"
#include "Symbols.h"
-
#include "llvm/ADT/CachedHashString.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/Support/raw_ostream.h"
//===----------------------------------------------------------------------===//
#include "Symbols.h"
-
#include "Config.h"
#include "InputChunks.h"
#include "InputFiles.h"
//===----------------------------------------------------------------------===//
#include "Writer.h"
-
-#include "llvm/ADT/DenseSet.h"
#include "Config.h"
#include "InputChunks.h"
#include "OutputSections.h"
#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"
//===----------------------------------------------------------------------===//
#include "WriterUtils.h"
-
#include "lld/Common/ErrorHandler.h"
-
#include "llvm/Support/Debug.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/LEB128.h"