Skip to content

[cpyrt] Expose method const-qualification in func_overloads_types - #64

Merged
aaronj0 merged 1 commit into
compiler-research:mainfrom
chicagotrading:pr-k-is-const
Sep 2, 2026
Merged

[cpyrt] Expose method const-qualification in func_overloads_types#64
aaronj0 merged 1 commit into
compiler-research:mainfrom
chicagotrading:pr-k-is-const

Conversation

@conrade-ctc

Copy link
Copy Markdown
Contributor

A caller could not tell whether a given overload was const-qualified. Each overload's entry in func_overloads_types now carries an is_const field. Free functions and static methods report is_const as False.

* [cpyrt] Add per-overload 'is_const' to GetSignatureTypes
* [test] Add regression test for overload constness reporting

Co-authored-by: rathorey-ctc <rathorey-ctc@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@conrade-ctc conrade-ctc closed this Sep 1, 2026
@conrade-ctc conrade-ctc reopened this Sep 1, 2026

@aaronj0 aaronj0 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.

LGTM!

@aaronj0
aaronj0 merged commit e26dd54 into compiler-research:main Sep 2, 2026
24 of 25 checks passed
vgvassilev pushed a commit to vgvassilev/cppjit that referenced this pull request Sep 6, 2026
…mpiler-research#64)

Expose method const-qualification in func_overloads_types

* [cpyrt] Add per-overload 'is_const' to GetSignatureTypes
* [test] Add regression test for overload constness reporting

Co-authored-by: Yasser Rathore <yasser.rathore@chicagotrading.com>
Co-authored-by: rathorey-ctc <rathorey-ctc@users.noreply.github.com>
aaronj0 pushed a commit to aaronj0/cppjit-compres that referenced this pull request Sep 6, 2026
…mpiler-research#64)

Expose method const-qualification in func_overloads_types

* [cpyrt] Add per-overload 'is_const' to GetSignatureTypes
* [test] Add regression test for overload constness reporting

Co-authored-by: Yasser Rathore <yasser.rathore@chicagotrading.com>
Co-authored-by: rathorey-ctc <rathorey-ctc@users.noreply.github.com>
aaronj0 pushed a commit to aaronj0/cppjit-compres that referenced this pull request Sep 6, 2026
…mpiler-research#64)

Expose method const-qualification in func_overloads_types

* [cpyrt] Add per-overload 'is_const' to GetSignatureTypes
* [test] Add regression test for overload constness reporting

Co-authored-by: Yasser Rathore <yasser.rathore@chicagotrading.com>
Co-authored-by: rathorey-ctc <rathorey-ctc@users.noreply.github.com>
aaronj0 pushed a commit to aaronj0/cppjit-compres that referenced this pull request Sep 6, 2026
…mpiler-research#64)

Expose method const-qualification in func_overloads_types

* [cpyrt] Add per-overload 'is_const' to GetSignatureTypes
* [test] Add regression test for overload constness reporting

Co-authored-by: Yasser Rathore <yasser.rathore@chicagotrading.com>
Co-authored-by: rathorey-ctc <rathorey-ctc@users.noreply.github.com>
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.

3 participants