[PATCH] D149276: [Clang] Fix parsing of `(auto(x))`.
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 26 11:13:52 PDT 2023
cor3ntin created this revision.
Herald added a project: All.
cor3ntin requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: cfe-commits, jplehr, sstefan1.
Herald added a project: clang.
Allow auto(x) to appear in a parenthesis
expression.
The pattern (auto( can appear as part of a declarator,
so the parser is modified to avoid the ambiguity,
in a way consistent with the proposed resolution to CWG1223.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149276
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseTentative.cpp
clang/lib/Parse/Parser.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/Parser/cxx1z-decomposition.cpp
clang/test/Parser/cxx2b-auto-x.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149276.517247.patch
Type: text/x-patch
Size: 14339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230426/bcd774c0/attachment.bin>
More information about the cfe-commits
mailing list