Skip to content

Fix position of comments to not break const_generator.py - #2906

Merged
Rot127 merged 1 commit into
capstone-engine:nextfrom
historicattle:const
Apr 28, 2026
Merged

Fix position of comments to not break const_generator.py#2906
Rot127 merged 1 commit into
capstone-engine:nextfrom
historicattle:const

Conversation

@historicattle

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description
Ran the const_generator.py to generate python bindings.

Changed the comment placement in a few places because the generator wasn't able to parse them and it resulted in the RHS being left blank

Test plan
No tests added. All tests pass

Closing issues
none

@github-actions github-actions Bot added ARM Arch M68K Arch MOS65XX Arch RISCV Arch Sparc Arch Python Bindings labels Apr 27, 2026
@historicattle historicattle changed the title Update const files of python bindings for riscv Update riscv_const.py Apr 27, 2026
@historicattle
historicattle force-pushed the const branch 2 times, most recently from 7af2eb3 to a6101ec Compare April 27, 2026 10:44
Signed-off-by: Naren Sirigere <sirigere.naren@gmail.com>
@historicattle historicattle changed the title Update riscv_const.py Fix position of comments to not break const_generator.py Apr 27, 2026
@historicattle

Copy link
Copy Markdown
Contributor Author

The changes needed to be done to the generator for riscv is best to be done in a separate PR

@historicattle
historicattle marked this pull request as ready for review April 27, 2026 13:03

@Rot127 Rot127 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should just fix the generator instead (and use tree-sitter for parsing).

@Rot127
Rot127 merged commit d4e5fa0 into capstone-engine:next Apr 28, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARM Arch M68K Arch MOS65XX Arch Python Bindings RISCV Arch Sparc Arch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants