[PATCH] D114439: [Annotation] Allow parameter pack expansions in annotate attribute
Steffen Larsen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 23 07:01:24 PST 2021
steffenlarsen created this revision.
steffenlarsen added reviewers: erichkeane, aaron.ballman, Tyker, Naghasan.
Herald added a subscriber: jdoerfert.
steffenlarsen requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
These changes make the Clang parser recognize parameter pack expansion in attribute arguments and consume them if the attribute is marked as supporting parameter pack expansions.
Currently only the `clang::annotate` attribute will support parameter pack expansions in its arguments. The parser will issue an error diagnostic if other attributes are passed parameter pack expansion arguments.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114439
Files:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/lib/Parse/ParseDecl.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/Parser/cxx0x-attributes.cpp
clang/test/SemaTemplate/attributes.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114439.389192.patch
Type: text/x-patch
Size: 7466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211123/274a336f/attachment.bin>
More information about the cfe-commits
mailing list