[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Wed May 28 13:10:40 PDT 2025
================
@@ -1842,8 +1842,7 @@ void Parser::ProhibitCXX11Attributes(ParsedAttributes &Attrs,
continue;
if (AL.getKind() == ParsedAttr::UnknownAttribute) {
if (WarnOnUnknownAttrs)
- Diag(AL.getLoc(), diag::warn_unknown_attribute_ignored)
- << AL << AL.getRange();
+ Actions.DiagnoseUnknownAttribute(AL);
----------------
a-tarasyuk wrote:
I'll check, though it seems that unknown attributes should also be marked as invalid
https://github.com/llvm/llvm-project/pull/141305
More information about the cfe-commits
mailing list