diff options
author | Nico Weber <thakis@chromium.org> | 2021-05-28 14:49:18 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2021-05-28 14:49:18 -0400 |
commit | f63adf5b67f7a25b15f81d3a1a207aba4f226dc4 (patch) | |
tree | a9d5f86a558ec6b300956544e286787c54a54708 /clang/lib/Parse/ParseDecl.cpp | |
parent | 2830d924b0873b33413320650806376dbf6ee9d1 (diff) | |
download | llvm-f63adf5b67f7a25b15f81d3a1a207aba4f226dc4.zip llvm-f63adf5b67f7a25b15f81d3a1a207aba4f226dc4.tar.gz llvm-f63adf5b67f7a25b15f81d3a1a207aba4f226dc4.tar.bz2 |
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
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
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 |