From f63adf5b67f7a25b15f81d3a1a207aba4f226dc4 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 28 May 2021 14:49:18 -0400 Subject: Revert "[clang][Parse] Add parsing support for C++ attributes on using-declarations" This reverts commit dc672999a9b12a156991891dc400308b52d569ba. Breaks check-clang everywhere, see https://reviews.llvm.org/D91630 --- clang/lib/Parse/ParseDecl.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'clang/lib/Parse/ParseDecl.cpp') diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 76d031b..fda4275 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -1650,13 +1650,6 @@ void Parser::ProhibitCXX11Attributes(ParsedAttributesWithRange &Attrs, } } -void Parser::DiagnoseCXX11AttributeExtension(ParsedAttributesWithRange &Attrs) { - for (const ParsedAttr &PA : Attrs) { - if (PA.isCXX11Attribute() || PA.isC2xAttribute()) - Diag(PA.getLoc(), diag::ext_cxx11_attr_placement) << PA << PA.getRange(); - } -} - // Usually, `__attribute__((attrib)) class Foo {} var` means that attribute // applies to var, not the type Foo. // As an exception to the rule, __declspec(align(...)) before the -- cgit v1.1