Skip to content

fix(sv): reject pragmas without a name - #2061

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-tests-preprocessing/reject-pragmas-without-name--0046a3ff
Oct 25, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-tests-preprocessing/reject-pragmas-without-name--0046a3ff

Conversation

@tignear

@tignear tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

A bare `pragma was accepted by preprocessing even though IEEE 1800-2023
22.11 (Syntax 22-8) requires a pragma name. Reject active pragma directives
whose line contains only whitespace or comments. Preserve named unknown
pragmas and inactive conditional branches.

Cover EOF, whitespace, comments, a following module, inactive branches, and
error propagation through public preprocessing and parsing APIs. The official
sv-tests pragma-invalid case now passes in both state modes because it receives
the intended diagnostic. Update only its two expectation rows; all 90
preprocessing cases now pass in each mode.

Validation: celox-sv-syntax tests (126 passed), analyzer syntax tests (7 passed),
Clippy for both crates with all targets and warnings denied, formatting and
diff checks, and the official pragma-invalid case in both state modes with the
release sv_tests driver.

@tignear

tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(sv): reject pragmas without a name #2061 👈
2 fix(sv-tests): match the dashboard main-test corpus #2067
3 fix(sv)!: enforce class member access visibility #2074
4 fix(sv): validate enum initializer declarations #2075
5 fix(sv)!: read heap strings in formatted scans #2076

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T19:37:20.562310Z a1ce744 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 25, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 25, 2026
@mergify

mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 24 minutes 11 seconds in the queue, with no time running CI.

Reason

The pull request #2061 has been manually updated

Waiting for
  • check-success = Queue validation
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
    • check-success = @github-actions/Rust Test & NAPI Build
All conditions

Requeued — the merge queue status continues in this comment ↓.

Base automatically changed from stack/tignear/fix/sv-tests-preprocessing/execute-preprocessing-cases-instead-skipping-them--ddf52734 to master October 25, 2026 19:17
A bare `pragma was accepted by preprocessing even though IEEE 1800-2023
22.11 (Syntax 22-8) requires a pragma name. Reject active pragma directives
whose line contains only whitespace or comments. Preserve named unknown
pragmas and inactive conditional branches.

Cover EOF, whitespace, comments, a following module, inactive branches, and
error propagation through public preprocessing and parsing APIs. The official
sv-tests pragma-invalid case now passes in both state modes because it receives
the intended diagnostic. Update only its two expectation rows; all 90
preprocessing cases now pass in each mode.

Validation: celox-sv-syntax tests (126 passed), analyzer syntax tests (7 passed),
Clippy for both crates with all targets and warnings denied, formatting and
diff checks, and the official pragma-invalid case in both state modes with the
release sv_tests driver.

Change-Id: I0046a3ff7118b6fbf823c326ede552932d3af5a0
@tignear
tignear force-pushed the stack/tignear/fix/sv-tests-preprocessing/reject-pragmas-without-name--0046a3ff branch from a3f46bb to a1ce744 Compare October 25, 2026 19:36
@tignear

tignear commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial a3f46bb 2026-10-25 19:34 UTC
2 rebase a3f46bb → a1ce744 (rebase only) 2026-10-25 19:34 UTC

@mergify mergify Bot removed the queued Mergify queue entry label Oct 25, 2026
@mergify

mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 33 minutes 24 seconds in the queue, including 31 minutes 55 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on=celox-sim/celox#2061 [⛓️ fix(sv): reject pragmas without a name #2061 [stack]]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify mergify Bot added the queued Mergify queue entry label Oct 25, 2026
@mergify
mergify Bot merged commit 27ab323 into master Oct 25, 2026
24 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-tests-preprocessing/reject-pragmas-without-name--0046a3ff branch October 25, 2026 20:42
@mergify mergify Bot removed the queued Mergify queue entry label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant