Skip to content

feat: add name de-mangling for C++ symbols in the Test Explorer - #4340

Merged
Garrett Campbell (gcampbell-msft) merged 8 commits into
microsoft:mainfrom
rjaegers:feature/add-cpp-name-demangling
May 13, 2025
Merged

Garrett Campbell (gcampbell-msft) merged 8 commits into
microsoft:mainfrom
rjaegers:feature/add-cpp-name-demangling

Conversation

@rjaegers

Copy link
Copy Markdown
Contributor

This changes visible behavior

The following changes are proposed:

  • Add name de-mangling for C++ symbols in the Test Explorer view

The purpose of this change

Currently when coverage is measured during test execution the mangled name is shown in case of C++ symbols. This PR adds name de-mangling for C++ symbols. When the symbol is not a mangled C++ name, the input is left un-touched.

@rjaegers

Copy link
Copy Markdown
Contributor Author

Garrett Campbell (@gcampbell-msft) this is the PR that adds de-mangling. I have added a package to do the actual de-mangling, and I think I should not have pushed the yarn.lock file. I will revert the changes in that file and hope you and your team can do the magic to get the added package onboard.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, I don't have any concerns necessarily, but being somewhat unfamiliar with the packages available in node for demangling, I wanted to ask, why did you pick this specific one?

I see that there are a couple of npm packages for it: https://www.npmjs.com/search?q=demangler, and there are a couple that have more downloads (not that more downloads = better quality), and I was curious if there was any reason specifically?

Thanks

@rjaegers

Copy link
Copy Markdown
Contributor Author

I picked the package that:

  1. had tests
  2. I could review the code of
  3. satisfied my API requirements (i.e. either demangle the mangled name and return that, or return the input untouched)

That left the demangler-js package as most viable option in my opinion.

@rjaegers

Copy link
Copy Markdown
Contributor Author

Garrett Campbell (@gcampbell-msft) is there any further action required from my side to drive this home?

@gcampbell-msft

Copy link
Copy Markdown
Collaborator

Ron (@rjaegers) No, nothing from your side, I need to get around to updating the package-lock.json on our side. Thanks for the ping.

@gcampbell-msft

Copy link
Copy Markdown
Collaborator

Ron (@rjaegers) Update, I've updated the yarn.lock file and kicked off the builds, we will review and hopefully merge this PR today or next week.

snehara99
snehara99 previously approved these changes Apr 11, 2025
paulmaybee
paulmaybee previously approved these changes Apr 11, 2025
@gcampbell-msft
Garrett Campbell (gcampbell-msft) merged commit b084cc3 into microsoft:main May 13, 2025
Mateusz Pfeifer (fajkomix1990) pushed a commit to fajkomix1990/mati---glowny that referenced this pull request Jul 2, 2025
…osoft#4340)

* feat: add name demangling for C++ symbols

* docs: update CHANGELOG

* chore: revert changes in yarn.lock as per CONTRIBUTING guide

* updating yarn.lock

---------

Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
Tofik Sonono (TSonono) added a commit to TSonono/vscode-cmake-tools that referenced this pull request Jan 20, 2026
Hannia Valera (hanniavalera) pushed a commit that referenced this pull request Jan 20, 2026
…er" (#4658)

* Revert "feat: add name de-mangling for C++ symbols in the Test Explorer (#4340)"

This reverts commit b084cc3.

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants