Skip to content

C++: Support fully qualified field names in MaD#22088

Draft
MathiasVP wants to merge 4 commits into
github:mainfrom
MathiasVP:cpp-support-fully-qualified-field-names-in-mad
Draft

C++: Support fully qualified field names in MaD#22088
MathiasVP wants to merge 4 commits into
github:mainfrom
MathiasVP:cpp-support-fully-qualified-field-names-in-mad

Conversation

@MathiasVP

@MathiasVP MathiasVP commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

There's a small discrepancy between how Java and C# picks out a field in a MaD summary and how we do it in C++: In C++ we simply use the name of the field whereas Java and C# (and probably other languages as well. I didn't check this) use the fully qualified name of the field.

Using the fully qualified name is definitely the right approach as it precisely allows us to pick out the field that is being written to / read from, but we apparently missed that when we added MaD for C++.

This PR adds the ability for C++ to specify fully qualified names while keeping the old "just use the field name" around. Using the fully qualified name turns out to be crucial for some MaD summaries I'm working on for associative STL containers.

I tucked on a small one-line change in which nodes we hide in path explanations that we've been missing ever since we introduced MaD. We weren't hiding nodes that were supposed to be hidden, and caaed72 fixes that. It shouldn't change any results.

@github-actions github-actions Bot added the C++ label Jun 29, 2026
@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant