This is an archive of the discontinued LLVM Phabricator instance.

Fix parsing of complicated C++ names
ClosedPublic

Authored by labath on Aug 17 2016, 6:43 AM.

Details

Summary

CPlusPlusLanguage::MethodName was not correctly parsing templated functions whose demangled name
included the return type -- the space before the function name was included in the "context" and
the context itself was not terminated correctly due to a misuse of the substr function (second
argument is length, not the end position). Fix that and add a regression test.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 68344.Aug 17 2016, 6:43 AM
labath retitled this revision from to Fix parsing of complicated C++ names.
labath updated this object.
labath added a reviewer: clayborg.
labath added a subscriber: lldb-commits.
clayborg accepted this revision.Aug 17 2016, 4:23 PM
clayborg edited edge metadata.
This revision is now accepted and ready to land.Aug 17 2016, 4:23 PM
This revision was automatically updated to reflect the committed changes.