================
@@ -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);
----------------
zyn0217 wrote:
Can't we simply
`ProhibitAttributes(PrefixAttrs, Tok.getLocation());` ?
https://github.com/llvm/llvm-project/pull/223910
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits