Skip to content

Refactor libclang parser and Reuse in unit rule#281

Merged
hoe-jo merged 4 commits into
eclipse-score:mainfrom
melodyoncode:melody_validation_rules
Jun 22, 2026
Merged

Refactor libclang parser and Reuse in unit rule#281
hoe-jo merged 4 commits into
eclipse-score:mainfrom
melodyoncode:melody_validation_rules

Conversation

@melodyoncode

Copy link
Copy Markdown
Contributor
  • refactor(cpp/libclang): extract reusable parser action

    • Move the C++ parser action setup into shared Starlark plumbing so it can be reused by both cpp_parser and other Bazel rules.
    • Switch parser outputs from an output directory to explicit class FlatBuffer and optional debug JSON files, and update the Rust CLI and docs to use those paths.
  • test(cpp/libclang): centralize parser integration case wiring

    • Add a shared integration test macro that wires the parser, expected output filegroup, debug JSON provider, and Rust comparison test for each case.
    • Update all parser integration BUILD files to use the macro and make the test framework consume the explicit debug JSON output path.
  • feat(rules_score): generate implementation class FBS in unit rule

    • Wire the libclang C++ parser action into the unit rule for implementation targets that provide parser inputs.
    • Collect generated class diagram FBS files in DefaultInfo, and add the parser toolchain attrs/aspects required by the reused action.

@melodyoncode melodyoncode force-pushed the melody_validation_rules branch from dc77a16 to 4c7ee7a Compare June 18, 2026 09:30
@hoe-jo hoe-jo merged commit 242a7d3 into eclipse-score:main Jun 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants