This is an archive of the discontinued LLVM Phabricator instance.

[pseudo] Define recovery strategy as grammar extension.
ClosedPublic

Authored by sammccall on Jul 5 2022, 1:15 PM.

Diff Detail

Event Timeline

sammccall created this revision.Jul 5 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2022, 1:15 PM
sammccall requested review of this revision.Jul 5 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2022, 1:15 PM
hokein accepted this revision.Jul 5 2022, 2:14 PM
hokein added inline comments.
clang-tools-extra/pseudo/lib/cxx/CXX.cpp
46

nit: assert Left is a left bracket?

54

btw, it is annoying to write an explicit ExtensionID<=>Extension conversion. To avoid that, what do you think of making the Symbol&Extension as an enum rather than enum class, and we still keep the qualified name usage Extension::Brackets.

This revision is now accepted and ready to land.Jul 5 2022, 2:14 PM
sammccall marked an inline comment as done.Jul 6 2022, 6:03 AM
sammccall added inline comments.
clang-tools-extra/pseudo/lib/cxx/CXX.cpp
54

I don't find it particularly annoying FWIW.
I think I'd rather deal with this (which only appears in these tables, which are regular) than implicit conversion and also polluting the namespace (even if you only *use* Extension::Brackets, cxx::Brackets still exists, ends up in code completion, can conflict with other symbols etc)

This revision was landed with ongoing or failed builds.Jul 6 2022, 6:04 AM
This revision was automatically updated to reflect the committed changes.