Home
last modified time | relevance | path

Searched refs:getAttr (Results 1 – 25 of 40) 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()
1132 const ReturnTypestateAttr *RTA = Param->getAttr<ReturnTypestateAttr>(); in checkParamsForReturnTypestate()
[all …]
DThreadSafety.cpp1132 if (const auto *CA = RD->getAttr<CapabilityAttr>()) in ClassifyDiagnostic()
1136 if (const auto *CA = TD->getAttr<CapabilityAttr>()) in ClassifyDiagnostic()
DThreadSafetyCommon.cpp364 if (LockReturnedAttr* At = FD->getAttr<LockReturnedAttr>()) { in translateCallExpr()
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp155 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel()
161 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
DMangle.cpp120 if (const AsmLabelAttr *ALA = D->getAttr<AsmLabelAttr>()) { in mangleName()
DDeclObjC.cpp806 if (const ObjCMethodFamilyAttr *attr = getAttr<ObjCMethodFamilyAttr>()) { in getMethodFamily()
1218 if (ObjCRuntimeNameAttr *ObjCRTName = getAttr<ObjCRuntimeNameAttr>()) in getObjCRuntimeNameAsString()
1639 if (ObjCRuntimeNameAttr *ObjCRTName = getAttr<ObjCRuntimeNameAttr>()) in getObjCRuntimeNameAsString()
DRecordLayoutBuilder.cpp1254 if (const MaxFieldAlignmentAttr *MFAA = D->getAttr<MaxFieldAlignmentAttr>()) in InitializeLayout()
2391 if (const MaxFieldAlignmentAttr *MFAA = RD->getAttr<MaxFieldAlignmentAttr>()){ in initializeLayout()
/external/clang/include/clang/Sema/
DSemaInternal.h83 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr()
85 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.cpp168 &D, DeclPtr, D.getAttr<OMPThreadPrivateDeclAttr>()->getLocation(), in EmitCXXGlobalVarDeclInit()
317 auto *ISA = D->getAttr<InitSegAttr>(); in EmitCXXGlobalVarDeclInitFunc()
335 } else if (auto *IPA = D->getAttr<InitPriorityAttr>()) { in EmitCXXGlobalVarDeclInitFunc()
DCodeGenModule.cpp268 const AliasAttr *AA = D->getAttr<AliasAttr>(); in checkAliases()
288 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in checkAliases()
548 if (const TLSModelAttr *Attr = D.getAttr<TLSModelAttr>()) { in setTLSMode()
827 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) in setNonAliasAttributes()
910 if (const SectionAttr *SA = FD->getAttr<SectionAttr>()) in SetFunctionAttributes()
1300 const AliasAttr *AA = VD->getAttr<AliasAttr>(); in GetWeakRefReference()
1432 AsmLabelAttr *Attr = FD->getAttr<AsmLabelAttr>(); in TraverseCallExpr()
1459 AsmLabelAttr *Attr = FD->getAttr<AsmLabelAttr>(); in isTriviallyRecursive()
2082 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in EmitGlobalVarDefinition()
2486 if (const ConstructorAttr *CA = D->getAttr<ConstructorAttr>()) in EmitGlobalFunctionDefinition()
[all …]
DCodeGenFunction.cpp494 const OpenCLImageAccessAttr *A = parm->getAttr<OpenCLImageAccessAttr>(); in GenOpenCLArgMetadata()
530 if (const VecTypeHintAttr *A = FD->getAttr<VecTypeHintAttr>()) { in EmitOpenCLKernelMetadata()
546 if (const WorkGroupSizeHintAttr *A = FD->getAttr<WorkGroupSizeHintAttr>()) { in EmitOpenCLKernelMetadata()
555 if (const ReqdWorkGroupSizeAttr *A = FD->getAttr<ReqdWorkGroupSizeAttr>()) { in EmitOpenCLKernelMetadata()
DCGCall.cpp135 if (PcsAttr *PCS = D->getAttr<PcsAttr>()) in getCallingConventionForDecl()
1686 if (auto ParmNNAttr = PVD->getAttr<NonNullAttr>()) in getNonNullAttr()
1879 const auto *AVAttr = PVD->getAttr<AlignValueAttr>(); in EmitFunctionProlog()
1882 AVAttr = TOTy->getDecl()->getAttr<AlignValueAttr>(); in EmitFunctionProlog()
2371 if (auto RetNNAttr = CurGD.getDecl()->getAttr<ReturnsNonNullAttr>()) { in EmitFunctionEpilog()
3492 if (const auto *AA = TargetDecl->getAttr<AssumeAlignedAttr>()) { in EmitCall()
DCGDecl.cpp370 if (const SectionAttr *SA = D.getAttr<SectionAttr>()) in EmitStaticVarDecl()
1327 if (const CleanupAttr *CA = D.getAttr<CleanupAttr>()) { in EmitAutoVarCleanups()
DTargetInfo.cpp4502 const ARMInterruptAttr *Attr = FD->getAttr<ARMInterruptAttr>(); in SetTargetAttributes()
5101 FD->getAttr<CUDALaunchBoundsAttr>()->getMaxThreads()); in SetTargetAttributes()
5106 int MinCTASM = FD->getAttr<CUDALaunchBoundsAttr>()->getMinBlocks(); in SetTargetAttributes()
5441 if (const MSP430InterruptAttr *attr = FD->getAttr<MSP430InterruptAttr>()) { in SetTargetAttributes()
5842 const ReqdWorkGroupSizeAttr *Attr = FD->getAttr<ReqdWorkGroupSizeAttr>(); in SetTargetAttributes()
6032 if (const auto Attr = FD->getAttr<AMDGPUNumVGPRAttr>()) { in SetTargetAttributes()
6039 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.cpp248 if (AttrTy *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion()
1661 if (VecReturnAttr *A = D->getAttr<VecReturnAttr>()) { in handleVecReturnAttr()
1997 T *existingAttr = D->getAttr<T>(); in mergeVisibilityAttr()
2320 WorkGroupAttr *Existing = D->getAttr<WorkGroupAttr>(); in handleWorkGroupSize()
2350 if (VecTypeHintAttr *A = D->getAttr<VecTypeHintAttr>()) { in handleVecTypeHint()
2365 if (SectionAttr *ExistingAttr = D->getAttr<SectionAttr>()) { in mergeSectionAttr()
3216 if (OptimizeNoneAttr *Optnone = D->getAttr<OptimizeNoneAttr>()) { in mergeAlwaysInlineAttr()
3231 if (OptimizeNoneAttr *Optnone = D->getAttr<OptimizeNoneAttr>()) { in mergeMinSizeAttr()
3245 if (AlwaysInlineAttr *Inline = D->getAttr<AlwaysInlineAttr>()) { in mergeOptimizeNoneAttr()
3250 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.cpp2356 if (UsedAttr *OldAttr = Old->getMostRecentDecl()->getAttr<UsedAttr>()) { in mergeDeclAttributes()
2419 const CarriesDependencyAttr *CDA = newDecl->getAttr<CarriesDependencyAttr>(); in mergeParamDeclAttributes()
2862 const CXX11NoReturnAttr *NRA = New->getAttr<CXX11NoReturnAttr>(); in MergeFunctionDecl()
2873 const CarriesDependencyAttr *CDA = New->getAttr<CarriesDependencyAttr>(); in MergeFunctionDecl()
5205 if (WeakAttr *Attr = ND.getAttr<WeakAttr>()) { in checkAttributesAfterMerging()
5211 if (WeakRefAttr *Attr = ND.getAttr<WeakRefAttr>()) { in checkAttributesAfterMerging()
5221 if (const auto *Attr = VD->getAttr<AliasAttr>()) { in checkAttributesAfterMerging()
5232 if (SelectAnyAttr *Attr = ND.getAttr<SelectAnyAttr>()) { in checkAttributesAfterMerging()
5260 const DLLImportAttr *OldImportAttr = OldDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
5261 const DLLExportAttr *OldExportAttr = OldDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
[all …]
DSemaObjCProperty.cpp2017 if (const SectionAttr *SA = property->getAttr<SectionAttr>()) in ProcessPropertyDecl()
2072 if (const SectionAttr *SA = property->getAttr<SectionAttr>()) in ProcessPropertyDecl()
/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/AST/
DComment.h482 const Attribute &getAttr(unsigned Idx) const { in getAttr() function
DDeclBase.h479 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