[PATCH] D130747: [pseudo] wip/prototype: eliminate identifier ambiguities in the grammar.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 16 15:07:42 PDT 2022


sammccall added inline comments.


================
Comment at: clang-tools-extra/pseudo/lib/cxx/cxx.bnf:39
 namespace-name := IDENTIFIER
-namespace-name := namespace-alias
-namespace-alias := IDENTIFIER
 class-name := IDENTIFIER
 class-name := simple-template-id
----------------
hokein wrote:
> this can be removed as well, but the `class-head-name` rule uses it. 
Can't we use `class-head-name := nested-name-specifier_opt type-name` as `class-name` and `type-name` now match?

(Oops, not sure how i lost this comment)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130747/new/

https://reviews.llvm.org/D130747



More information about the cfe-commits mailing list