This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Utility/UriParser] Return results as 'struct URI'
ClosedPublic

Authored by mgorny on Oct 22 2021, 6:37 AM.

Details

Summary

Return results of URI parsing as 'struct URI' instead of assigning them
via output parameters.

Diff Detail

Event Timeline

mgorny requested review of this revision.Oct 22 2021, 6:37 AM
mgorny created this revision.

nice

lldb/include/lldb/Utility/UriParser.h
15–29

As we're touching these anyway, let's also move the parse method into the URI class. Having a separate class for a single static method is (and was) useless.

lldb/unittests/Utility/UriParserTest.cpp
5–6

I don't think this class makes sense anymore. You can just inline the values.

mgorny updated this revision to Diff 381535.Oct 22 2021, 7:13 AM

Replace UriParser::Parse() with URI::Parse(). Simplify tests.

mgorny marked 2 inline comments as done.Oct 22 2021, 7:13 AM
labath accepted this revision.Oct 25 2021, 1:10 AM

cool

This revision is now accepted and ready to land.Oct 25 2021, 1:10 AM
This revision was landed with ongoing or failed builds.Oct 25 2021, 1:58 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2021, 1:58 AM