Skip to content

Revert "Fix bugs related to printing types (#661)" #673

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

Conversation

mcbarton
Copy link
Collaborator

@mcbarton mcbarton commented Jul 15, 2025

Description

Please include a summary of changes, motivation and context for this PR.

This reverts commit f65f80a.

@vgvassilev To make the Emscripten workflow pass for all jobs again (and by extension allow our deployment workflow to work again), either this PR needs to go in (and revert any cppyy related PRs), or this one needs to go in #655, which fixes the Emscripten workflow without needing to revert the latest commit to CppInterOps main.

Fixes # (issue)

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Please describe the test(s) that you added and ran to verify your changes.

Checklist

  • I have read the contribution guide recently

@mcbarton mcbarton requested a review from vgvassilev July 15, 2025 18:14
@mcbarton
Copy link
Collaborator Author

The native workflow is expected to fail as part of this PR, as it will also require reverting changes in cppyy repos to pass.

Copy link

codecov bot commented Jul 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.18%. Comparing base (f65f80a) to head (0b04669).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #673      +/-   ##
==========================================
- Coverage   79.25%   79.18%   -0.07%     
==========================================
  Files           9        9              
  Lines        3866     3853      -13     
==========================================
- Hits         3064     3051      -13     
  Misses        802      802              
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 87.27% <100.00%> (-0.08%) ⬇️
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 87.27% <100.00%> (-0.08%) ⬇️
🚀 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

DefaultArgExpr = PI->getUninstantiatedDefaultArg();
else
DefaultArgExpr = PI->getDefaultArg();
Expr* DefaultArgExpr = const_cast<Expr*>(PI->getDefaultArg());
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant explicit casting to the same type 'Expr *' as the sub-expression, remove this casting [readability-redundant-casting]

Suggested change
Expr* DefaultArgExpr = const_cast<Expr*>(PI->getDefaultArg());
Expr* DefaultArgExpr = PI->getDefaultArg();
Additional context

llvm/include/clang/AST/Decl.h:1824: source type originates from the invocation of this method

  Expr *getDefaultArg();
        ^

@mcbarton
Copy link
Collaborator Author

@vgvassilev @Vipul-Cariappa Despite this PR #657 being one commit behind main, and being able to pass the Emscripten workflow, my intuition turned out to be wrong, and reverting the commit will not fix main. The only solution which has shown to allow the Emscripten workflow to pass again is merging #655 (After clearing main of the Emscripten builds of llvm).

@mcbarton mcbarton closed this Jul 15, 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.

1 participant