Apply clang-format

This commit is contained in:
github action 2021-05-22 10:14:07 +00:00
parent 61c9866a1e
commit a43eba7011
2 changed files with 9 additions and 6 deletions

View File

@ -5408,9 +5408,9 @@ public:
: (m_urandom ? "%f$urandom()" : "%f$random()");
}
virtual string emitC() override {
return m_reset ? "VL_RAND_RESET_%nq(%nw, %P)"
: seedp() ? "VL_RANDOM_SEEDED_%nq%lq(%nw, %P, %li)"
: "VL_RANDOM_%nq(%nw, %P)";
return m_reset
? "VL_RAND_RESET_%nq(%nw, %P)"
: seedp() ? "VL_RANDOM_SEEDED_%nq%lq(%nw, %P, %li)" : "VL_RANDOM_%nq(%nw, %P)";
}
virtual bool cleanOut() const override { return true; }
virtual bool isGateOptimizable() const override { return false; }

View File

@ -649,11 +649,14 @@ def write_macros(filename):
match = re.search(r"ASTGEN_SUPER_(\w+)", line)
if match:
if typen != match.group(1):
print(("V3AstNodes.h:{l} ERROR: class Ast{t} calls wrong superclass " +
"constructor macro (should call ASTGEN_SUPER_{t})")
.format(l=lineno, t=typen))
print((
"V3AstNodes.h:{l} ERROR: class Ast{t} calls wrong superclass "
+
"constructor macro (should call ASTGEN_SUPER_{t})"
).format(l=lineno, t=typen))
sys.exit(1)
######################################################################
# main