diff options
author | Alon Zakai <azakai@google.com> | 2019-04-26 16:59:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 16:59:41 -0700 |
commit | db9124f1de0478dcac525009b6f1589b44a7edd8 (patch) | |
tree | fa26395a0f6cca53cf5cb6e10189f989c5bfa847 /src/support/utilities.h | |
parent | 87636dccd404a340d75acb1d96301581343f29ca (diff) | |
download | binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.gz binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.bz2 binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.zip |
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
Diffstat (limited to 'src/support/utilities.h')
-rw-r--r-- | src/support/utilities.h | 21 |
1 files changed, 8 insertions, 13 deletions
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 <cassert> #include <cstdint> #include <cstring> -#include <memory> #include <iostream> +#include <memory> #include <type_traits> #include "support/bits.h" @@ -53,19 +53,15 @@ inline size_t alignAddr(size_t address, size_t alignment) { } template<typename T, typename... Args> -std::unique_ptr<T> make_unique(Args&&... args) -{ - return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); +std::unique_ptr<T> make_unique(Args&&... args) { + return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); } // For fatal errors which could arise from input (i.e. not assertion failures) class Fatal { - public: - Fatal() { - std::cerr << "Fatal: "; - } - template<typename T> - Fatal &operator<<(T arg) { +public: + Fatal() { std::cerr << "Fatal: "; } + template<typename T> 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 |