@@ -2314,10 +2314,12 @@ Parser::DeclGroupPtrTy
Parser::ParseOpenMPDeclarativeDirectiveWithExtDecl(
// Here we expect to see some function declaration.
if (AS == AS_none) {
assert(TagType == DeclSpec::TST_unspecified);
-ParsedAttributes EmptyDeclSpec
@@ -480,10 +468,7 @@ Decl *Parser::ParseExportDeclaration() {
while (!tryParseMisplacedModuleImport() && Tok.isNot(tok::r_brace) &&
Tok.isNot(tok::eof)) {
-ParsedAttributes DeclAttrs(AttrFactory);
-MaybeParseCXX11Attributes(DeclAttrs);
Mathy
https://github.com/Mathys-Gasnier created
https://github.com/llvm/llvm-project/pull/117148
Not all callers of `ParseExternalDeclaration` were parsing gnu attributes, this
caused issues with namespaces declarations attributes needing to be in a
specific order (See #73890).
This PR fixes this in
@@ -267,9 +267,11 @@ void Parser::ParseInnerNamespace(const
InnerNamespaceInfoList &InnerNSs,
while (!tryParseMisplacedModuleImport() && Tok.isNot(tok::r_brace) &&
Tok.isNot(tok::eof)) {
ParsedAttributes DeclAttrs(AttrFactory);
- MaybeParseCXX11Attrib
@@ -267,9 +267,11 @@ void Parser::ParseInnerNamespace(const
InnerNamespaceInfoList &InnerNSs,
while (!tryParseMisplacedModuleImport() && Tok.isNot(tok::r_brace) &&
Tok.isNot(tok::eof)) {
ParsedAttributes DeclAttrs(AttrFactory);
- MaybeParseCXX11Attrib
https://github.com/Mathys-Gasnier updated
https://github.com/llvm/llvm-project/pull/117148
>From 086b2e21da4febd31789fe717bae526af625627e Mon Sep 17 00:00:00 2001
From: Mathys-Gasnier
Date: Thu, 21 Nov 2024 11:08:41 +0100
Subject: [PATCH 1/2] [Clang] [Parser] Fixing all callers of
`ParseExtern
@@ -267,9 +267,11 @@ void Parser::ParseInnerNamespace(const
InnerNamespaceInfoList &InnerNSs,
while (!tryParseMisplacedModuleImport() && Tok.isNot(tok::r_brace) &&
Tok.isNot(tok::eof)) {
ParsedAttributes DeclAttrs(AttrFactory);
- MaybeParseCXX11Attrib