fix codestyle formatting
authorOleg Endo <olegendo@gcc.gnu.org>
Mon, 29 Apr 2019 10:20:33 +0000 (19:20 +0900)
committerOleg Endo <olegendo@gcc.gnu.org>
Mon, 29 Apr 2019 10:20:33 +0000 (19:20 +0900)
kernel/driver.cc
kernel/yosys.cc
kernel/yosys.h

index 8c56d059bed0088f242127a9d1355f4112573393..f273057dd765d4872efcfa3f38a4be92a93fceca 100644 (file)
@@ -529,13 +529,13 @@ int main(int argc, char **argv)
                        log_error("Can't open dependencies file for writing: %s\n", strerror(errno));
                bool first = true;
                for (auto fn : yosys_output_files) {
-                       fprintf(f, "%s%s", first ? "" : " ", escape_filename_spaces (fn).c_str());
+                       fprintf(f, "%s%s", first ? "" : " ", escape_filename_spaces(fn).c_str());
                        first = false;
                }
                fprintf(f, ":");
                for (auto fn : yosys_input_files) {
                        if (yosys_output_files.count(fn) == 0)
-                               fprintf(f, " %s", escape_filename_spaces (fn).c_str());
+                               fprintf(f, " %s", escape_filename_spaces(fn).c_str());
                }
                fprintf(f, "\n");
        }
index 267a7d01cb484da992bf46edc6aa447f196c0af4..20d972150a978239ae96731ef5622b47929a488a 100644 (file)
@@ -482,18 +482,18 @@ void remove_directory(std::string dirname)
 #endif
 }
 
-std::string escape_filename_spaces (const std::string& filename)
+std::string escape_filename_spaces(const std::string& filename)
 {
-  std::string out;
-  out.reserve (filename.size ());
-  for (auto c : filename)
-  {
-    if (c == ' ')
-      out += "\\ ";
-    else
-      out.push_back (c);
-  }
-  return out;
+       std::string out;
+       out.reserve(filename.size());
+       for (auto c : filename)
+       {
+               if (c == ' ')
+                       out += "\\ ";
+               else
+                       out.push_back(c);
+       }
+       return out;
 }
 
 int GetSize(RTLIL::Wire *wire)
index d6490415172f2990b47adc278a5f7cad4b6d6a11..82eb069abb2b2880da86b615cc672f7c906530c4 100644 (file)
@@ -257,7 +257,7 @@ std::string make_temp_dir(std::string template_str = "/tmp/yosys_XXXXXX");
 bool check_file_exists(std::string filename, bool is_exec = false);
 bool is_absolute_path(std::string filename);
 void remove_directory(std::string dirname);
-std::string escape_filename_spaces (const std::string& filename);
+std::string escape_filename_spaces(const std::string& filename);
 
 template<typename T> int GetSize(const T &obj) { return obj.size(); }
 int GetSize(RTLIL::Wire *wire);