[PATCH] D99278: [clang][parser] Allow GNU-style attributes in struct declarations
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 25 00:50:53 PDT 2021
tbaeder updated this revision to Diff 333226.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99278/new/
https://reviews.llvm.org/D99278
Files:
clang/lib/Parse/ParseDeclCXX.cpp
Index: clang/lib/Parse/ParseDeclCXX.cpp
===================================================================
--- clang/lib/Parse/ParseDeclCXX.cpp
+++ clang/lib/Parse/ParseDeclCXX.cpp
@@ -1933,7 +1933,8 @@
TemplateParams ? TemplateParams->size() : 0));
} else {
if (TUK != Sema::TUK_Declaration && TUK != Sema::TUK_Definition)
- ProhibitAttributes(attrs);
+ ProhibitCXX11Attributes(attrs, diag::err_attributes_not_allowed,
+ /* DiagnoseEmptyAttrs=*/true);
if (TUK == Sema::TUK_Definition &&
TemplateInfo.Kind == ParsedTemplateInfo::ExplicitInstantiation) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99278.333226.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210325/fe5eb8f8/attachment.bin>
More information about the cfe-commits
mailing list