Home
last modified time | relevance | path

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

1234

/external/skia/src/animator/
DSkDump.cpp42 bool hasAttr = false; in enable() local
44 hasAttr |= maker.fDumpEvents = true; in enable()
46 hasAttr |= maker.fDumpPosts = true; in enable()
48 hasAttr |= maker.fDumpGConditions = true; in enable()
49 if ((hasAttr |= (eventList > 0)) == true) in enable()
51 if ((hasAttr |= (name.size() > 0)) == true) in enable()
53 if (displayList > 0 || (displayList != 0 && hasAttr == false)) in enable()
/external/clang/lib/Sema/
DSemaCUDA.cpp42 if (D->hasAttr<CUDAInvalidTargetAttr>()) in IdentifyCUDATarget()
45 if (D->hasAttr<CUDAGlobalAttr>()) in IdentifyCUDATarget()
48 if (D->hasAttr<CUDADeviceAttr>()) { in IdentifyCUDATarget()
49 if (D->hasAttr<CUDAHostAttr>()) in IdentifyCUDATarget()
52 } else if (D->hasAttr<CUDAHostAttr>()) { in IdentifyCUDATarget()
DSemaAttr.cpp478 if (D->hasAttr<CFAuditedTransferAttr>() || in AddCFAuditedAttribute()
479 D->hasAttr<CFUnknownTransferAttr>()) in AddCFAuditedAttribute()
502 if (FD->hasAttr<MinSizeAttr>() || FD->hasAttr<AlwaysInlineAttr>()) in AddOptnoneAttributeIfNoConflicts()
507 if (!FD->hasAttr<OptimizeNoneAttr>()) in AddOptnoneAttributeIfNoConflicts()
509 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.cpp1183 && Previous.getFoundDecl()->hasAttr<OverloadableAttr>()); in AllowOverloadingOfFunction()
1365 if (D->isInvalidDecl() || D->isUsed() || D->hasAttr<UnusedAttr>()) in ShouldWarnIfUnusedFileScopedDecl()
1437 if (D->isReferenced() || D->isUsed() || D->hasAttr<UnusedAttr>() || in ShouldDiagnoseUnusedDecl()
1438 D->hasAttr<ObjCPreciseLifetimeAttr>()) in ShouldDiagnoseUnusedDecl()
1469 if (TT->getDecl()->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1480 if (Tag->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1484 if (!RD->hasTrivialDestructor() && !RD->hasAttr<WarnUnusedAttr>()) in ShouldDiagnoseUnusedDecl()
1495 if (!CD->isTrivial() && !RD->hasAttr<WarnUnusedAttr>()) in ShouldDiagnoseUnusedDecl()
2420 if (CDA && !oldDecl->hasAttr<CarriesDependencyAttr>()) { in mergeParamDeclAttributes()
2512 return ((FD->hasAttr<GNUInlineAttr>() || LangOpts.GNUInline) && in canRedefineFunction()
[all …]
/external/clang/lib/CodeGen/
DCodeGenModule.cpp717 if (D->hasAttr<NakedAttr>()) { in SetLLVMFunctionAttributesForDefinition()
721 } else if (D->hasAttr<NoDuplicateAttr>()) { in SetLLVMFunctionAttributesForDefinition()
723 } else if (D->hasAttr<NoInlineAttr>()) { in SetLLVMFunctionAttributesForDefinition()
725 } else if (D->hasAttr<AlwaysInlineAttr>() && in SetLLVMFunctionAttributesForDefinition()
732 if (D->hasAttr<ColdAttr>()) { in SetLLVMFunctionAttributesForDefinition()
733 if (!D->hasAttr<OptimizeNoneAttr>()) in SetLLVMFunctionAttributesForDefinition()
738 if (D->hasAttr<MinSizeAttr>()) in SetLLVMFunctionAttributesForDefinition()
753 !D->hasAttr<NoSanitizeAddressAttr>()) in SetLLVMFunctionAttributesForDefinition()
757 !D->hasAttr<NoSanitizeThreadAttr>()) in SetLLVMFunctionAttributesForDefinition()
761 !D->hasAttr<NoSanitizeMemoryAttr>()) in SetLLVMFunctionAttributesForDefinition()
[all …]
DCGDecl.cpp185 if (D.hasAttr<AsmLabelAttr>()) in getOrCreateStaticVarDecl()
217 if (D.hasAttr<DLLImportAttr>()) in getOrCreateStaticVarDecl()
219 else if (D.hasAttr<DLLExportAttr>()) in getOrCreateStaticVarDecl()
367 if (D.hasAttr<AnnotateAttr>()) in EmitStaticVarDecl()
373 if (D.hasAttr<UsedAttr>()) in EmitStaticVarDecl()
542 (var.hasAttr<ObjCPreciseLifetimeAttr>() in EmitAutoVarWithLifetime()
875 bool isByRef = D.hasAttr<BlocksAttr>(); in EmitAutoVarAlloca()
1020 if (D.hasAttr<AnnotateAttr>()) in EmitAutoVarAlloca()
1278 if (!var->hasAttr<ObjCPreciseLifetimeAttr>()) in emitAutoVarTypeCleanup()
1322 D.hasAttr<ObjCPreciseLifetimeAttr>()) { in EmitAutoVarCleanups()
[all …]
DCGCall.cpp120 if (D->hasAttr<StdCallAttr>()) in getCallingConventionForDecl()
123 if (D->hasAttr<FastCallAttr>()) in getCallingConventionForDecl()
126 if (D->hasAttr<ThisCallAttr>()) in getCallingConventionForDecl()
129 if (D->hasAttr<VectorCallAttr>()) in getCallingConventionForDecl()
132 if (D->hasAttr<PascalAttr>()) in getCallingConventionForDecl()
138 if (D->hasAttr<IntelOclBiccAttr>()) in getCallingConventionForDecl()
141 if (D->hasAttr<MSABIAttr>()) in getCallingConventionForDecl()
144 if (D->hasAttr<SysVABIAttr>()) in getCallingConventionForDecl()
310 MD->hasAttr<NSReturnsRetainedAttr>()) in arrangeObjCMessageSendSignature()
1399 if (TargetDecl->hasAttr<ReturnsTwiceAttr>()) in ConstructAttributeList()
[all …]
DCGCXX.cpp128 if (AliasDecl.getDecl()->hasAttr<DLLExportAttr>() && in TryEmitDefinitionAsAlias()
159 !TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) { in TryEmitDefinitionAsAlias()
DCodeGenTBAA.cpp74 return TTy->getDecl()->hasAttr<MayAliasAttr>(); in TypeHasMayAlias()
78 if (TTy->getDecl()->hasAttr<MayAliasAttr>()) in TypeHasMayAlias()
DCGDeclCXX.cpp166 if (getLangOpts().OpenMP && D.hasAttr<OMPThreadPrivateDeclAttr>()) in EmitCXXGlobalVarDeclInit()
352 } else if (D->hasAttr<SelectAnyAttr>()) { in EmitCXXGlobalVarDeclInitFunc()
471 if (D->hasAttr<NoDebugAttr>()) in GenerateCXXGlobalVarDeclInitFunc()
/external/clang/lib/StaticAnalyzer/Checkers/
DObjCUnusedIVarsChecker.cpp122 Ivar->hasAttr<UnusedAttr>() || Ivar->hasAttr<IBOutletAttr>() || in checkObjCUnusedIvar()
123 Ivar->hasAttr<IBOutletCollectionAttr>() || in checkObjCUnusedIvar()
DDeadStoresChecker.cpp220 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() || in CheckVarDecl()
221 VD->hasAttr<ObjCPreciseLifetimeAttr>())) { in CheckVarDecl()
346 !V->hasAttr<UnusedAttr>() && in observeStmt()
347 !V->hasAttr<ObjCPreciseLifetimeAttr>()) { in observeStmt()
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()
DNoReturnFunctionChecker.cpp46 BuildSinks = FD->hasAttr<AnalyzerNoReturnAttr>() || FD->isNoReturn(); in checkPostCall()
92 if (MD->hasAttr<AnalyzerNoReturnAttr>()) { in checkPostObjCMessage()
DNonNullParamChecker.cpp87 haveAttrNonNull = parms[idx]->hasAttr<NonNullAttr>(); in checkPreCall()
111 if (!UT || !UT->getDecl()->hasAttr<TransparentUnionAttr>()) in checkPreCall()
DCheckObjCDealloc.cpp99 Ivar->hasAttr<IBOutletAttr>() || // Skip IBOutlets. in checkObjCDealloc()
100 Ivar->hasAttr<IBOutletCollectionAttr>()) // Skip IBOutletCollections. in checkObjCDealloc()
DUndefCapturedBlockVarChecker.cpp74 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) in checkPostStmt()
DRetainCountChecker.cpp1189 if (FD->hasAttr<CFAuditedTransferAttr>()) { in getFunctionSummary()
1301 if (D->hasAttr<NSReturnsRetainedAttr>()) in getRetEffectFromAnnotations()
1304 if (D->hasAttr<NSReturnsNotRetainedAttr>() || in getRetEffectFromAnnotations()
1305 D->hasAttr<NSReturnsAutoreleasedAttr>()) in getRetEffectFromAnnotations()
1312 if (D->hasAttr<CFReturnsRetainedAttr>()) in getRetEffectFromAnnotations()
1315 if (D->hasAttr<CFReturnsNotRetainedAttr>()) in getRetEffectFromAnnotations()
1335 if (pd->hasAttr<NSConsumedAttr>()) in updateSummaryFromAnnotations()
1337 else if (pd->hasAttr<CFConsumedAttr>()) in updateSummaryFromAnnotations()
1356 if (MD->hasAttr<NSConsumesSelfAttr>()) in updateSummaryFromAnnotations()
1365 if (pd->hasAttr<NSConsumedAttr>()) in updateSummaryFromAnnotations()
[all …]
/external/skia/src/views/
DSkParsePaint.cpp21 if (dom.hasAttr(node, "type", "linear-gradient")) in inflate_shader()
42 else if (dom.hasAttr(node, "type", "bitmap")) in inflate_shader()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp1275 OM->hasAttr<ObjCReturnsInnerPointerAttr>()) in migrateNsReturnsInnerPointer()
1446 if (Decl->hasAttr<CFAuditedTransferAttr>()) { in migrateCFAnnotation()
1511 if (AE == DecRef && !pd->hasAttr<CFConsumedAttr>() && in AddCFAnnotations()
1517 else if (AE == DecRefMsg && !pd->hasAttr<NSConsumedAttr>() && in AddCFAnnotations()
1535 bool FuncIsReturnAnnotated = (FuncDecl->hasAttr<CFReturnsRetainedAttr>() || in migrateAddFunctionAnnotation()
1536 FuncDecl->hasAttr<CFReturnsNotRetainedAttr>() || in migrateAddFunctionAnnotation()
1537 FuncDecl->hasAttr<NSReturnsRetainedAttr>() || in migrateAddFunctionAnnotation()
1538 FuncDecl->hasAttr<NSReturnsNotRetainedAttr>() || in migrateAddFunctionAnnotation()
1539 FuncDecl->hasAttr<NSReturnsAutoreleasedAttr>()); in migrateAddFunctionAnnotation()
1565 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/AST/
DDecl.cpp368 return !fn->hasAttr<VisibilityAttr>(); in shouldConsiderTemplateVisibility()
404 if (D->hasAttr<TypeVisibilityAttr>()) in hasDirectVisibilityAttribute()
409 if (D->hasAttr<VisibilityAttr>()) in hasDirectVisibilityAttribute()
557 FD->hasBody(Def) && Def->isInlined() && !Def->hasAttr<GNUInlineAttr>(); in useInlineVisibilityHidden()
1798 if (hasAttr<ThreadAttr>()) in getTLSKind()
1918 if (hasAttr<AliasAttr>() || hasAttr<SelectAnyAttr>()) in isThisDeclarationADefinition()
2377 I->hasAttr<AliasAttr>()) { in isDefined()
2551 return hasAttr<NoReturnAttr>() || hasAttr<CXX11NoReturnAttr>() || in isNoReturn()
2552 hasAttr<C11NoReturnAttr>() || in isNoReturn()
2615 if (hasAttr<OverloadableAttr>()) in getBuiltinID()
[all …]
/external/clang/include/clang/Sema/
DSemaInternal.h81 assert(!(D->hasAttr<DLLImportAttr>() && D->hasAttr<DLLExportAttr>()) && in getDLLAttr()
/external/skia/include/xml/
DSkDOM.h72 bool hasAttr(const Node*, const char name[], const char value[]) const;

1234