Skip to content

[6.40] [core] Handle non-space whitespace in TClassEdit::CleanType#22825

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

[6.40] [core] Handle non-space whitespace in TClassEdit::CleanType#22825
guitargeek merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_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

    22 files      22 suites   3d 15h 46m 12s ⏱️
 3 858 tests  3 858 ✅ 0 💤 0 ❌
77 108 runs  77 108 ✅ 0 💤 0 ❌

Results for commit de56258.

@guitargeek
guitargeek merged commit c27c660 into root-project:v6-40-00-patches Jul 16, 2026
33 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