Home
last modified time | relevance | path

Searched refs:hasAttr (Results 1 – 25 of 102) sorted by relevance

12345

/external/clang/lib/Sema/
DSemaCUDA.cpp45 if (D->hasAttr<CUDAInvalidTargetAttr>()) in IdentifyCUDATarget()
48 if (D->hasAttr<CUDAGlobalAttr>()) in IdentifyCUDATarget()
51 if (D->hasAttr<CUDADeviceAttr>()) { in IdentifyCUDATarget()
52 if (D->hasAttr<CUDAHostAttr>()) in IdentifyCUDATarget()
55 } else if (D->hasAttr<CUDAHostAttr>()) { in IdentifyCUDATarget()
448 NewD->isVariadic() || NewD->hasAttr<CUDAHostAttr>() || in maybeAddCUDAHostDeviceAttrs()
449 NewD->hasAttr<CUDADeviceAttr>() || NewD->hasAttr<CUDAGlobalAttr>()) in maybeAddCUDAHostDeviceAttrs()
458 return OldD && OldD->hasAttr<CUDADeviceAttr>() && in maybeAddCUDAHostDeviceAttrs()
459 !OldD->hasAttr<CUDAHostAttr>() && in maybeAddCUDAHostDeviceAttrs()
DSemaAttr.cpp363 if (D->hasAttr<CFAuditedTransferAttr>() || in AddCFAuditedAttribute()
364 D->hasAttr<CFUnknownTransferAttr>()) in AddCFAuditedAttribute()
387 if (FD->hasAttr<MinSizeAttr>() || FD->hasAttr<AlwaysInlineAttr>()) in AddOptnoneAttributeIfNoConflicts()
392 if (!FD->hasAttr<OptimizeNoneAttr>()) in AddOptnoneAttributeIfNoConflicts()
394 if (!FD->hasAttr<NoInlineAttr>()) in AddOptnoneAttributeIfNoConflicts()
DSemaDeclObjC.cpp160 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() != in CheckObjCMethodOverride()
161 Overridden->hasAttr<NSReturnsRetainedAttr>())) { in CheckObjCMethodOverride()
167 if ((NewMethod->hasAttr<NSReturnsNotRetainedAttr>() != in CheckObjCMethodOverride()
168 Overridden->hasAttr<NSReturnsNotRetainedAttr>())) { in CheckObjCMethodOverride()
181 if (newDecl->hasAttr<NSConsumedAttr>() != in CheckObjCMethodOverride()
182 oldDecl->hasAttr<NSConsumedAttr>()) { in CheckObjCMethodOverride()
232 if (method->hasAttr<NSReturnsRetainedAttr>()) in CheckARCMethodDecl()
240 if (method->hasAttr<NSReturnsRetainedAttr>() || in CheckARCMethodDecl()
241 method->hasAttr<NSReturnsNotRetainedAttr>() || in CheckARCMethodDecl()
242 method->hasAttr<NSReturnsAutoreleasedAttr>()) in CheckARCMethodDecl()
[all …]
DSemaDecl.cpp1240 && Previous.getFoundDecl()->hasAttr<OverloadableAttr>()); in AllowOverloadingOfFunction()
1422 if (D->isInvalidDecl() || D->isUsed() || D->hasAttr<UnusedAttr>()) in ShouldWarnIfUnusedFileScopedDecl()
1497 if (D->isReferenced() || D->isUsed() || D->hasAttr<UnusedAttr>() || in ShouldDiagnoseUnusedDecl()
1498 D->hasAttr<ObjCPreciseLifetimeAttr>()) in ShouldDiagnoseUnusedDecl()
1529 if (TT->getDecl()->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1540 if (Tag->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1544 if (!RD->hasTrivialDestructor() && !RD->hasAttr<WarnUnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1555 if (!CD->isTrivial() && !RD->hasAttr<WarnUnusedAttr>()) in ShouldDiagnoseUnusedDecl()
2525 if (CDA && !oldDecl->hasAttr<CarriesDependencyAttr>()) { in mergeParamDeclAttributes()
2644 return ((FD->hasAttr<GNUInlineAttr>() || LangOpts.GNUInline) && in canRedefineFunction()
[all …]
/external/clang/lib/CodeGen/
DCodeGenModule.cpp286 bool IsIFunc = D->hasAttr<IFuncAttr>(); in checkAliases()
791 if (FD->hasAttr<DLLImportAttr>()) in setFunctionDLLStorageClass()
793 else if (FD->hasAttr<DLLExportAttr>()) in setFunctionDLLStorageClass()
874 if (D->hasAttr<NakedAttr>()) { in SetLLVMFunctionAttributesForDefinition()
878 } else if (D->hasAttr<NoDuplicateAttr>()) { in SetLLVMFunctionAttributesForDefinition()
880 } else if (D->hasAttr<NoInlineAttr>()) { in SetLLVMFunctionAttributesForDefinition()
882 } else if (D->hasAttr<AlwaysInlineAttr>() && in SetLLVMFunctionAttributesForDefinition()
889 if (D->hasAttr<ColdAttr>()) { in SetLLVMFunctionAttributesForDefinition()
890 if (!D->hasAttr<OptimizeNoneAttr>()) in SetLLVMFunctionAttributesForDefinition()
895 if (D->hasAttr<MinSizeAttr>()) in SetLLVMFunctionAttributesForDefinition()
[all …]
DCGVTables.cpp590 ? MD->hasAttr<CUDADeviceAttr>() in CreateVTableInitializer()
591 : (MD->hasAttr<CUDAHostAttr>() || in CreateVTableInitializer()
592 !MD->hasAttr<CUDADeviceAttr>()); in CreateVTableInitializer()
734 if (keyFunction && !RD->hasAttr<DLLImportAttr>()) { in getVTableLinkage()
781 if (RD->hasAttr<DLLExportAttr>()) { in getVTableLinkage()
784 } else if (RD->hasAttr<DLLImportAttr>()) { in getVTableLinkage()
911 if (RD->hasAttr<LTOVisibilityPublicAttr>() || RD->hasAttr<UuidAttr>()) in HasHiddenLTOVisibility()
915 if (RD->hasAttr<DLLExportAttr>() || RD->hasAttr<DLLImportAttr>()) in HasHiddenLTOVisibility()
DCGDeclCXX.cpp173 if (getLangOpts().OpenMP && D.hasAttr<OMPThreadPrivateDeclAttr>()) in EmitCXXGlobalVarDeclInit()
322 (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>() || in EmitCXXGlobalVarDeclInitFunc()
323 D->hasAttr<CUDASharedAttr>())) in EmitCXXGlobalVarDeclInitFunc()
379 } else if (D->hasAttr<SelectAnyAttr>()) { in EmitCXXGlobalVarDeclInitFunc()
500 if (D->hasAttr<NoDebugAttr>()) in GenerateCXXGlobalVarDeclInitFunc()
DCGDecl.cpp200 if (D.hasAttr<AsmLabelAttr>()) in getOrCreateStaticVarDecl()
232 if (D.hasAttr<DLLImportAttr>()) in getOrCreateStaticVarDecl()
234 else if (D.hasAttr<DLLExportAttr>()) in getOrCreateStaticVarDecl()
381 D.hasAttr<CUDASharedAttr>(); in EmitStaticVarDecl()
388 if (D.hasAttr<AnnotateAttr>()) in EmitStaticVarDecl()
394 if (D.hasAttr<UsedAttr>()) in EmitStaticVarDecl()
549 (var.hasAttr<ObjCPreciseLifetimeAttr>() in EmitAutoVarWithLifetime()
958 bool isByRef = D.hasAttr<BlocksAttr>(); in EmitAutoVarAlloca()
1107 if (D.hasAttr<AnnotateAttr>()) in EmitAutoVarAlloca()
1364 if (!var->hasAttr<ObjCPreciseLifetimeAttr>()) in emitAutoVarTypeCleanup()
[all …]
DCGCall.cpp132 if (FD->getParamDecl(I)->hasAttr<PassObjectSizeAttr>()) in appendParameterTypes()
169 if (D->hasAttr<StdCallAttr>()) in getCallingConventionForDecl()
172 if (D->hasAttr<FastCallAttr>()) in getCallingConventionForDecl()
175 if (D->hasAttr<ThisCallAttr>()) in getCallingConventionForDecl()
178 if (D->hasAttr<VectorCallAttr>()) in getCallingConventionForDecl()
181 if (D->hasAttr<PascalAttr>()) in getCallingConventionForDecl()
187 if (D->hasAttr<IntelOclBiccAttr>()) in getCallingConventionForDecl()
190 if (D->hasAttr<MSABIAttr>()) in getCallingConventionForDecl()
193 if (D->hasAttr<SysVABIAttr>()) in getCallingConventionForDecl()
196 if (D->hasAttr<PreserveMostAttr>()) in getCallingConventionForDecl()
[all …]
DCodeGenFunction.cpp395 if (!CurFuncDecl || CurFuncDecl->hasAttr<NoInstrumentFunctionAttr>()) in ShouldInstrumentFunction()
598 if (!FD->hasAttr<OpenCLKernelAttr>()) in EmitOpenCLKernelMetadata()
725 } else if (!FD->hasAttr<AlwaysInlineAttr>()) in StartFunction()
727 if (CGM.getLangOpts().OpenMP && FD->hasAttr<OMPDeclareSimdDeclAttr>()) in StartFunction()
979 if (!Param->hasAttr<PassObjectSizeAttr>()) in BuildFunctionArgList()
1006 if (FD->hasAttr<NoDebugAttr>()) in GenerateCode()
1037 FD->hasAttr<CUDAGlobalAttr>()) in GenerateCode()
1866 assert(D->hasAttr<AnnotateAttr>() && "no annotate attribute"); in EmitVarAnnotations()
1877 assert(D->hasAttr<AnnotateAttr>() && "no annotate attribute"); in EmitFieldAnnotations()
1986 } else if (TargetDecl->hasAttr<TargetAttr>()) { in checkTargetFeatures()
DCodeGenTBAA.cpp78 return TTy->getDecl()->hasAttr<MayAliasAttr>(); in TypeHasMayAlias()
82 if (TTy->getDecl()->hasAttr<MayAliasAttr>()) in TypeHasMayAlias()
/external/clang/include/clang/Sema/
DSemaInternal.h57 bool isDeviceSideDecl = D->hasAttr<CUDADeviceAttr>() || in DeclAttrsMatchCUDAMode()
58 D->hasAttr<CUDASharedAttr>() || in DeclAttrsMatchCUDAMode()
59 D->hasAttr<CUDAGlobalAttr>(); in DeclAttrsMatchCUDAMode()
94 assert(!(D->hasAttr<DLLImportAttr>() && D->hasAttr<DLLExportAttr>()) && in getDLLAttr()
/external/clang/lib/StaticAnalyzer/Checkers/
DObjCUnusedIVarsChecker.cpp122 Ivar->hasAttr<UnusedAttr>() || Ivar->hasAttr<IBOutletAttr>() || in checkObjCUnusedIvar()
123 Ivar->hasAttr<IBOutletCollectionAttr>() || in checkObjCUnusedIvar()
DVirtualCallChecker.cpp156 if (base->getBestDynamicClassType()->hasAttr<FinalAttr>()) in VisitCXXMemberCallExpr()
163 if (MD && MD->isVirtual() && !callIsNonVirtual && !MD->hasAttr<FinalAttr>() && in VisitCXXMemberCallExpr()
164 !MD->getParent()->hasAttr<FinalAttr>()) in VisitCXXMemberCallExpr()
DDeadStoresChecker.cpp220 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() || in CheckVarDecl()
221 VD->hasAttr<ObjCPreciseLifetimeAttr>())) { in CheckVarDecl()
348 !V->hasAttr<UnusedAttr>() && in observeStmt()
349 !V->hasAttr<ObjCPreciseLifetimeAttr>()) { in observeStmt()
DNoReturnFunctionChecker.cpp46 BuildSinks = FD->hasAttr<AnalyzerNoReturnAttr>() || FD->isNoReturn(); in checkPostCall()
93 if (MD->hasAttr<AnalyzerNoReturnAttr>()) { in checkPostObjCMessage()
DNonNullParamChecker.cpp88 haveAttrNonNull = parms[idx]->hasAttr<NonNullAttr>(); in checkPreCall()
112 if (!UT || !UT->getDecl()->hasAttr<TransparentUnionAttr>()) in checkPreCall()
DRetainCountChecker.cpp1192 if (FD->hasAttr<CFAuditedTransferAttr>()) { in getFunctionSummary()
1304 if (D->hasAttr<NSReturnsRetainedAttr>()) in getRetEffectFromAnnotations()
1307 if (D->hasAttr<NSReturnsNotRetainedAttr>() || in getRetEffectFromAnnotations()
1308 D->hasAttr<NSReturnsAutoreleasedAttr>()) in getRetEffectFromAnnotations()
1315 if (D->hasAttr<CFReturnsRetainedAttr>()) in getRetEffectFromAnnotations()
1318 if (D->hasAttr<CFReturnsNotRetainedAttr>()) in getRetEffectFromAnnotations()
1338 if (pd->hasAttr<NSConsumedAttr>()) in updateSummaryFromAnnotations()
1340 else if (pd->hasAttr<CFConsumedAttr>()) in updateSummaryFromAnnotations()
1342 else if (pd->hasAttr<CFReturnsRetainedAttr>()) { in updateSummaryFromAnnotations()
1347 } else if (pd->hasAttr<CFReturnsNotRetainedAttr>()) { in updateSummaryFromAnnotations()
[all …]
DUndefCapturedBlockVarChecker.cpp71 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) in checkPostStmt()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp1263 OM->hasAttr<ObjCReturnsInnerPointerAttr>()) in migrateNsReturnsInnerPointer()
1434 if (Decl->hasAttr<CFAuditedTransferAttr>()) { in migrateCFAnnotation()
1497 if (AE == DecRef && !pd->hasAttr<CFConsumedAttr>() && in AddCFAnnotations()
1503 else if (AE == DecRefMsg && !pd->hasAttr<NSConsumedAttr>() && in AddCFAnnotations()
1520 bool FuncIsReturnAnnotated = (FuncDecl->hasAttr<CFReturnsRetainedAttr>() || in migrateAddFunctionAnnotation()
1521 FuncDecl->hasAttr<CFReturnsNotRetainedAttr>() || in migrateAddFunctionAnnotation()
1522 FuncDecl->hasAttr<NSReturnsRetainedAttr>() || in migrateAddFunctionAnnotation()
1523 FuncDecl->hasAttr<NSReturnsNotRetainedAttr>() || in migrateAddFunctionAnnotation()
1524 FuncDecl->hasAttr<NSReturnsAutoreleasedAttr>()); in migrateAddFunctionAnnotation()
1550 if (AE == DecRef && !pd->hasAttr<CFConsumedAttr>()) in migrateAddFunctionAnnotation()
[all …]
DTransUnbridgedCasts.cpp137 if (FD->hasAttr<CFReturnsRetainedAttr>()) { in transformNonObjCToObjCCast()
141 if (FD->hasAttr<CFReturnsNotRetainedAttr>()) { in transformNonObjCToObjCCast()
188 if (!method->hasAttr<NSReturnsRetainedAttr>()) { in transformNonObjCToObjCCast()
443 if (PD->hasAttr<CFConsumedAttr>()) { in isPassedToCParamWithKnownOwnership()
/external/clang/lib/Index/
DIndexSymbol.cpp44 if (D->hasAttr<IBOutletAttr>()) { in checkForIBOutlets()
46 } else if (D->hasAttr<IBOutletCollectionAttr>()) { in checkForIBOutlets()
147 if (D->hasAttr<IBActionAttr>()) in getSymbolInfo()
/external/clang/lib/AST/
DDecl.cpp374 return !fn->hasAttr<VisibilityAttr>(); in shouldConsiderTemplateVisibility()
410 if (D->hasAttr<TypeVisibilityAttr>()) in hasDirectVisibilityAttribute()
415 if (D->hasAttr<VisibilityAttr>()) in hasDirectVisibilityAttribute()
563 FD->hasBody(Def) && Def->isInlined() && !Def->hasAttr<GNUInlineAttr>(); in useInlineVisibilityHidden()
1230 if (D->hasAttr<InternalLinkageAttr>()) in computeLVForDecl()
1352 if (D->hasAttr<InternalLinkageAttr>()) in getLVForDecl()
1821 if (!hasAttr<ThreadAttr>() && in getTLSKind()
1824 hasAttr<OMPThreadPrivateDeclAttr>())) in getTLSKind()
1828 hasAttr<OMPThreadPrivateDeclAttr>()) in getTLSKind()
2656 return hasAttr<NoReturnAttr>() || hasAttr<CXX11NoReturnAttr>() || in isNoReturn()
[all …]
/external/skqp/src/xml/
DSkDOM.h72 bool hasAttr(const Node*, const char name[], const char value[]) const;
/external/skia/src/xml/
DSkDOM.h72 bool hasAttr(const Node*, const char name[], const char value[]) const;

12345