Home
last modified time | relevance | path

Searched refs:getAttr (Results 1 – 25 of 44) sorted by relevance

12

/external/clang/lib/Analysis/
DConsumed.cpp196 QT->getAsCXXRecordDecl()->getAttr<ConsumableAttr>(); in mapConsumableAttrState()
266 switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) { in testsFor()
579 const CallableWhenAttr *CWAttr = FunDecl->getAttr<CallableWhenAttr>(); in checkCallability()
630 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) { in handleCall()
646 else if (ReturnTypestateAttr *RT = Param->getAttr<ReturnTypestateAttr>()) in handleCall()
663 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) { in handleCall()
690 if (ReturnTypestateAttr *RTA = Fun->getAttr<ReturnTypestateAttr>()) in propagateReturnType()
784 if (ReturnTypestateAttr *RTA = Constructor->getAttr<ReturnTypestateAttr>()) { in VisitCXXConstructExpr()
871 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) in VisitParmVarDecl()
1121 const ReturnTypestateAttr *RTA = Param->getAttr<ReturnTypestateAttr>(); in checkParamsForReturnTypestate()
[all …]
DThreadSafety.cpp1129 if (const auto *CA = RD->getAttr<CapabilityAttr>()) in ClassifyDiagnostic()
1133 if (const auto *CA = TD->getAttr<CapabilityAttr>()) in ClassifyDiagnostic()
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp181 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel()
187 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
DMangle.cpp120 if (const AsmLabelAttr *ALA = D->getAttr<AsmLabelAttr>()) { in mangleName()
DDeclObjC.cpp887 if (const ObjCMethodFamilyAttr *attr = getAttr<ObjCMethodFamilyAttr>()) { in getMethodFamily()
1432 if (ObjCRuntimeNameAttr *ObjCRTName = getAttr<ObjCRuntimeNameAttr>()) in getObjCRuntimeNameAsString()
1858 if (ObjCRuntimeNameAttr *ObjCRTName = getAttr<ObjCRuntimeNameAttr>()) in getObjCRuntimeNameAsString()
DDecl.cpp210 if (const auto *A = D->getAttr<TypeVisibilityAttr>()) { in getVisibilityOf()
216 if (const auto *A = D->getAttr<VisibilityAttr>()) { in getVisibilityOf()
1948 if (const auto *SAA = getAttr<SelectAnyAttr>()) in isThisDeclarationADefinition()
/external/clang/include/clang/Sema/
DSemaInternal.h95 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr()
97 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
/external/clang/lib/ARCMigrate/
DTransBlockObjCVariable.cpp137 BlocksAttr *attr = var->getAttr<BlocksAttr>(); in traverseBody()
/external/clang/tools/libclang/
DCXComment.cpp216 return cxstring::createRef(HST->getAttr(AttrIdx).Name); in clang_HTMLStartTag_getAttrName()
224 return cxstring::createRef(HST->getAttr(AttrIdx).Value); in clang_HTMLStartTag_getAttrValue()
/external/clang/lib/CodeGen/
DCGDeclCXX.cpp167 &D, DeclAddr, D.getAttr<OMPThreadPrivateDeclAttr>()->getLocation(), in EmitCXXGlobalVarDeclInit()
325 auto *ISA = D->getAttr<InitSegAttr>(); in EmitCXXGlobalVarDeclInitFunc()
343 } else if (auto *IPA = D->getAttr<InitPriorityAttr>()) { in EmitCXXGlobalVarDeclInitFunc()
DCodeGenModule.cpp287 const AliasAttr *AA = D->getAttr<AliasAttr>(); in checkAliases()
307 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in checkAliases()
606 if (const TLSModelAttr *Attr = D.getAttr<TLSModelAttr>()) { in setTLSMode()
913 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) in setNonAliasAttributes()
1031 if (const SectionAttr *SA = FD->getAttr<SectionAttr>()) in SetFunctionAttributes()
1433 const AliasAttr *AA = VD->getAttr<AliasAttr>(); in GetWeakRefReference()
1567 AsmLabelAttr *Attr = FD->getAttr<AsmLabelAttr>(); in TraverseCallExpr()
1623 AsmLabelAttr *Attr = FD->getAttr<AsmLabelAttr>(); in isTriviallyRecursive()
2364 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in EmitGlobalVarDefinition()
2721 if (const ConstructorAttr *CA = D->getAttr<ConstructorAttr>()) in EmitGlobalFunctionDefinition()
[all …]
DCGCall.cpp164 if (PcsAttr *PCS = D->getAttr<PcsAttr>()) in getCallingConventionForDecl()
1571 const auto *TD = FD->getAttr<TargetAttr>(); in ConstructAttributeList()
1801 if (auto ParmNNAttr = PVD->getAttr<NonNullAttr>()) in getNonNullAttr()
1993 const auto *AVAttr = PVD->getAttr<AlignValueAttr>(); in EmitFunctionProlog()
1996 AVAttr = TOTy->getDecl()->getAttr<AlignValueAttr>(); in EmitFunctionProlog()
2484 if (auto RetNNAttr = CurCodeDecl->getAttr<ReturnsNonNullAttr>()) { in EmitFunctionEpilog()
2839 auto *PS = CalleeDecl->getParamDecl(I)->getAttr<PassObjectSizeAttr>(); in EmitCallArgs()
3662 if (const auto *AA = TargetDecl->getAttr<AssumeAlignedAttr>()) { in EmitCall()
DCodeGenFunction.cpp552 const OpenCLImageAccessAttr *A = parm->getAttr<OpenCLImageAccessAttr>(); in GenOpenCLArgMetadata()
588 if (const VecTypeHintAttr *A = FD->getAttr<VecTypeHintAttr>()) { in EmitOpenCLKernelMetadata()
604 if (const WorkGroupSizeHintAttr *A = FD->getAttr<WorkGroupSizeHintAttr>()) { in EmitOpenCLKernelMetadata()
613 if (const ReqdWorkGroupSizeAttr *A = FD->getAttr<ReqdWorkGroupSizeAttr>()) { in EmitOpenCLKernelMetadata()
DCGDecl.cpp375 if (const SectionAttr *SA = D.getAttr<SectionAttr>()) in EmitStaticVarDecl()
1403 if (const CleanupAttr *CA = D.getAttr<CleanupAttr>()) { in EmitAutoVarCleanups()
DTargetInfo.cpp4837 const ARMInterruptAttr *Attr = FD->getAttr<ARMInterruptAttr>(); in setTargetAttributes()
5492 if (CUDALaunchBoundsAttr *Attr = FD->getAttr<CUDALaunchBoundsAttr>()) { in setTargetAttributes()
5900 if (const MSP430InterruptAttr *attr = FD->getAttr<MSP430InterruptAttr>()) { in setTargetAttributes()
5968 const MipsInterruptAttr *Attr = FD->getAttr<MipsInterruptAttr>(); in setTargetAttributes()
6334 const ReqdWorkGroupSizeAttr *Attr = FD->getAttr<ReqdWorkGroupSizeAttr>(); in setTargetAttributes()
6511 if (const auto Attr = FD->getAttr<AMDGPUNumVGPRAttr>()) { in setTargetAttributes()
6518 if (const auto Attr = FD->getAttr<AMDGPUNumSGPRAttr>()) { in setTargetAttributes()
/external/clang/lib/Sema/
DSemaAttr.cpp381 if (auto A = Decl->getAttr<SectionAttr>()) in UnifySection()
384 if (auto A = OtherDecl->getAttr<SectionAttr>()) in UnifySection()
DSemaDeclAttr.cpp249 if (AttrTy *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion()
1721 if (VecReturnAttr *A = D->getAttr<VecReturnAttr>()) { in handleVecReturnAttr()
2178 T *existingAttr = D->getAttr<T>(); in mergeVisibilityAttr()
2501 WorkGroupAttr *Existing = D->getAttr<WorkGroupAttr>(); in handleWorkGroupSize()
2531 if (VecTypeHintAttr *A = D->getAttr<VecTypeHintAttr>()) { in handleVecTypeHint()
2546 if (SectionAttr *ExistingAttr = D->getAttr<SectionAttr>()) { in mergeSectionAttr()
3500 if (OptimizeNoneAttr *Optnone = D->getAttr<OptimizeNoneAttr>()) { in mergeAlwaysInlineAttr()
3551 if (OptimizeNoneAttr *Optnone = D->getAttr<OptimizeNoneAttr>()) { in mergeMinSizeAttr()
3565 if (AlwaysInlineAttr *Inline = D->getAttr<AlwaysInlineAttr>()) { in mergeOptimizeNoneAttr()
3570 if (MinSizeAttr *MinSize = D->getAttr<MinSizeAttr>()) { in mergeOptimizeNoneAttr()
[all …]
DSemaStmtAsm.cpp92 S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in CheckNakedParmReference()
98 S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in CheckNakedParmReference()
DSemaDecl.cpp2373 if (UsedAttr *OldAttr = Old->getMostRecentDecl()->getAttr<UsedAttr>()) { in mergeDeclAttributes()
2385 if (AsmLabelAttr *NewA = New->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes()
2386 if (AsmLabelAttr *OldA = Old->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes()
2396 << isa<FunctionDecl>(Old) << New->getAttr<AsmLabelAttr>()->getRange(); in mergeDeclAttributes()
2450 const CarriesDependencyAttr *CDA = newDecl->getAttr<CarriesDependencyAttr>(); in mergeParamDeclAttributes()
2644 const auto *AttrA = A->getAttr<PassObjectSizeAttr>(); in hasIdenticalPassObjectSizeAttrs()
2645 const auto *AttrB = B->getAttr<PassObjectSizeAttr>(); in hasIdenticalPassObjectSizeAttrs()
2976 const CXX11NoReturnAttr *NRA = New->getAttr<CXX11NoReturnAttr>(); in MergeFunctionDecl()
2987 const CarriesDependencyAttr *CDA = New->getAttr<CarriesDependencyAttr>(); in MergeFunctionDecl()
5404 if (WeakAttr *Attr = ND.getAttr<WeakAttr>()) { in checkAttributesAfterMerging()
[all …]
DSemaDeclCXX.cpp1455 if (FinalAttr *FA = CXXBaseDecl->getAttr<FinalAttr>()) { in CheckBaseSpecifier()
1893 if (OverrideAttr *OA = D->getAttr<OverrideAttr>()) { in CheckOverrideControl()
1897 } else if (FinalAttr *FA = D->getAttr<FinalAttr>()) { in CheckOverrideControl()
1912 if (OverrideAttr *OA = D->getAttr<OverrideAttr>()) { in CheckOverrideControl()
1918 if (FinalAttr *FA = D->getAttr<FinalAttr>()) { in CheckOverrideControl()
1968 FinalAttr *FA = Old->getAttr<FinalAttr>(); in CheckIfOverriddenFunctionIsMarkedFinal()
4690 if (Member->getAttr<DLLExportAttr>()) { in ReferenceDllExportedMethods()
4957 if (FinalAttr *FA = Record->getAttr<FinalAttr>()) { in CheckCompletedCXXClass()
7250 if (const VisibilityAttr *Attr = Namespc->getAttr<VisibilityAttr>()) in ActOnStartNamespaceDef()
/external/clang/unittests/AST/
DCommentParser.cpp403 StringRef ActualName = HST->getAttr(0).Name; in HasHTMLStartTagAt()
409 StringRef ActualValue = HST->getAttr(0).Value; in HasHTMLStartTagAt()
/external/clang/include/clang/Serialization/
DASTWriter.h341 const Attr *getAttr() const { return Attribute; } in getAttr() function
/external/clang/include/clang/AST/
DComment.h482 const Attribute &getAttr(unsigned Idx) const { in getAttr() function
DDeclBase.h490 template<typename T> T *getAttr() const { in getAttr() function
/external/clang/lib/Index/
DCommentToXML.cpp207 const HTMLStartTagComment::Attribute &Attr = C->getAttr(i); in printHTMLStartTagComment()

12