[PATCH] D149276: [Clang] Fix parsing of `(auto(x))`.
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 17 03:24:39 PDT 2023
cor3ntin updated this revision to Diff 522979.
cor3ntin added a comment.
- When tentative parse an abstract declarator whithout auto specifier, do not classify it as a declaration based on the presence of arrow
- When tentative parse a declarion vs member access, do not annotate the token after the arrow expression as this annotation would be incorrect.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149276/new/
https://reviews.llvm.org/D149276
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseTentative.cpp
clang/lib/Parse/Parser.cpp
clang/test/CXX/drs/dr12xx.cpp
clang/test/Parser/cxx-ambig-decl-expr.cpp
clang/test/Parser/cxx1z-decomposition.cpp
clang/test/Parser/cxx2b-auto-x.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149276.522979.patch
Type: text/x-patch
Size: 18411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230517/e863c838/attachment-0001.bin>
More information about the cfe-commits
mailing list