Skip to content

[6.36] [core] Handle non-space whitespace in TClassEdit::CleanType#22826

Merged
guitargeek merged 1 commit into
root-project:v6-36-00-patchesfrom
root-project-bot:BP_6.36_pull_22766
Jul 16, 2026
Merged

[6.36] [core] Handle non-space whitespace in TClassEdit::CleanType#22826
guitargeek merged 1 commit into
root-project:v6-36-00-patchesfrom
root-project-bot:BP_6.36_pull_22766

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #22766, requested by @guitargeek.

A class name in a selection XML can span multiple lines. `CleanType()`
only treated `' '` as a blank, so a newline was kept in the cleaned name
and, when the template arguments were later re-processed individually,
an argument starting with a newline was truncated to an empty string.
This corrupted the rootmap entries and the alternate name registrations
(e.g. `"Foo<,vector<float>,>"`), leading to `"Second registration of
..."` errors from `TClassTable::AddAlternate` at library load time.

Treat all whitespace like a space: drop it where a space would be
dropped, and emit a single plain space where it separates two
identifiers.

Closes root-project#22359.

🤖 Done with the help of AI.

(cherry picked from commit 9d59a11)
@github-actions

Copy link
Copy Markdown

Test Results

    15 files      15 suites   2d 4h 42m 59s ⏱️
 2 749 tests  2 749 ✅ 0 💤 0 ❌
40 031 runs  40 031 ✅ 0 💤 0 ❌

Results for commit 9ddef4c.

@guitargeek
guitargeek merged commit 0f0848a into root-project:v6-36-00-patches Jul 16, 2026
19 of 20 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.

2 participants