================
@@ -740,7 +749,10 @@ Parser::DeclGroupPtrTy Parser::ParseUsingDeclaration(
return nullptr;
}
- ProhibitAttributes(PrefixAttrs);
+ SourceLocation MisplacedAttrFixItLoc;
+ if (PrefixAttrs.hasAttribute(ParsedAttr::AT_Unused))
+ MisplacedAttrFixItLoc = Tok.getLocation();
+ ProhibitAttributes(PrefixAttrs, MisplacedAttrFixItLoc);
----------------
AlexsanderDamaceno wrote:
ok, gonna change it, I had put that because I thought about only apply for the
`maybe_unused`
https://github.com/llvm/llvm-project/pull/223910
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits