[PATCH] D97271: [clang][parse] Remove dead ProhibitAttributes() call

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 23 04:56:24 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG64d06ed9c9e0: [clang][parse][NFC] Remove dead ProhibitAttributes() call (authored by tbaeder).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97271/new/

https://reviews.llvm.org/D97271

Files:
  clang/lib/Parse/ParseDecl.cpp


Index: clang/lib/Parse/ParseDecl.cpp
===================================================================
--- clang/lib/Parse/ParseDecl.cpp
+++ clang/lib/Parse/ParseDecl.cpp
@@ -4771,7 +4771,6 @@
     // If attributes exist after the enumerator, parse them.
     ParsedAttributesWithRange attrs(AttrFactory);
     MaybeParseGNUAttributes(attrs);
-    ProhibitAttributes(attrs); // GNU-style attributes are prohibited.
     if (standardAttributesAllowed() && isCXX11AttributeSpecifier()) {
       if (getLangOpts().CPlusPlus)
         Diag(Tok.getLocation(), getLangOpts().CPlusPlus17


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97271.325743.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210223/5bac3f8c/attachment.bin>


More information about the cfe-commits mailing list