Skip to content

Conversation

@ferdymercury
Copy link
Collaborator

Subpart of work towards: #10058

@ferdymercury ferdymercury marked this pull request as ready for review December 19, 2025 10:38
@github-actions
Copy link

github-actions bot commented Dec 19, 2025

Test Results

    22 files      22 suites   3d 20h 53m 57s ⏱️
 3 792 tests  3 792 ✅ 0 💤 0 ❌
80 337 runs  80 337 ✅ 0 💤 0 ❌

Results for commit a40c06f.

♻️ This comment has been updated with latest results.

@dpiparo dpiparo self-assigned this Dec 20, 2025
if (strchr(cr->GetName(), '<'))
gInterpreter->ProcessLine(((std::string)cr->GetName()+"::"+m->GetName()+";").c_str());
offset = (intptr_t)m->GetOffsetCint(); // yes, Cling (GetOffset() is both wrong
offset = (intptr_t)m->GetOffsetCint(); // yes, Cling GetOffset() is both wrong (TODO: rename to GetOffsetCling?)
Copy link
Member

Choose a reason for hiding this comment

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

I would remove this change, as we're doing so many changes to clingwrapper anyway these days that it will become soon outdated (possibly removed?)


/// Forwards to THnBase::SetBinContent().
/// Non-virtual, CINT-compatible replacement of a using declaration.
/// Non-virtual, CINT-compatible replacement of a using declaration. @todo recheck with Cling
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of all these @todos?

Copy link
Collaborator Author

@ferdymercury ferdymercury Jan 7, 2026

Choose a reason for hiding this comment

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

in a follow-up PR, the idea is to replace all these functions with just
using THnBase::SetBinContent

in the hope that Cling does not longer have the mentioned problem.

Since this PR was touching mostly comments, not code changes.

Or do you think Cling will still need that workaround in the same way as CINT?

//Begin_Html
/*
<img src="gif/TGRootIDE.gif">
/**
Copy link
Member

Choose a reason for hiding this comment

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

Is this change really related to renaming CINT to Cling?

mess->ReadInt(clientId);
mess->ReadTString(filename);
mess->ReadLong64(length); // '*mess >> length;' is broken in CINT for Long64_t.
mess->ReadLong64(length); // '*mess >> length;' was broken in CINT for Long64_t. TODO: recheck with Cling
Copy link
Member

Choose a reason for hiding this comment

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

Also what is the purpose of this TODO (and why is it different from @todo above)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why is it different from @todo above)

@todo only works within doxygen documentation
TODO is more for code comments that do not appear in doxygen comments.

grep -i todo should work for both for searching these
I could also switch to FIXME if that's preferred

mess.WriteInt(idx);
mess.WriteTString(file->GetName());
mess.WriteLong64(file->GetEND()); // 'mess << file->GetEND();' is broken in CINT for Long64_t
mess.WriteLong64(file->GetEND()); // 'mess << file->GetEND();' was broken in CINT for Long64_t
Copy link
Member

Choose a reason for hiding this comment

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

Is the comment relevant at all, since it refers to a previously broken feature of CINT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The idea is to replace in a follow-up PR this line with just

mess << file->GetEND()

but if you prefer I can fully remove this comment since it's not relevant?

//==============================================================================

// Should be run in compiled mode -- CINT has issues with recursion.
// Should be run in compiled mode -- CINT had issues with recursion. TODO: recheck with Cling
Copy link
Member

Choose a reason for hiding this comment

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

Again question about TODO

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Next step would be to run this tutorial in interpreted mode, if Cling has no issues, then fully remove this line.

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