[PATCH] D130337: [pseudo] Eliminate multiple-specified-types ambiguities using guards
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 22 02:29:02 PDT 2022
sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added subscribers: usaxena95, kadircet.
Herald added a project: All.
sammccall requested review of this revision.
Herald added subscribers: cfe-commits, alextsao1999, ilya-biryukov.
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, clangd/AST.cpp has 20% fewer
ambiguous nodes (1674->1332) after this change.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130337
Files:
clang-tools-extra/pseudo/lib/cxx/CXX.cpp
clang-tools-extra/pseudo/lib/cxx/cxx.bnf
clang-tools-extra/pseudo/test/cxx/decl-specfier-seq.cpp
clang-tools-extra/pseudo/test/fuzzer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130337.446750.patch
Type: text/x-patch
Size: 11802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220722/4cc0e1de/attachment-0001.bin>
More information about the cfe-commits
mailing list