* Add support for more cases of verbose demangling
I skipped the tests on this commit so that I could push it,
and add the tests at a later date.
I do this because I'm not sure this does not break unreleated
stuff so I wanted to make the changes visible before fixing the tests
* Adress review comments
* Update cpp.js
* new test results
Co-authored-by: Patrick Quist <partouf@gmail.com>
Uses a prefix tree to find replacements in each
line, instead of looping over all replacements for all lines.
Adds a large test (which was part of bug 1336). On my machine it
used to take 45s to process that test, now it takes ~1.5s.
Skip demangle replacement entirely if there's no demangling to be done. CC @apmorton
Co-authored-by: partouf <partouf@gmail.com>