Skip to content

Upstream sync for libfstwriter (refactored for Verilator)#6

Merged
rfuest merged 3 commits intogtkwave:mainfrom
johnjohnlin:main
Apr 22, 2026
Merged

Upstream sync for libfstwriter (refactored for Verilator)#6
rfuest merged 3 commits intogtkwave:mainfrom
johnjohnlin:main

Conversation

@johnjohnlin
Copy link
Copy Markdown
Contributor

Hello @rfuest,

I’m currently integrating libfstwriter into Verilator (verilator/verilator#6992). To meet their requirements, I’ve performed a substantial refactor to align the code with Verilator style.

The changes have already been thoroughly reviewed by @gezalore. Since libfstwriter is hosted here under GTKWave, hw wants to merge these updates back to ensure this repository remains the "source of truth" and avoid long-term code divergence.

I understand this PR is large; please let me know if you need more context on specific parts of the implementation.

Best regards,
Yu-Sheng Lin

- Remove inline functions defined+declared in class (it is inlined by spec)
- Add MSC_VER_ macro
- Change "and or not" to "&& || !!"
- exception -> abort
- Remove using namespace std
- Reduce abuse of auto
- Use {} style constructor calls/initialization
- Remove TODO API.
Copy link
Copy Markdown
Contributor

@rfuest rfuest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did take a quick look at the PR and couldn't find any obvious issues. I trust the review from the Verilator PR and will merge this.

@rfuest rfuest merged commit ff8b0a2 into gtkwave:main Apr 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants