This is an archive of the discontinued LLVM Phabricator instance.

Unify libstdcpp and libcxx formatters for `std::optional`
ClosedPublic

Authored by zrthxn on Dec 6 2021, 12:59 PM.

Diff Detail

Event Timeline

zrthxn requested review of this revision.Dec 6 2021, 12:59 PM
zrthxn created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2021, 12:59 PM
zrthxn updated this revision to Diff 392154.Dec 6 2021, 1:03 PM

Squash many commits

wallace requested changes to this revision.Dec 6 2021, 1:41 PM

back to your queue until you get things working

This revision now requires changes to proceed.Dec 6 2021, 1:41 PM
zrthxn updated this revision to Diff 392197.Dec 6 2021, 3:04 PM

Added libcxx support

good job! Only some cosmetic changes are needed and you also need to delete the python code

lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
774–778

remove this

916–921

same here

948–949

same

lldb/source/Plugins/Language/CPlusPlus/Generic.h
1–2 ↗(On Diff #392197)

make this one line (=80 chars)

10–11 ↗(On Diff #392197)

this shouldn't be a comment, and use

LLDB_SOURCE_PLUGINS_LANGUAGE_CPLUSPLUS_GENERIC_H
26 ↗(On Diff #392197)

LLDB_SOURCE_PLUGINS_LANGUAGE_CPLUSPLUS_GENERIC_H

lldb/source/Plugins/Language/CPlusPlus/GenericOptional.cpp
1–2 ↗(On Diff #392197)

80 chars

lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp
78–84 ↗(On Diff #392197)

delete this entire file

wallace requested changes to this revision.Dec 6 2021, 3:08 PM
This revision now requires changes to proceed.Dec 6 2021, 3:08 PM
zrthxn updated this revision to Diff 392305.Dec 7 2021, 1:03 AM

Removed old/dead code and commented out sections

zrthxn updated this revision to Diff 392308.Dec 7 2021, 1:16 AM

Cosmetic changes and incorporate requested changes from review

wallace accepted this revision.Dec 8 2021, 9:54 AM

great job!

This revision is now accepted and ready to land.Dec 8 2021, 9:54 AM