[PATCH] D129158: [pseudo] Define recovery strategy as grammar extension.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 6 06:03:31 PDT 2022
sammccall marked an inline comment as done.
sammccall added inline comments.
================
Comment at: clang-tools-extra/pseudo/lib/cxx/CXX.cpp:54
+ return {
+ {(ExtensionID)Extension::Brackets, recoverBrackets},
+ };
----------------
hokein wrote:
> 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`.
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)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129158/new/
https://reviews.llvm.org/D129158
More information about the cfe-commits
mailing list