[clang] [Clang] Improve diagnostics to show the correct position for `[[maybe_unused]]` before a using-alias (PR #223910)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 17 04:18:02 PDT 2026
================
@@ -740,7 +749,7 @@ Parser::DeclGroupPtrTy Parser::ParseUsingDeclaration(
return nullptr;
}
- ProhibitAttributes(PrefixAttrs);
+ ProhibitAttributes(PrefixAttrs, Tok.getLocation());
----------------
zyn0217 wrote:
@AlexsanderDamaceno Can you investigate the fallout of those changes? thanks!
https://github.com/llvm/llvm-project/pull/223910
More information about the cfe-commits
mailing list