Skip to content

[requires CppInterOp 1.9.0 release] Use Cpp::GetLanguage to set language#462

Merged
JohanMabille merged 1 commit intocompiler-research:mainfrom
mcbarton:detect-language-via-cppinterop
Apr 1, 2026
Merged

[requires CppInterOp 1.9.0 release] Use Cpp::GetLanguage to set language#462
JohanMabille merged 1 commit intocompiler-research:mainfrom
mcbarton:detect-language-via-cppinterop

Conversation

@mcbarton
Copy link
Copy Markdown
Collaborator

With CppInterOp 1.9.0, an API was created which can detect the language of the interpreter (Cpp::GetLanguage). This PR uses this API to set the language, rather than it being static to C++, which will be incorrect for the C kernels. This PR needs testing and I will check it in the coming days.

@mcbarton mcbarton force-pushed the detect-language-via-cppinterop branch 2 times, most recently from da90ecb to 1c47973 Compare March 17, 2026 20:41
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@mcbarton mcbarton force-pushed the detect-language-via-cppinterop branch 2 times, most recently from d060d19 to b734e40 Compare March 27, 2026 17:14
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 19.35484% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.41%. Comparing base (88ae231) to head (3da73a0).

Files with missing lines Patch % Lines
src/xinterpreter.cpp 19.35% 25 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #462      +/-   ##
==========================================
- Coverage   80.56%   78.41%   -2.15%     
==========================================
  Files          21       21              
  Lines         854      885      +31     
  Branches       80       80              
==========================================
+ Hits          688      694       +6     
- Misses        166      191      +25     
Files with missing lines Coverage Δ
src/xinterpreter.cpp 77.77% <19.35%> (-11.47%) ⬇️
Files with missing lines Coverage Δ
src/xinterpreter.cpp 77.77% <19.35%> (-11.47%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@mcbarton mcbarton force-pushed the detect-language-via-cppinterop branch from 827a9c5 to 3da73a0 Compare March 31, 2026 14:25
Copy link
Copy Markdown
Collaborator

@JohanMabille JohanMabille left a comment

Choose a reason for hiding this comment

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

Same question as for #461 , why not simply using the argument passed to the CLI?

@JohanMabille
Copy link
Copy Markdown
Collaborator

As discussed "in person", this will be moved into cppinterop, so let's merge for now since it"s fixing issues for the C kernel.

@JohanMabille JohanMabille merged commit 7808b73 into compiler-research:main Apr 1, 2026
20 checks 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.

3 participants