This is an archive of the discontinued LLVM Phabricator instance.

[pseudo] Use C++17 variant to simplify the DirectiveTree::Chunk class, NFC.
ClosedPublic

Authored by hokein on Aug 8 2022, 6:23 AM.

Diff Detail

Event Timeline

hokein created this revision.Aug 8 2022, 6:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 6:23 AM
hokein requested review of this revision.Aug 8 2022, 6:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 6:23 AM
sammccall accepted this revision.Aug 9 2022, 10:35 PM

Nice!

clang-tools-extra/pseudo/lib/DirectiveTree.cpp
187

Or Dumper{OS}(T)

212–213

walk/choose seem redundant now, inline?

clang-tools-extra/pseudo/unittests/DirectiveTreeTest.cpp
47–55

nit: directiveChunk() etc would be more natural, matching adjective order in English

124

Nit: I'd always use auto& with std::get as the type is obvious

This revision is now accepted and ready to land.Aug 9 2022, 10:35 PM
hokein updated this revision to Diff 451811.Aug 11 2022, 5:24 AM
hokein marked 2 inline comments as done.

address comments.

This revision was landed with ongoing or failed builds.Aug 11 2022, 5:28 AM
This revision was automatically updated to reflect the committed changes.
hokein marked an inline comment as done.