From db9124f1de0478dcac525009b6f1589b44a7edd8 Mon Sep 17 00:00:00 2001
From: Alon Zakai <azakai@google.com>
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/path.cpp | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'src/support/path.cpp')

diff --git a/src/support/path.cpp b/src/support/path.cpp
index 322099a95..7ae68d719 100644
--- a/src/support/path.cpp
+++ b/src/support/path.cpp
@@ -27,7 +27,7 @@ namespace Path {
 std::string getPathSeparator() {
   // TODO: use c++17's path separator
   //       http://en.cppreference.com/w/cpp/experimental/fs/path
-#if defined(WIN32) || defined(_WIN32) 
+#if defined(WIN32) || defined(_WIN32)
   return "\\";
 #else
   return "/";
@@ -36,7 +36,8 @@ std::string getPathSeparator() {
 
 std::string getBinaryenRoot() {
   auto* envVar = getenv("BINARYEN_ROOT");
-  if (envVar) return envVar;
+  if (envVar)
+    return envVar;
   return ".";
 }
 
@@ -50,9 +51,7 @@ std::string getBinaryenBinDir() {
   }
 }
 
-void setBinaryenBinDir(std::string dir) {
-  binDir = dir;
-}
+void setBinaryenBinDir(std::string dir) { binDir = dir; }
 
 // Gets the path to a binaryen binary tool, like wasm-opt
 std::string getBinaryenBinaryTool(std::string name) {
@@ -62,4 +61,3 @@ std::string getBinaryenBinaryTool(std::string name) {
 } // namespace Path
 
 } // namespace wasm
-
-- 
cgit v1.2.3