[PATCH] D130150: [pseudo] Eliminate multiple-specified-types ambiguities in the grammar.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 20 00:36:21 PDT 2022


sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added a project: All.
sammccall requested review of this revision.
Herald added subscribers: cfe-commits, alextsao1999.
Herald added a project: clang-tools-extra.

Motivating case: `foo bar;` is not a declaration of nothing with `foo` and `bar`
both types.

This is a common and critical ambiguity, and I expect eliminating it in the
grammar is more efficient than using guards (without caching).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130150

Files:
  clang-tools-extra/pseudo/lib/cxx/cxx.bnf
  clang-tools-extra/pseudo/test/cxx/decl-specifier-seq.cpp
  clang-tools-extra/pseudo/test/glr.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130150.446058.patch
Type: text/x-patch
Size: 9484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220720/0c67427c/attachment-0001.bin>


More information about the cfe-commits mailing list