Skip to content

fix: codegen for nested namespace with using #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Vipul-Cariappa
Copy link
Collaborator

Enables 3 tests in cppyy.

Copy link

codecov bot commented Jun 2, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 77.66%. Comparing base (0e399f1) to head (d6fdbed).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
lib/CppInterOp/CppInterOp.cpp 80.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #612      +/-   ##
==========================================
+ Coverage   77.48%   77.66%   +0.18%     
==========================================
  Files           9        9              
  Lines        3713     3743      +30     
==========================================
+ Hits         2877     2907      +30     
  Misses        836      836              
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 85.09% <80.00%> (+0.22%) ⬆️
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 85.09% <80.00%> (+0.22%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

github-actions bot commented Jun 2, 2025

clang-tidy review says "All clean, LGTM! 👍"

@@ -518,7 +518,13 @@ std::string GetQualifiedCompleteName(TCppType_t klass) {
if (auto* TD = llvm::dyn_cast<TagDecl>(ND)) {
std::string type_name;
QualType QT = C.getTagDeclType(TD);
QT.getAsStringInternal(type_name, C.getPrintingPolicy());
PrintingPolicy PP = C.getPrintingPolicy();
PP.FullyQualifiedName = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make sure codecov is covered?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This might be a problem with codecov, because the line above and below is covered, and there is no conditional either.

Copy link
Contributor

github-actions bot commented Jun 2, 2025

clang-tidy review says "All clean, LGTM! 👍"

@@ -1733,6 +1733,53 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
Cpp::BestOverloadFunctionMatch(operators, {}, {K1, K2});
auto chrono_op_fn_callable = Cpp::MakeFunctionCallable(kop);
EXPECT_EQ(chrono_op_fn_callable.getKind(), Cpp::JitCall::kGenericCall);

Interp->process(R"(
#include <tuple>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we avoid the inclusion of the header and craft our own make_tuple-like routine? That should avoid future problems when CppInterOp tests are ran without installed stl.

@Vipul-Cariappa Vipul-Cariappa requested a review from vgvassilev June 3, 2025 09:14
Copy link
Contributor

github-actions bot commented Jun 3, 2025

clang-tidy review says "All clean, LGTM! 👍"

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 07ae675 into compiler-research:main Jun 4, 2025
74 of 78 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the dev/codegen-using branch June 4, 2025 08:16
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request Jun 4, 2025
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request Jun 4, 2025
Vipul-Cariappa added a commit to compiler-research/cppyy that referenced this pull request Jun 4, 2025
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