This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFC] Extract ValueObject's expression path parsing into own class
Needs ReviewPublic

Authored by teemperor on Feb 23 2021, 9:39 AM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

A large chunk of the ValueObject implementation is the hand-written expression path parser
and nearly all of the enums in the class are just concerned with expression paths. The ValueObject
code could be far more concise if we had all the parsing logic in its own file/class. I also want to
merge the tab-completion parser for expression paths (which is currently its own separate implementation
in Variable.cpp) into the normal parser which is less awkward if the parser wasn't just an implementation
detail of ValueObject.

As I anyway had to touch all the enums I changed them to scoped enums.

Diff Detail

Event Timeline

teemperor created this revision.Feb 23 2021, 9:39 AM
teemperor requested review of this revision.Feb 23 2021, 9:39 AM