Apply clang-format
This commit is contained in:
parent
61c9866a1e
commit
a43eba7011
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue