Skip to content

Conversation

@Vipul-Cariappa
Copy link
Collaborator

Description

This is the case where the instantiated function is present in one of the libraries loaded or the host application.

Fixes # (issue)

Fixes a test in cppyy.

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Tests included.

Checklist

  • I have read the contribution guide recently

Copy link
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

@codecov
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.96%. Comparing base (d9bf9ab) to head (7a1ca48).
⚠️ Report is 66 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #626      +/-   ##
==========================================
+ Coverage   77.77%   77.96%   +0.19%     
==========================================
  Files           9        9              
  Lines        3761     3767       +6     
==========================================
+ Hits         2925     2937      +12     
+ Misses        836      830       -6     
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 85.56% <100.00%> (+0.33%) ⬆️
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 85.56% <100.00%> (+0.33%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vgvassilev
Copy link
Contributor

It would be good to cover that with tests.

@Vipul-Cariappa Vipul-Cariappa force-pushed the dev/codegen-host-templ branch from 5570307 to e19a731 Compare June 12, 2025 15:23
Copy link
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

@Vipul-Cariappa Vipul-Cariappa force-pushed the dev/codegen-host-templ branch 2 times, most recently from 703de04 to b20d0d7 Compare June 13, 2025 07:37
EXPECT_EQ(instantiation_in_host_callable.getKind(),
Cpp::JitCall::kUnknown); // expect to fail with
// TClingCallFunc::make_wrapper:
// instantiation with no body!
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not capturing the error?

This is the case where the the instantiated function is present in one of the libraries loaded or the host application.
@Vipul-Cariappa Vipul-Cariappa force-pushed the dev/codegen-host-templ branch from b20d0d7 to 7a1ca48 Compare June 13, 2025 14:20
Copy link
Contributor

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

Lgtm!

@Vipul-Cariappa Vipul-Cariappa merged commit 7bb23b9 into compiler-research:main Jun 14, 2025
50 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the dev/codegen-host-templ branch June 14, 2025 05:59
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.

2 participants