aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/scratchpad.cc
diff options
context:
space:
mode:
authorKrystalDelusion <krystinedawn@yosyshq.com>2022-08-24 10:28:27 +1200
committerKrystalDelusion <krystinedawn@yosyshq.com>2022-08-24 10:40:57 +1200
commit9465b2af95a146f514fc1e0b2d31bc3d9a233fb7 (patch)
tree59001b194c2f573674c37352733427a3ec28a1c1 /passes/cmds/scratchpad.cc
parent029c2785e810fda0ccc5abbb6057af760f2fc6f3 (diff)
downloadyosys-9465b2af95a146f514fc1e0b2d31bc3d9a233fb7.tar.gz
yosys-9465b2af95a146f514fc1e0b2d31bc3d9a233fb7.tar.bz2
yosys-9465b2af95a146f514fc1e0b2d31bc3d9a233fb7.zip
Fitting help messages to 80 character width
Uses the regex below to search (using vscode): ^\t\tlog\("(.{10,}(?<!\\n)|.{81,}\\n)"\); Finds any log messages double indented (which help messages are) and checks if *either* there are is no newline character at the end, *or* the number of characters before the newline is more than 80.
Diffstat (limited to 'passes/cmds/scratchpad.cc')
-rw-r--r--passes/cmds/scratchpad.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/passes/cmds/scratchpad.cc b/passes/cmds/scratchpad.cc
index 015eb97e7..aecc4c17d 100644
--- a/passes/cmds/scratchpad.cc
+++ b/passes/cmds/scratchpad.cc
@@ -49,7 +49,8 @@ struct ScratchpadPass : public Pass {
log(" copy the value of the first identifier to the second identifier.\n");
log("\n");
log(" -assert <identifier> <value>\n");
- log(" assert that the entry for the given identifier is set to the given value.\n");
+ log(" assert that the entry for the given identifier is set to the given\n");
+ log(" value.\n");
log("\n");
log(" -assert-set <identifier>\n");
log(" assert that the entry for the given identifier exists.\n");