Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed May 19, 2023
1 parent 9ad270b commit 7be206d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tools/netlist/include/Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#include <iostream>

#ifdef DEBUG
#define DEBUG_PRINT(x) \
if (netlist::Config::getInstance().debugEnabled) { \
std::cerr << x; \
}
# define DEBUG_PRINT(x) \
if (netlist::Config::getInstance().debugEnabled) { \
std::cerr << x; \
}
#else
#define DEBUG_PRINT(x)
# define DEBUG_PRINT(x)
#endif
6 changes: 4 additions & 2 deletions tools/netlist/include/NetlistVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ static std::string getSymbolHierPath(const ast::Symbol& symbol) {
return buffer;
}

static void connectDeclToVar(Netlist& netlist, NetlistNode& varNode, const std::string& hierarchicalPath) {
static void connectDeclToVar(Netlist& netlist, NetlistNode& varNode,
const std::string& hierarchicalPath) {
auto* variableNode = netlist.lookupVariable(hierarchicalPath);
netlist.addEdge(*variableNode, varNode);
DEBUG_PRINT(
fmt::format("Edge decl {} to ref {}\n", variableNode->getName(), varNode.getName()));
}

static void connectVarToDecl(Netlist& netlist, NetlistNode& varNode, const std::string& hierarchicalPath) {
static void connectVarToDecl(Netlist& netlist, NetlistNode& varNode,
const std::string& hierarchicalPath) {
auto* portNode = netlist.lookupVariable(hierarchicalPath);
netlist.addEdge(varNode, *portNode);
DEBUG_PRINT(
Expand Down

0 comments on commit 7be206d

Please sign in to comment.