[lld] r348652 - clang-format LLVM.h (NFC)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 7 13:48:38 PST 2018
Author: aheejin
Date: Fri Dec 7 13:48:38 2018
New Revision: 348652
URL: http://llvm.org/viewvc/llvm-project?rev=348652&view=rev
Log:
clang-format LLVM.h (NFC)
Summary:
- LLVM style does not indent inside namespaces
- Alphabetize
Reviewers: ruiu
Subscribers: sbc100, llvm-commits
Differential Revision: https://reviews.llvm.org/D55406
Modified:
lld/trunk/include/lld/Common/LLVM.h
Modified: lld/trunk/include/lld/Common/LLVM.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Common/LLVM.h?rev=348652&r1=348651&r2=348652&view=diff
==============================================================================
--- lld/trunk/include/lld/Common/LLVM.h (original)
+++ lld/trunk/include/lld/Common/LLVM.h Fri Dec 7 13:48:38 2018
@@ -22,65 +22,65 @@
#include <utility>
namespace llvm {
- // ADT's.
- class raw_ostream;
- class Error;
- class StringRef;
- class Twine;
- class MemoryBuffer;
- class MemoryBufferRef;
- template<typename T> class ArrayRef;
- template<unsigned InternalLen> class SmallString;
- template<typename T, unsigned N> class SmallVector;
- template<typename T> class ErrorOr;
- template<typename T> class Expected;
-
- namespace object {
- class WasmObjectFile;
- struct WasmSection;
- struct WasmSegment;
- class WasmSymbol;
- }
-
- namespace wasm {
- struct WasmFunction;
- struct WasmGlobal;
- struct WasmGlobalType;
- struct WasmRelocation;
- struct WasmSignature;
- }
-}
+// ADT's.
+class raw_ostream;
+class Error;
+class StringRef;
+class Twine;
+class MemoryBuffer;
+class MemoryBufferRef;
+template <typename T> class ArrayRef;
+template <unsigned InternalLen> class SmallString;
+template <typename T, unsigned N> class SmallVector;
+template <typename T> class ErrorOr;
+template <typename T> class Expected;
+
+namespace object {
+class WasmObjectFile;
+struct WasmSection;
+struct WasmSegment;
+class WasmSymbol;
+} // namespace object
+
+namespace wasm {
+struct WasmFunction;
+struct WasmGlobal;
+struct WasmGlobalType;
+struct WasmRelocation;
+struct WasmSignature;
+} // namespace wasm
+} // namespace llvm
namespace lld {
- // Casting operators.
- using llvm::isa;
- using llvm::cast;
- using llvm::dyn_cast;
- using llvm::dyn_cast_or_null;
- using llvm::cast_or_null;
-
- // ADT's.
- using llvm::raw_ostream;
- using llvm::Error;
- using llvm::StringRef;
- using llvm::Twine;
- using llvm::MemoryBuffer;
- using llvm::MemoryBufferRef;
- using llvm::ArrayRef;
- using llvm::SmallString;
- using llvm::SmallVector;
- using llvm::ErrorOr;
- using llvm::Expected;
-
- using llvm::object::WasmObjectFile;
- using llvm::object::WasmSection;
- using llvm::object::WasmSegment;
- using llvm::object::WasmSymbol;
- using llvm::wasm::WasmFunction;
- using llvm::wasm::WasmGlobal;
- using llvm::wasm::WasmGlobalType;
- using llvm::wasm::WasmRelocation;
- using llvm::wasm::WasmSignature;
+// Casting operators.
+using llvm::cast;
+using llvm::cast_or_null;
+using llvm::dyn_cast;
+using llvm::dyn_cast_or_null;
+using llvm::isa;
+
+// ADT's.
+using llvm::ArrayRef;
+using llvm::Error;
+using llvm::ErrorOr;
+using llvm::Expected;
+using llvm::MemoryBuffer;
+using llvm::MemoryBufferRef;
+using llvm::raw_ostream;
+using llvm::SmallString;
+using llvm::SmallVector;
+using llvm::StringRef;
+using llvm::Twine;
+
+using llvm::object::WasmObjectFile;
+using llvm::object::WasmSection;
+using llvm::object::WasmSegment;
+using llvm::object::WasmSymbol;
+using llvm::wasm::WasmFunction;
+using llvm::wasm::WasmGlobal;
+using llvm::wasm::WasmGlobalType;
+using llvm::wasm::WasmRelocation;
+using llvm::wasm::WasmSignature;
} // end namespace lld.
namespace std {
@@ -90,6 +90,6 @@ public:
return llvm::hash_value(s);
}
};
-}
+} // namespace std
#endif
More information about the llvm-commits
mailing list