Searched refs:UsedAttr (Results 1 – 16 of 16) sorted by relevance
27 namespace UsedAttr { namespace
351 if (CheckUsedAttr && getMostRecentDecl()->hasAttr<UsedAttr>()) in isUsed()
8591 if (D->hasAttr<AliasAttr>() || D->hasAttr<UsedAttr>()) in DeclMustBeEmitted()
450 if (CheckUsedAttr && getMostRecentDecl()->hasAttr<UsedAttr>()) in isUsed()
10713 if (D->hasAttr<AliasAttr>() || D->hasAttr<UsedAttr>()) in DeclMustBeEmitted()
2429 if (UsedAttr *OldAttr = Old->getMostRecentDecl()->getAttr<UsedAttr>()) { in mergeDeclAttributes()2430 UsedAttr *NewAttr = OldAttr->clone(Context); in mergeDeclAttributes()2502 if (isa<UsedAttr>(I)) in mergeDeclAttributes()8254 !NewFD->hasAttr<UsedAttr>()) in ActOnFunctionDeclarator()10615 if (UsedAttr *Attr = VD->getAttr<UsedAttr>()) { in FinalizeDeclaration()10618 VD->dropAttr<UsedAttr>(); in FinalizeDeclaration()
1829 UsedAttr(Attr.getRange(), S.Context, in handleUsedAttr()4780 D->addAttr(UsedAttr::CreateImplicit(S.Context)); in handleMSP430InterruptAttr()4905 D->addAttr(UsedAttr::CreateImplicit(S.Context)); in handleAnyX86InterruptAttr()
394 if (D.hasAttr<UsedAttr>()) in EmitStaticVarDecl()
939 if (D && D->hasAttr<UsedAttr>()) in SetCommonAttributes()2328 if (!D->template hasAttr<UsedAttr>()) in MaybeHandleStaticInExternC()
2827 if (UsedAttr *OldAttr = Old->getMostRecentDecl()->getAttr<UsedAttr>()) { in mergeDeclAttributes()2828 UsedAttr *NewAttr = OldAttr->clone(Context); in mergeDeclAttributes()2954 if (isa<UsedAttr>(I)) in mergeDeclAttributes()9460 !NewFD->hasAttr<UsedAttr>()) in ActOnFunctionDeclarator()13281 if (UsedAttr *Attr = VD->getAttr<UsedAttr>()) { in FinalizeDeclaration()13284 VD->dropAttr<UsedAttr>(); in FinalizeDeclaration()
6334 D->addAttr(UsedAttr::CreateImplicit(S.Context)); in handleMSP430InterruptAttr()6453 D->addAttr(UsedAttr::CreateImplicit(S.Context)); in handleAnyX86InterruptAttr()6520 D->addAttr(UsedAttr::CreateImplicit(S.Context)); in handleWebAssemblyExportNameAttr()
2548 if (Method->hasAttr<UsedAttr>()) { in VisitCXXMethodDecl()
445 if (D.hasAttr<UsedAttr>()) in EmitStaticVarDecl()
1813 if (D && D->hasAttr<UsedAttr>()) in SetCommonAttributes()4037 if (!D->template hasAttr<UsedAttr>()) in MaybeHandleStaticInExternC()
7513 cxx_method_decl->addAttr(clang::UsedAttr::CreateImplicit(getASTContext())); in AddMethodToCXXRecordType()