[clang] Add Variadic 'dropAttrs' (PR #78476)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 17 09:24:34 PST 2024
================
@@ -7068,8 +7068,7 @@ static void checkAttributesAfterMerging(Sema &S, NamedDecl &ND) {
if (WeakRefAttr *Attr = ND.getAttr<WeakRefAttr>()) {
if (ND.isExternallyVisible()) {
S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static);
- ND.dropAttr<WeakRefAttr>();
- ND.dropAttr<AliasAttr>();
+ ND.dropAttrs<WeakRefAttr, AliasAttr>();
----------------
AaronBallman wrote:
There are more instances you can modify in this file:
https://github.com/llvm/llvm-project/blob/a96b4671b97b167230986bd2811676064c608596/clang/lib/Sema/SemaDecl.cpp#L7264
https://github.com/llvm/llvm-project/blob/a96b4671b97b167230986bd2811676064c608596/clang/lib/Sema/SemaDecl.cpp#L7270
https://github.com/llvm/llvm-project/pull/78476
More information about the cfe-commits
mailing list