| /freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/ |
| D | Consumed.cpp | 197 QT->getAsCXXRecordDecl()->getAttr<ConsumableAttr>(); in mapConsumableAttrState() 267 switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) { in testsFor() 584 const CallableWhenAttr *CWAttr = FunDecl->getAttr<CallableWhenAttr>(); in checkCallability() 633 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) { in handleCall() 647 if (ReturnTypestateAttr *RT = Param->getAttr<ReturnTypestateAttr>()) in handleCall() 666 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) { in handleCall() 692 if (ReturnTypestateAttr *RTA = Fun->getAttr<ReturnTypestateAttr>()) in propagateReturnType() 780 if (ReturnTypestateAttr *RTA = Constructor->getAttr<ReturnTypestateAttr>()) { in VisitCXXConstructExpr() 861 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) in VisitParmVarDecl() 1095 const ReturnTypestateAttr *RTA = Param->getAttr<ReturnTypestateAttr>(); in checkParamsForReturnTypestate() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/ |
| D | SemaCUDA.cpp | 32 if (auto *A = D->getAttr<AttrT>()) in hasExplicitAttr() 259 if (auto *A = D->getAttr<AttrT>()) in hasImplicitAttr() 334 (HasD && !MemberDecl->getAttr<CUDADeviceAttr>()->isImplicit()) || in inferCUDATargetForImplicitSpecialMember() 335 (HasH && !MemberDecl->getAttr<CUDAHostAttr>()->isImplicit()); in inferCUDATargetForImplicitSpecialMember() 927 if (AttrTy *Attribute = TemplateFD.getAttr<AttrTy>()) { in copyAttrIfPresent()
|
| D | SemaDeclAttr.cpp | 273 if (const auto *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion() 283 if (const auto *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion() 1035 if (const auto *NBA = D->getAttr<NoBuiltinAttr>()) in handleNoBuiltinAttr() 2134 if (VecReturnAttr *A = D->getAttr<VecReturnAttr>()) { in handleVecReturnAttr() 2660 T *existingAttr = D->getAttr<T>(); in mergeVisibilityAttr() 3011 WorkGroupAttr *Existing = D->getAttr<WorkGroupAttr>(); in handleWorkGroupSize() 3034 D->getAttr<OpenCLIntelReqdSubGroupSizeAttr>(); in handleSubGroupSize() 3059 if (VecTypeHintAttr *A = D->getAttr<VecTypeHintAttr>()) { in handleVecTypeHint() 3078 if (SectionAttr *ExistingAttr = D->getAttr<SectionAttr>()) { in mergeSectionAttr() 3162 if (const auto *ExistingAttr = D->getAttr<CodeSegAttr>()) { in mergeCodeSegAttr() [all …]
|
| D | SemaDecl.cpp | 2886 if (UsedAttr *OldAttr = Old->getMostRecentDecl()->getAttr<UsedAttr>()) { in mergeDeclAttributes() 2891 if (RetainAttr *OldAttr = Old->getMostRecentDecl()->getAttr<RetainAttr>()) { in mergeDeclAttributes() 2903 const auto *OldConstInit = Old->getAttr<ConstInitAttr>(); in mergeDeclAttributes() 2904 const auto *NewConstInit = New->getAttr<ConstInitAttr>(); in mergeDeclAttributes() 2938 if (AsmLabelAttr *NewA = New->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes() 2939 if (AsmLabelAttr *OldA = Old->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes() 2949 << isa<FunctionDecl>(Old) << New->getAttr<AsmLabelAttr>()->getRange(); in mergeDeclAttributes() 2954 if (const auto *NewAbiTagAttr = New->getAttr<AbiTagAttr>()) { in mergeDeclAttributes() 2955 if (const auto *OldAbiTagAttr = Old->getAttr<AbiTagAttr>()) { in mergeDeclAttributes() 2982 const auto *NewCSA = New->getAttr<CodeSegAttr>(); in mergeDeclAttributes() [all …]
|
| D | SemaAvailability.cpp | 425 if (const auto *AL = OffendingDecl->getAttr<DeprecatedAttr>()) in DoEmitAvailabilityWarning() 437 if (auto AL = OffendingDecl->getAttr<UnavailableAttr>()) { in DoEmitAvailabilityWarning() 489 if (auto AL = OffendingDecl->getAttr<DeprecatedAttr>()) in DoEmitAvailabilityWarning()
|
| D | SemaStmtAsm.cpp | 141 S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in CheckNakedParmReference() 147 S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in CheckNakedParmReference() 199 if (AsmLabelAttr *Attr = Variable->getAttr<AsmLabelAttr>()) in extractRegisterName()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/AST/ |
| D | MicrosoftCXXABI.cpp | 199 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel() 211 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
|
| D | TypeLoc.cpp | 430 const Attr *A = ATL.getAttr(); in findNullabilityLoc() 497 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange()
|
| D | DeclBase.cpp | 492 if (auto *attr = Definition->getAttr<ExternalSourceSymbolAttr>()) in getExternalSourceSymbolAttr() 495 return dcd->getAttr<ExternalSourceSymbolAttr>(); in getExternalSourceSymbolAttr() 507 if (auto *AA = getAttr<AliasAttr>()) in getDefiningAttr() 509 if (auto *IFA = getAttr<IFuncAttr>()) in getDefiningAttr() 511 if (auto *NZA = getAttr<LoaderUninitializedAttr>()) in getDefiningAttr()
|
| D | Decl.cpp | 226 if (const auto *A = D->getAttr<TypeVisibilityAttr>()) { in getVisibilityOf() 232 if (const auto *A = D->getAttr<VisibilityAttr>()) { in getVisibilityOf() 2176 if (const auto *SAA = getAttr<SelectAnyAttr>()) in isThisDeclarationADefinition() 3282 if (const auto *ABAA = getAttr<ArmBuiltinAliasAttr>()) { in getBuiltinID() 3284 } else if (const auto *BAA = getAttr<BuiltinAliasAttr>()) { in getBuiltinID() 3286 } else if (const auto *A = getAttr<BuiltinAttr>()) { in getBuiltinID() 4416 if (const auto *A = getAttr<EnumExtensibilityAttr>()) in isClosed()
|
| D | DeclObjC.cpp | 1008 if (const ObjCMethodFamilyAttr *attr = getAttr<ObjCMethodFamilyAttr>()) { in getMethodFamily() 1569 if (const auto *ObjCRTName = getAttr<ObjCRuntimeNameAttr>()) in getObjCRuntimeNameAsString() 2018 if (const auto *ObjCRTName = getAttr<ObjCRuntimeNameAttr>()) in getObjCRuntimeNameAsString()
|
| D | Mangle.cpp | 147 if (const AsmLabelAttr *ALA = D->getAttr<AsmLabelAttr>()) { in mangleName()
|
| /freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/ |
| D | SemaInternal.h | 57 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr() 59 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| D | CodeGenModule.cpp | 377 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in checkAliases() 1172 if (const TLSModelAttr *Attr = D.getAttr<TLSModelAttr>()) { in setTLSMode() 1285 FD->getAttr<CPUSpecificAttr>(), in getMangledNameImpl() 1289 AppendTargetMangling(CGM, FD->getAttr<TargetAttr>(), Out); in getMangledNameImpl() 1606 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenOpenCLArgMetadata() 1953 const auto *TD = FD ? FD->getAttr<TargetAttr>() : nullptr; in GetCPUAndFeaturesAttributes() 1954 const auto *SD = FD ? FD->getAttr<CPUSpecificAttr>() : nullptr; in GetCPUAndFeaturesAttributes() 2011 if (auto *SA = D->getAttr<PragmaClangBSSSectionAttr>()) in setNonAliasAttributes() 2013 if (auto *SA = D->getAttr<PragmaClangDataSectionAttr>()) in setNonAliasAttributes() 2015 if (auto *SA = D->getAttr<PragmaClangRodataSectionAttr>()) in setNonAliasAttributes() [all …]
|
| D | CodeGenFunction.cpp | 601 if (const VecTypeHintAttr *A = FD->getAttr<VecTypeHintAttr>()) { in EmitOpenCLKernelMetadata() 616 if (const WorkGroupSizeHintAttr *A = FD->getAttr<WorkGroupSizeHintAttr>()) { in EmitOpenCLKernelMetadata() 624 if (const ReqdWorkGroupSizeAttr *A = FD->getAttr<ReqdWorkGroupSizeAttr>()) { in EmitOpenCLKernelMetadata() 633 FD->getAttr<OpenCLIntelReqdSubGroupSizeAttr>()) { in EmitOpenCLKernelMetadata() 668 CurCodeDecl->getAttr<ReturnsNonNullAttr>()); in requiresReturnValueCheck() 812 if (const auto *XRayAttr = D ? D->getAttr<XRayInstrumentAttr>() : nullptr) { in StartFunction() 823 if (const auto *LogArgs = D->getAttr<XRayLogArgsAttr>()) in StartFunction() 864 D ? D->getAttr<PatchableFunctionEntryAttr>() : nullptr) { in StartFunction() 928 CurCodeDecl && CurCodeDecl->getAttr<ReturnsNonNullAttr>())) in StartFunction() 1192 if (const auto *VecWidth = CurFuncDecl->getAttr<MinVectorWidthAttr>()) in StartFunction() [all …]
|
| D | CGDeclCXX.cpp | 210 &D, DeclAddr, D.getAttr<OMPThreadPrivateDeclAttr>()->getLocation(), in EmitCXXGlobalVarDeclInit() 538 auto *ISA = D->getAttr<InitSegAttr>(); in EmitCXXGlobalVarDeclInitFunc() 553 } else if (auto *IPA = D->getAttr<InitPriorityAttr>()) { in EmitCXXGlobalVarDeclInitFunc()
|
| D | CGDecl.cpp | 437 if (auto *SA = D.getAttr<PragmaClangBSSSectionAttr>()) in EmitStaticVarDecl() 439 if (auto *SA = D.getAttr<PragmaClangDataSectionAttr>()) in EmitStaticVarDecl() 441 if (auto *SA = D.getAttr<PragmaClangRodataSectionAttr>()) in EmitStaticVarDecl() 443 if (auto *SA = D.getAttr<PragmaClangRelroSectionAttr>()) in EmitStaticVarDecl() 446 if (const SectionAttr *SA = D.getAttr<SectionAttr>()) in EmitStaticVarDecl() 1849 : (D.getAttr<UninitializedAttr>() in EmitAutoVarInit() 2054 if (const CleanupAttr *CA = D.getAttr<CleanupAttr>()) { in EmitAutoVarCleanups()
|
| D | CGCall.cpp | 225 if (PcsAttr *PCS = D->getAttr<PcsAttr>()) in getCallingConventionForDecl() 2059 NBA = Fn->getAttr<NoBuiltinAttr>(); in ConstructAttributeList() 2114 if (auto *AllocSize = TargetDecl->getAttr<AllocSizeAttr>()) { in ConstructAttributeList() 2579 if (auto ParmNNAttr = PVD->getAttr<NonNullAttr>()) in getNonNullAttr() 2793 const auto *AVAttr = PVD->getAttr<AlignValueAttr>(); in EmitFunctionProlog() 2796 AVAttr = TOTy->getDecl()->getAttr<AlignValueAttr>(); in EmitFunctionProlog() 3614 RetNNAttr = CurCodeDecl->getAttr<ReturnsNonNullAttr>(); in EmitReturnValueCheck() 4152 auto *PS = AC.getParamDecl(I)->getAttr<PassObjectSizeAttr>(); in EmitCallArgs() 4536 AA = FuncDecl->getAttr<AlignedAttrTy>(); in AbstractAssumeAlignedAttrEmitter() 5272 if (const auto *A = FD->getAttr<CFGuardAttr>()) { in EmitCall()
|
| D | TargetInfo.cpp | 826 if (const auto *Attr = FD->getAttr<WebAssemblyImportModuleAttr>()) { in setTargetAttributes() 832 if (const auto *Attr = FD->getAttr<WebAssemblyImportNameAttr>()) { in setTargetAttributes() 838 if (const auto *Attr = FD->getAttr<WebAssemblyExportNameAttr>()) { in setTargetAttributes() 5501 const auto *TA = FD->getAttr<TargetAttr>(); in setTargetAttributes() 6319 const ARMInterruptAttr *Attr = FD->getAttr<ARMInterruptAttr>(); in setTargetAttributes() 7184 if (CUDALaunchBoundsAttr *Attr = FD->getAttr<CUDALaunchBoundsAttr>()) { in setTargetAttributes() 7699 const auto *InterruptAttr = FD->getAttr<MSP430InterruptAttr>(); in setTargetAttributes() 7780 const MipsInterruptAttr *Attr = FD->getAttr<MipsInterruptAttr>(); in setTargetAttributes() 8157 if (const auto *attr = FD->getAttr<M68kInterruptAttr>()) { in setTargetAttributes() 8231 if (FD->getAttr<AVRInterruptAttr>()) in setTargetAttributes() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/ |
| D | TransBlockObjCVariable.cpp | 136 BlocksAttr *attr = var->getAttr<BlocksAttr>(); in traverseBody()
|
| D | TransGCAttrs.cpp | 283 SourceLocation Loc = ATLs[i].first.getAttr()->getLocation(); in checkAllAtProps()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| D | FuchsiaHandleChecker.cpp | 178 return D->hasAttr<Attr>() && D->getAttr<Attr>()->getHandleType() == "Fuchsia"; in hasFuchsiaAttr() 183 D->getAttr<Attr>()->getHandleType() == "FuchsiaUnowned"; in hasFuchsiaUnownedAttr()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Index/ |
| D | IndexingContext.cpp | 22 if (auto *attr = D->getAttr<ExternalSourceSymbolAttr>()) { in isGeneratedDecl()
|
| D | IndexSymbol.cpp | 237 if (auto *Annot = D->getAttr<AnnotateAttr>()) { in getSymbolInfo()
|
| /freebsd-12-stable/contrib/llvm-project/clang/include/clang/Serialization/ |
| D | ASTWriter.h | 378 const Attr *getAttr() const { return Attribute; } in getAttr() function
|