• Home
  • Raw
  • Download

Lines Matching refs:hasAttr

1200           && Previous.getFoundDecl()->hasAttr<OverloadableAttr>());  in AllowOverloadingOfFunction()
1382 if (D->isInvalidDecl() || D->isUsed() || D->hasAttr<UnusedAttr>()) in ShouldWarnIfUnusedFileScopedDecl()
1454 if (D->isReferenced() || D->isUsed() || D->hasAttr<UnusedAttr>() || in ShouldDiagnoseUnusedDecl()
1455 D->hasAttr<ObjCPreciseLifetimeAttr>()) in ShouldDiagnoseUnusedDecl()
1486 if (TT->getDecl()->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1497 if (Tag->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1501 if (!RD->hasTrivialDestructor() && !RD->hasAttr<WarnUnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1512 if (!CD->isTrivial() && !RD->hasAttr<WarnUnusedAttr>()) in ShouldDiagnoseUnusedDecl()
2451 if (CDA && !oldDecl->hasAttr<CarriesDependencyAttr>()) { in mergeParamDeclAttributes()
2570 return ((FD->hasAttr<GNUInlineAttr>() || LangOpts.GNUInline) && in canRedefineFunction()
2720 if (New->hasAttr<InternalLinkageAttr>() && in MergeFunctionDecl()
2721 !Old->hasAttr<InternalLinkageAttr>()) { in MergeFunctionDecl()
2819 !New->hasAttr<GNUInlineAttr>() && in MergeFunctionDecl()
2828 if (New->hasAttr<GNUInlineAttr>() && in MergeFunctionDecl()
2829 Old->isInlined() && !Old->hasAttr<GNUInlineAttr>()) { in MergeFunctionDecl()
2977 if (NRA && !Old->hasAttr<CXX11NoReturnAttr>()) { in MergeFunctionDecl()
2988 if (CDA && !Old->hasAttr<CarriesDependencyAttr>()) { in MergeFunctionDecl()
3441 if (New->hasAttr<WeakImportAttr>() && in MergeVarDecl()
3443 !Old->hasAttr<WeakImportAttr>()) { in MergeVarDecl()
3450 if (New->hasAttr<InternalLinkageAttr>() && in MergeVarDecl()
3451 !Old->hasAttr<InternalLinkageAttr>()) { in MergeVarDecl()
5361 if (var->hasAttr<BlocksAttr>()) in inferObjCARCLifetime()
5564 if (S.getLangOpts().CPlusPlus && !FD->hasAttr<GNUInlineAttr>()) in isFunctionDefinitionDiscarded()
5607 if (!D->isInExternCContext() || D->template hasAttr<OverloadableAttr>()) in isIncompleteDeclExternC()
5612 (D->template hasAttr<CUDADeviceAttr>() || in isIncompleteDeclExternC()
5613 D->template hasAttr<CUDAHostAttr>())) in isIncompleteDeclExternC()
6086 (NewVD->hasAttr<CUDASharedAttr>() || in ActOnVariableDeclarator()
6087 NewVD->hasAttr<CUDAConstantAttr>())) { in ActOnVariableDeclarator()
6095 assert(!NewVD->hasAttr<DLLImportAttr>() || in ActOnVariableDeclarator()
6587 if (FD && !FD->hasAttr<OpenCLKernelAttr>()) { in CheckVariableDeclarationType()
6602 && !NewVD->hasAttr<BlocksAttr>()) { in CheckVariableDeclarationType()
6612 if (isVM || NewVD->hasAttr<CleanupAttr>() || in CheckVariableDeclarationType()
6613 NewVD->hasAttr<BlocksAttr>()) in CheckVariableDeclarationType()
6667 if (!NewVD->hasLocalStorage() && NewVD->hasAttr<BlocksAttr>()) { in CheckVariableDeclarationType()
6673 if (isVM && NewVD->hasAttr<BlocksAttr>()) { in CheckVariableDeclarationType()
7880 !NewFD->hasAttr<SectionAttr>()) { in ActOnFunctionDeclarator()
7952 !NewFD->hasAttr<UsedAttr>()) in ActOnFunctionDeclarator()
8186 if (NewFD->hasAttr<OverloadableAttr>() && in ActOnFunctionDeclarator()
8240 if (NewFD->hasAttr<OpenCLKernelAttr>()) { in ActOnFunctionDeclarator()
8352 if (!getLangOpts().CPlusPlus && !NewFD->hasAttr<OverloadableAttr>()) { in CheckFunctionDeclaration()
8381 if (OldDecl->hasAttr<OverloadableAttr>()) { in CheckFunctionDeclaration()
8382 if (!getLangOpts().CPlusPlus && !NewFD->hasAttr<OverloadableAttr>()) { in CheckFunctionDeclaration()
8600 << FD->hasAttr<OpenCLKernelAttr>(); in CheckMain()
9246 if (VDecl->hasAttr<DLLImportAttr>() && !VDecl->isStaticDataMember()) { in AddInitializerToDecl()
9416 if (VDecl->hasAttr<BlocksAttr>()) in AddInitializerToDecl()
9800 if (!Var->hasAttr<AliasAttr>()) { in ActOnUninitializedDecl()
10020 if (Stack->CurrentValue && !var->hasAttr<SectionAttr>()) { in CheckCompleteVariableDeclaration()
10044 if (var->hasAttr<BlocksAttr>()) { in CheckCompleteVariableDeclaration()
10226 if (!VD->hasAttr<TypeTagForDatatypeAttr>() || in FinalizeDeclaration()
10493 if (New->hasAttr<BlocksAttr>()) { in ActOnParamDeclarator()
10523 !(*Param)->hasAttr<UnusedAttr>()) { in DiagnoseUnusedParameters()
10709 if (FD->hasAttr<OpenCLKernelAttr>()) in ShouldWarnAboutMissingPrototype()
10943 if (FD->hasAttr<DLLImportAttr>() && !FD->isInlined() && in ActOnStartOfFunctionDef()
10945 assert(!FD->hasAttr<DLLExportAttr>()); in ActOnStartOfFunctionDef()
11087 (!FD->getPreviousDecl()->hasAttr<GNUInlineAttr>())) in ActOnFinishFunctionBody()
11093 if (FD->hasImplicitReturnZero() || FD->hasAttr<NakedAttr>()) in ActOnFinishFunctionBody()
11270 if (FD && FD->hasAttr<NakedAttr>()) { in ActOnFinishFunctionBody()
11427 if (!FD->hasAttr<FormatAttr>()) { in AddKnownFunctionAttributes()
11442 if (!FD->hasAttr<FormatAttr>()) in AddKnownFunctionAttributes()
11455 if (!FD->hasAttr<ConstAttr>()) in AddKnownFunctionAttributes()
11460 !FD->hasAttr<ReturnsTwiceAttr>()) in AddKnownFunctionAttributes()
11463 if (Context.BuiltinInfo.isNoThrow(BuiltinID) && !FD->hasAttr<NoThrowAttr>()) in AddKnownFunctionAttributes()
11465 if (Context.BuiltinInfo.isConst(BuiltinID) && !FD->hasAttr<ConstAttr>()) in AddKnownFunctionAttributes()
11469 !FD->hasAttr<CUDADeviceAttr>() && !FD->hasAttr<CUDAHostAttr>()) { in AddKnownFunctionAttributes()
11497 if (!FD->hasAttr<FormatAttr>()) in AddKnownFunctionAttributes()
11507 if (!FD->hasAttr<FormatArgAttr>()) in AddKnownFunctionAttributes()
13214 if (!FD->hasAttr<UnavailableAttr>()) in CheckNontrivialField()
13584 if (!FD->hasAttr<UnavailableAttr>()) { in ActOnFields()
14291 assert(ED->hasAttr<FlagEnumAttr>() && "looking for value in non-flag enum"); in IsValueInFlagEnum()
14391 bool Packed = Enum->hasAttr<PackedAttr>(); in ActOnEnumBody()
14536 if (Enum->hasAttr<FlagEnumAttr>()) { in ActOnEnumBody()
14759 if (!PrevDecl->hasAttr<AliasAttr>()) in ActOnPragmaWeakAlias()