From f48fb26c0f87b2310ed1ae0ce2bfeaeb3a1ae4ae Mon Sep 17 00:00:00 2001 From: Sahand Kashani Date: Mon, 23 Mar 2020 09:01:17 +0100 Subject: Indentation conventions --- backends/firrtl/firrtl.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'backends') 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 == "") { -- cgit v1.2.3