This is an archive of the discontinued LLVM Phabricator instance.

Fix demangling of optional template-args for vendor extended type qualifier.
ClosedPublic

Authored by aorlov on Mar 16 2021, 2:16 AM.

Diff Detail

Event Timeline

aorlov created this revision.Mar 16 2021, 2:16 AM
aorlov requested review of this revision.Mar 16 2021, 2:16 AM
jhenderson requested changes to this revision.Mar 16 2021, 2:51 AM

I don't know how demangler changes are usually tested, as I don't maintain the lower-level library, but I don't think testing it inside llvm/test/tools/llvm-cxxfilt/ is the right place, as those are tests for the top-level tool features (i.e. changes in the llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp). A quick look at past commits to the demangler library and existing tests suggests that you should probably test this in llvm/unittests/Demangle somewhere.

This revision now requires changes to proceed.Mar 16 2021, 2:51 AM
aorlov updated this revision to Diff 331058.Mar 16 2021, 12:03 PM

Thanks, James!
The test is moved to llvm/unittests/Demangle/DemangleTest.cpp.

jhenderson resigned from this revision.Mar 17 2021, 1:44 AM

Thanks for the test update - that bit looks good to me. I'm not familiar enough with the demangling code to review the rest, so am resigning as reviewer, in the hope that will clear my "request changes" mark.

llvm/unittests/Demangle/DemangleTest.cpp
26
aorlov updated this revision to Diff 331189.Mar 17 2021, 2:36 AM
aorlov marked an inline comment as done.
krisb added a subscriber: krisb.Mar 23 2021, 1:31 AM

It seems it makes sense to apply the same changes to libcxxabi (see, libcxxabi/src/demangle/ItaniumDemangle.h) to keep them in sync.

aorlov updated this revision to Diff 332758.Mar 23 2021, 12:40 PM
aorlov added a project: Restricted Project.

Thanks for the comment, Kristina.
I have added the same changes to libcxxabi.

Herald added a reviewer: Restricted Project. · View Herald TranscriptMar 23 2021, 12:40 PM
erik.pilkington accepted this revision.Mar 23 2021, 12:46 PM
erik.pilkington added a subscriber: erik.pilkington.

LGTM, thanks!

This revision is now accepted and ready to land.Mar 23 2021, 12:46 PM
krisb accepted this revision.Mar 23 2021, 3:17 PM

LGTM, thank you!

This revision was landed with ongoing or failed builds.Mar 23 2021, 11:22 PM
This revision was automatically updated to reflect the committed changes.