Skip to content

Sync bugfixes from 4.4.6 backport#275

Merged
sebaszm merged 12 commits into
masterfrom
development/sync-tools
Jun 22, 2026
Merged

Sync bugfixes from 4.4.6 backport#275
sebaszm merged 12 commits into
masterfrom
development/sync-tools

Conversation

@sebaszm

@sebaszm sebaszm commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

A number of bug fixes and one extra feature: proper include handling of stubgen:include (now works as in normal compilers, includes in-place of the directive).

Copilot AI review requested due to automatic review settings June 8, 2026 15:13
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

LuaGenerator Results

View Results

Changes detected.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Backports a set of generator bugfixes from the 4.4.6 line into ThunderTools, primarily improving ProxyStubGenerator include/parsing behavior and JsonGenerator’s handling of optionals/legacy index semantics and documentation output.

Changes:

  • ProxyStubGenerator: track instantiated template usage to avoid emitting unused template proxystubs; enhance @insert processing (including weak includes) and file/line tracking.
  • JsonGenerator: deduplicate tracker ordering, standardize “common objects” access, refine optional handling and legacy index behavior, and improve documentation type rendering.
  • Misc: small formatting/logging tweaks across emitters.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
ProxyStubGenerator/StubGenerator.py Filters unused instantiated template interfaces; adjusts emitted interface list and file cleanup; updates include handling.
ProxyStubGenerator/default.h Adds weak include hook and legacy forward-decls comment.
ProxyStubGenerator/CppParser.py Adds ref-counting for instantiated templates; improves token/file/line handling; rewrites include loader with weak includes.
JsonGenerator/source/trackers.py Dedupes dependency sorting and exposes common objects via properties.
JsonGenerator/source/rpc_emitter.py Switches to local_name usage, adjusts legacy optional/index handling, and fixes buffer-length fallback logic.
JsonGenerator/source/json_loader.py Makes local_proto robust when @proto is absent; fixes cv-qualified native type accessor.
JsonGenerator/source/header_loader.py Extends optional handling for bool; refines @extract and event index warnings/original-name behavior.
JsonGenerator/source/documentation_generator.py Improves optional propagation and type labeling for opaque/encode/time; fixes minor formatting.
JsonGenerator/source/class_emitter.py Updates to new tracker APIs and adds more detailed enum emission logging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ProxyStubGenerator/StubGenerator.py Outdated
Comment thread ProxyStubGenerator/CppParser.py Outdated
Comment thread JsonGenerator/source/rpc_emitter.py
Comment thread JsonGenerator/source/trackers.py
Comment thread ProxyStubGenerator/default.h Outdated
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

LuaGenerator Results

View Results

Changes detected.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

Copilot AI review requested due to automatic review settings June 9, 2026 23:10
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

LuaGenerator Results

View Results

Changes detected.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread JsonGenerator/source/json_loader.py
Comment thread JsonGenerator/source/json_loader.py
Comment thread ProxyStubGenerator/CppParser.py
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

Copilot AI review requested due to automatic review settings June 10, 2026 06:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comment thread ProxyStubGenerator/CppParser.py
Comment thread JsonGenerator/source/rpc_emitter.py
@github-actions

Copy link
Copy Markdown

LuaGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

LuaGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

Copilot AI review requested due to automatic review settings June 12, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread ProxyStubGenerator/CppParser.py
Comment thread ProxyStubGenerator/CppParser.py
Comment thread ProxyStubGenerator/CppParser.py
@github-actions

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

Copilot AI review requested due to automatic review settings June 19, 2026 13:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comment on lines 492 to 495
emit.Line("const size_t _dot = %s.find('.');" % (names.designator))
emit.Line("const string %s = %s.substr(0, _dot);" % (names.designator_id, names.designator))
emit.Line("const string %s = %s.substr(0, _dot);" % (names.index, names.designator))
check = ("%s.substr(_dot + 1)" % (names.designator))
cond.append("((%s.empty() == true) || (%s == %s))" % (names.client, names.client, check))
@sebaszm sebaszm requested a review from VeithMetro June 22, 2026 11:49
@sebaszm sebaszm merged commit ff5d8a9 into master Jun 22, 2026
86 of 88 checks passed
@sebaszm sebaszm deleted the development/sync-tools branch June 22, 2026 11:55
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants