From: Sahand Kashani Date: Mon, 23 Mar 2020 08:01:17 +0000 (+0100) Subject: Indentation conventions X-Git-Tag: working-ls180~630^2~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f48fb26c0f87b2310ed1ae0ce2bfeaeb3a1ae4ae;p=yosys.git Indentation conventions --- diff --git a/backends/firrtl/firrtl.cc b/backends/firrtl/firrtl.cc index a4bfe8549..de7d2275b 100644 --- a/backends/firrtl/firrtl.cc +++ b/backends/firrtl/firrtl.cc @@ -107,10 +107,10 @@ std::string getFileinfo(const dict &attributes) } } - std::string fileinfo_str = fileinfo.str(); - fileinfo_str.erase(std::remove(fileinfo_str.begin(), fileinfo_str.end(), '\"'), fileinfo_str.end()); + std::string fileinfo_str = fileinfo.str(); + fileinfo_str.erase(std::remove(fileinfo_str.begin(), fileinfo_str.end(), '\"'), fileinfo_str.end()); - return fileinfo_str; + return fileinfo_str; } // Get a port direction with respect to a specific module. @@ -263,9 +263,10 @@ struct FirrtlWorker if (this->width == 0) { log_error("Memory %s has zero width%s\n", this->name.c_str(), this->atLine()); } - } + } + // We need a default constructor for the dict insert. - memory() : pCell(0), read_latency(0), write_latency(1), init_file(""), init_file_srcFileSpec(""){} + memory() : pCell(0), read_latency(0), write_latency(1), init_file(""), init_file_srcFileSpec(""){} const char *atLine() { if (srcLine == "") {