Skip to content

[6.42] [cppjit] Autoparse names missing from namespaces [ROOT-patch] - #24221

Merged
guitargeek merged 3 commits into
root-project:v6-42-00-patchesfrom
root-project-bot:BP_6.42_pull_24185
Nov 18, 2026
Merged

guitargeek merged 3 commits into
root-project:v6-42-00-patchesfrom
root-project-bot:BP_6.42_pull_24185

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #24185, requested by @guitargeek.

Enums and variables known only from a rootmap, like the ATLAS xAOD enums
and constants, were not found. Rootmaps don't forward declare them, so
they only exist once their header is parsed. But interop::GetScope calls
TClass::GetClass first, which normalizes the name with autoloading off:
TCling can't autoparse it, and clang caches the failed lookup. Later
lookups never ask TCling again. The old cppyy checked for enums before
calling TClass::GetClass, so it was not affected.

If a name is missing from a namespace, ask TCling to autoparse it and
look again.

Closes root-project#24176.

Assisted-by: claude-code:claude-opus-5-5
(cherry picked from commit 619d2bc)
Enums and variables that are only known from a rootmap must be
importable from their namespace before their header was parsed.

Assisted-by: claude-code:claude-opus-5-5
(cherry picked from commit fcf6b47)
They are not pointing to the ROOT forks. The CppInterOp tag is
equivalent to the previous hash.

(cherry picked from commit 81438d3)
@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 18h 54m 45s ⏱️
 3 888 tests  3 888 ✅ 0 💤 0 ❌
79 942 runs  79 942 ✅ 0 💤 0 ❌

Results for commit 0364ffb.

@guitargeek
guitargeek merged commit b19a6a5 into root-project:v6-42-00-patches Nov 18, 2026
46 of 47 checks passed
@dpiparo
dpiparo deleted the BP_6.42_pull_24185 branch November 18, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants