Skip to content

ROOT-Cling specific changes required for Cppyy in ROOT#787

Merged
mcbarton merged 2 commits intocompiler-research:mainfrom
Vipul-Cariappa:dev/cling-ROOT
Feb 5, 2026
Merged

ROOT-Cling specific changes required for Cppyy in ROOT#787
mcbarton merged 2 commits intocompiler-research:mainfrom
Vipul-Cariappa:dev/cling-ROOT

Conversation

@Vipul-Cariappa
Copy link
Collaborator

Description

Fixes # (issue)

Everything ROOT specific. Eliminated most, if not all, of the crashes in CppInterOp+Cppyy while using it in ROOT.

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Not sure how I would test it here.

Checklist

  • I have read the contribution guide recently

@github-actions
Copy link
Contributor

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

Comment on lines 2597 to 2599
#ifdef CPPINTEROP_USE_CLING
cling::Interpreter::PushTransactionRAII RAII(&I);
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't we have something common for both cling and clang-repl?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. I forgot about that. We have SynthesizingCodeRAII. Will fix it.

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.46%. Comparing base (e142e7a) to head (c798d24).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #787      +/-   ##
==========================================
+ Coverage   79.38%   79.46%   +0.07%     
==========================================
  Files          11       11              
  Lines        3988     4002      +14     
==========================================
+ Hits         3166     3180      +14     
  Misses        822      822              
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 87.84% <100.00%> (+0.07%) ⬆️
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 87.84% <100.00%> (+0.07%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aaronj0
Copy link
Collaborator

aaronj0 commented Feb 5, 2026

@vgvassilev I've rebased this PR and sunk usages of cling::Interpreter::PushTransactionRAII with the common RAII. Can you take a look and see if we can land this?

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

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! Consider squash on merge.

@mcbarton mcbarton merged commit 76d0600 into compiler-research:main Feb 5, 2026
48 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.

4 participants