Skip to content

Conversation

@aaronj0
Copy link
Collaborator

@aaronj0 aaronj0 commented Jun 30, 2025

No description provided.

@aaronj0 aaronj0 requested a review from vgvassilev June 30, 2025 12:59
@codecov
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.18%. Comparing base (9c94230) to head (8404351).
⚠️ Report is 48 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #653      +/-   ##
==========================================
+ Coverage   78.80%   79.18%   +0.38%     
==========================================
  Files           9        9              
  Lines        3854     3853       -1     
==========================================
+ Hits         3037     3051      +14     
+ Misses        817      802      -15     
Files with missing lines Coverage Δ
include/CppInterOp/CppInterOp.h 95.34% <ø> (ø)
lib/CppInterOp/CXCppInterOp.cpp 48.71% <100.00%> (-0.15%) ⬇️
lib/CppInterOp/CppInterOp.cpp 87.27% <100.00%> (+0.56%) ⬆️

... and 1 file with indirect coverage changes

Files with missing lines Coverage Δ
include/CppInterOp/CppInterOp.h 95.34% <ø> (ø)
lib/CppInterOp/CXCppInterOp.cpp 48.71% <100.00%> (-0.15%) ⬇️
lib/CppInterOp/CppInterOp.cpp 87.27% <100.00%> (+0.56%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

}

void Destruct(compat::Interpreter& interp, TCppObject_t This, Decl* Class,
bool Destruct(compat::Interpreter& interp, TCppObject_t This, Decl* Class,
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: function 'Destruct' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]

Suggested change
bool Destruct(compat::Interpreter& interp, TCppObject_t This, Decl* Class,
static bool Destruct(compat::Interpreter& interp, TCppObject_t This, Decl* Class,

@mcbarton
Copy link
Collaborator

The Windows Emscripten jobs will need to be checked manually as part of this PR. Despite them being green, they fail in the ci. The ci doesn't seem to be able to pick up the non zero exit code. I thought I'd managed to fix this bug, but it is still present.

@vgvassilev
Copy link
Contributor

Can we add tests?

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


namespace Cpp {
void Destruct(compat::Interpreter& interp, TCppObject_t This,
bool Destruct(compat::Interpreter& interp, TCppObject_t This,
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: function 'Destruct' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]

Suggested change
bool Destruct(compat::Interpreter& interp, TCppObject_t This,
static bool Destruct(compat::Interpreter& interp, TCppObject_t This,

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like a good suggestion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed, but the C-API also uses this function and making it static would no longer make it visible

@aaronj0 aaronj0 force-pushed the dtor-diagnostics branch 2 times, most recently from 9965a8e to 78c44c1 Compare July 1, 2025 06:23
@aaronj0 aaronj0 force-pushed the dtor-diagnostics branch from 78c44c1 to bd0f9a3 Compare July 1, 2025 06:24
@aaronj0
Copy link
Collaborator Author

aaronj0 commented Jul 1, 2025

Can we add tests?

Done. The expected failure in the test does create a lot of verbosity when the wrapper is compiled. Any way to silence that?

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!

@aaronj0 aaronj0 requested a review from vgvassilev July 1, 2025 07:58
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

@aaronj0 aaronj0 force-pushed the dtor-diagnostics branch from f6ff95e to 8404351 Compare July 1, 2025 08:07
@aaronj0 aaronj0 merged commit 2585d0d into compiler-research:main Jul 1, 2025
50 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