Skip to content

Improve template parameter map toString - #1509

Open
MarkZ3 wants to merge 1 commit into
eclipse-cdt:mainfrom
MarkZ3:TemplateParameterMapToString
Open

MarkZ3 wants to merge 1 commit into
eclipse-cdt:mainfrom
MarkZ3:TemplateParameterMapToString

Conversation

@MarkZ3

@MarkZ3 MarkZ3 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

It's only for debugging purposes.

  • Clarify template nesting level vs position
  • Better handling of parameter pack (...)

template <class A, class B>
class TestTemplate
{};
TestTemplate<int, char> a;

Before: {#0,0: int, #0,1: char}
After: {lvl0,pos0: int, lvl0,pos1: char}

template <class A, class ...P>
void func(A, P...) {}
func("1", 1u, '1');

Before: {#0,0: const char *, #0,1: unsigned int#0,1: char}
After: {lvl0,pos0: const char *, lvl0,pos1: [unsigned int, char]}

It's only for debugging purposes.
* Clarify template nesting level vs position
* Better handling of parameter pack (...)

template <class A, class B>
class TestTemplate
{};
TestTemplate<int, char> a;

Before: {#0,0: int, #0,1: char}
After: {lvl0,pos0: int, lvl0,pos1: char}

template <class A, class ...P>
void func(A, P...) {}
func("1", 1u, '1');

Before: {#0,0: const char *, #0,1: unsigned int#0,1: char}
After: {lvl0,pos0: const char *, lvl0,pos1: [unsigned int, char]}
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Test Results

4 719 tests  ±0   4 710 ✅ ±0   2m 40s ⏱️ +11s
  183 suites ±0       9 💤 ±0 
  183 files   ±0       0 ❌ ±0 

Results for commit 041908a. ± Comparison against base commit 5088ae6.

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.

1 participant