From db9124f1de0478dcac525009b6f1589b44a7edd8 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 26 Apr 2019 16:59:41 -0700 Subject: Apply format changes from #2048 (#2059) Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048 --- src/support/utilities.h | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'src/support/utilities.h') diff --git a/src/support/utilities.h b/src/support/utilities.h index 07a163ef9..71d8ce2e0 100644 --- a/src/support/utilities.h +++ b/src/support/utilities.h @@ -22,8 +22,8 @@ #include #include #include -#include #include +#include #include #include "support/bits.h" @@ -53,19 +53,15 @@ inline size_t alignAddr(size_t address, size_t alignment) { } template -std::unique_ptr make_unique(Args&&... args) -{ - return std::unique_ptr(new T(std::forward(args)...)); +std::unique_ptr make_unique(Args&&... args) { + return std::unique_ptr(new T(std::forward(args)...)); } // For fatal errors which could arise from input (i.e. not assertion failures) class Fatal { - public: - Fatal() { - std::cerr << "Fatal: "; - } - template - Fatal &operator<<(T arg) { +public: + Fatal() { std::cerr << "Fatal: "; } + template Fatal& operator<<(T arg) { std::cerr << arg; return *this; } @@ -78,7 +74,6 @@ class Fatal { } }; +} // namespace wasm -} // namespace wasm - -#endif // wasm_support_utilities_h +#endif // wasm_support_utilities_h -- cgit v1.2.3