Rename the tool to lucisv (Language Utility for Coding In SystemVerilog)
This commit is contained in:
1 parent
a284e33110
commit
eeaffafd56
188 files changed
+2825
-2802
No files matched your search
@@ -10,8 +10,8 @@ formattable corpus file refused **14 files**, in exactly two shapes: a comment
|
||||
between a module/instantiation head and the `#(` or `(` that follows it
|
||||
(10 files), and a comment written next to an `(* attribute *)`, which came out
|
||||
on the wrong side of it (4 files). Both are refusals, not corruption — the
|
||||
safety net was right both times — but a file `vfmt` cannot format is a file
|
||||
`vfmt` cannot format. Measuring the fix turned up a third, quieter bug in the
|
||||
safety net was right both times — but a file `lucisv` cannot format is a file
|
||||
`lucisv` cannot format. Measuring the fix turned up a third, quieter bug in the
|
||||
same family: `instantiation`'s single-instance branch never read the instance's
|
||||
`Meta`, so a comment before a lone instance's name was parsed and then dropped
|
||||
(hard invariant #3, visible only because the net refused the file). **Result:
|
||||
@@ -100,7 +100,7 @@ fields could regress into (hard invariant #3).
|
||||
|
||||
**Format fences (`docs/features/format-fences/README.md`): unchanged, and
|
||||
verified so.** `fence::scan_scope` walks item-level leading comments only, so a
|
||||
`// vfmt: off` written in one of the four new bracket positions opens no region
|
||||
`// lucisv: off` written in one of the four new bracket positions opens no region
|
||||
— exactly as it opened none when the same comment used to land in the first
|
||||
parameter port's `meta.leading`. The difference is that such a file is now
|
||||
formatted (fence inert, output verified) instead of refused. `fence.rs`,
|
||||
@@ -113,9 +113,9 @@ nothing nests, root-to-leaf depth is unchanged.
|
||||
**`line_starts_inside_string` is still the one in-string-break definition** —
|
||||
untouched; nothing here parses comment or string text.
|
||||
|
||||
**Not touched, by scope:** `crates/vfmt`, `crates/vfmt_core`,
|
||||
`crates/vfmt_server`, `crates/vlog_linter`, `crates/vlog_semantic`, `editors/`,
|
||||
`tools/`, `corpus/`, `verify.rs`. `vfmt_server`'s tests consume `format_source`
|
||||
**Not touched, by scope:** `crates/lucisv`, `crates/lucisv_core`,
|
||||
`crates/lucisv_server`, `crates/vlog_linter`, `crates/vlog_semantic`, `editors/`,
|
||||
`tools/`, `corpus/`, `verify.rs`. `lucisv_server`'s tests consume `format_source`
|
||||
and stayed green. `cargo fmt --all` rewrote exactly one file, this round's own
|
||||
`tests/verification.rs` (confirmed against `cargo fmt --all --check` beforehand,
|
||||
which listed only that file).
|
||||
@@ -166,7 +166,7 @@ which listed only that file).
|
||||
**The lead's sweep, reproduced and re-run.** One `// marker` line inserted so
|
||||
that it becomes line len/3 (and, separately, line len/2) of every corpus file
|
||||
that formats cleanly unmodified; formatted through
|
||||
`vfmt --stdin-filename <path> -`. A trial is discarded when the insertion breaks
|
||||
`lucisv --stdin-filename <path> -`. A trial is discarded when the insertion breaks
|
||||
the *parse* — a comment dropped into a backslash-continued macro body genuinely
|
||||
changes what the file says, and that is the harness's doing, not the
|
||||
formatter's. Script in the session scratchpad (`sweep.py`); not checked in, as
|
||||
@@ -293,7 +293,7 @@ all.
|
||||
- **Checked the fence question the new bucket-1 fields raise**, since they hold
|
||||
comments the fence scanner never sees. It never saw them before either —
|
||||
`scan_scope` walks item-level `meta.leading` only, and the comment used to
|
||||
live in a *parameter port's* meta. So a `// vfmt: off` in bracket position is
|
||||
live in a *parameter port's* meta. So a `// lucisv: off` in bracket position is
|
||||
inert now and was inert before; the change is that the file formats instead
|
||||
of refusing. Written up in Handshakes rather than left as a surprise.
|
||||
- **Every fixed shape is 3-pass stable**, checked outside `cargo test` on all
|
||||
@@ -312,7 +312,7 @@ all.
|
||||
does. A comment parsed and never printed is hard invariant #3; it only ever
|
||||
showed up as a refusal. Fixed through the same `bracket_comments` helper, and
|
||||
pinned by its own rejection test. Six more corpus positions, zero test churn.
|
||||
- **Did not touch** `verify.rs` (`git diff --quiet` exits 0), `crates/vfmt*`,
|
||||
- **Did not touch** `verify.rs` (`git diff --quiet` exits 0), `crates/lucisv*`,
|
||||
`crates/vlog_linter`, `crates/vlog_semantic`, `editors/`, `tools/` or
|
||||
`corpus/`. Did not run `git commit`/`git push`.
|
||||
|
||||
@@ -443,7 +443,7 @@ output and exit code on every one.
|
||||
`crates/vlog_formatter/tests/cases/comments.cases`,
|
||||
`crates/vlog_formatter/tests/verification.rs`,
|
||||
`crates/vlog_parser/src/{ast,parser}.rs`, plus this README). `crates/
|
||||
vfmt_server/` and `crates/vlog_linter/` show as untracked in `git status`
|
||||
lucisv_server/` and `crates/vlog_linter/` show as untracked in `git status`
|
||||
but predate this feature (present in the session's initial git-status
|
||||
snapshot) — not touched by this diff. README has all seven required
|
||||
sections; Review is empty, left alone. `TODO.md` §2 note read honest: it
|
||||
|
||||
Reference in new issue
Block a user