/external/clang/lib/StaticAnalyzer/Core/ |
D | SVals.cpp | 33 if (Optional<nonloc::SymbolVal> SV = getAs<nonloc::SymbolVal>()) { in hasConjuredSymbol() 39 if (Optional<loc::MemRegionVal> RV = getAs<loc::MemRegionVal>()) { in hasConjuredSymbol() 52 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) { in getAsFunctionDecl() 54 if (const FunctionCodeRegion *CTR = R->getAs<FunctionCodeRegion>()) in getAsFunctionDecl() 71 if (Optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>()) in getAsLocSymbol() 74 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) { in getAsLocSymbol() 86 Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>(); in getLocSymbolInBase() 113 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>()) in getAsSymbol() 122 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>()) in getAsSymbolicExpression() 136 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) in getAsRegion() [all …]
|
D | BugReporterVisitors.cpp | 187 while (Node && Node->getLocation().getAs<PostStmt>()) in addVisitorIfNecessary() 207 if (Optional<Loc> LValue = RetVal.getAs<Loc>()) in addVisitorIfNecessary() 217 if (Optional<Loc> RetLoc = RetVal.getAs<Loc>()) in addVisitorIfNecessary() 263 if ((LValue = V.getAs<Loc>())) { in visitNodeInitial() 265 if (RValue.getAs<DefinedSVal>()) in visitNodeInitial() 271 if (V.getAs<nonloc::LazyCompoundVal>() || in visitNodeInitial() 272 V.getAs<nonloc::CompoundVal>()) in visitNodeInitial() 294 if (V.getAs<Loc>()) { in visitNodeInitial() 362 Optional<Loc> ArgV = Call->getArgSVal(I).getAs<Loc>(); in visitNodeMaybeUnsuppress() 536 V.getAs<loc::ConcreteInt>() || V.getAs<nonloc::ConcreteInt>()) { in VisitNode() [all …]
|
D | SimpleSValBuilder.cpp | 63 assert(Val.getAs<Loc>() || Val.getAs<NonLoc>()); in dispatchCast() 64 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy) in dispatchCast() 72 if (Optional<nonloc::LocAsInteger> LI = val.getAs<nonloc::LocAsInteger>()) { in evalCastFromNonLoc() 101 if (!val.getAs<nonloc::ConcreteInt>()) in evalCastFromNonLoc() 169 if (!val.getAs<loc::ConcreteInt>()) in evalCastFromLoc() 658 if (Optional<loc::ConcreteInt> rInt = rhs.getAs<loc::ConcreteInt>()) { in evalBinOpLL() 661 if (Optional<NonLoc> Result = ResultVal.getAs<NonLoc>()) in evalBinOpLL() 664 assert(!ResultVal.getAs<Loc>() && "Loc-Loc ops should not produce Locs"); in evalBinOpLL() 672 assert(rhs.getAs<loc::MemRegionVal>() || rhs.getAs<loc::GotoLabel>()); in evalBinOpLL() 693 if (Optional<loc::ConcreteInt> rInt = rhs.getAs<loc::ConcreteInt>()) { in evalBinOpLL() [all …]
|
/external/llvm-project/clang/lib/Analysis/ |
D | ProgramPoint.cpp | 67 auto FEP = getAs<FunctionExitPoint>(); in printJson() 204 if (getAs<PreLoad>()) in printJson() 206 else if (getAs<PreStore>()) in printJson() 208 else if (getAs<PostAllocatorCall>()) in printJson() 210 else if (getAs<PostCondition>()) in printJson() 212 else if (getAs<PostLoad>()) in printJson() 214 else if (getAs<PostLValue>()) in printJson() 216 else if (getAs<PostStore>()) in printJson() 218 else if (getAs<PostStmt>()) in printJson() 220 else if (getAs<PostStmtPurgeDeadSymbols>()) in printJson() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | SVals.cpp | 45 if (Optional<nonloc::SymbolVal> SV = getAs<nonloc::SymbolVal>()) { in hasConjuredSymbol() 51 if (Optional<loc::MemRegionVal> RV = getAs<loc::MemRegionVal>()) { in hasConjuredSymbol() 64 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) { in getAsFunctionDecl() 66 if (const FunctionCodeRegion *CTR = R->getAs<FunctionCodeRegion>()) in getAsFunctionDecl() 71 if (auto X = getAs<nonloc::PointerToMember>()) { in getAsFunctionDecl() 98 Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>(); in getLocSymbolInBase() 123 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>()) in getAsSymbol() 130 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) in getAsRegion() 133 if (Optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>()) in getAsRegion() 201 return getAs<nonloc::ConcreteInt>() || getAs<loc::ConcreteInt>(); in isConstant() [all …]
|
D | ExplodedGraph.cpp | 103 if (progPoint.getAs<PreStmtPurgeDeadSymbols>()) in shouldCollect() 107 if (!progPoint.getAs<PostStmt>() || progPoint.getAs<PostStore>()) in shouldCollect() 143 if (Optional<StmtPoint> SP = SuccLoc.getAs<StmtPoint>()) in shouldCollect() 148 if (SuccLoc.getAs<CallEnter>() || SuccLoc.getAs<PreImplicitCall>()) in shouldCollect() 293 if (auto BEP = P.getAs<BlockEntrance>()) in getCFGBlock() 334 if (auto SP = P.getAs<StmtPoint>()) in getStmtForDiagnostics() 336 if (auto BE = P.getAs<BlockEdge>()) in getStmtForDiagnostics() 338 if (auto CE = P.getAs<CallEnter>()) in getStmtForDiagnostics() 340 if (auto CEE = P.getAs<CallExitEnd>()) in getStmtForDiagnostics() 342 if (auto PIPP = P.getAs<PostInitializer>()) in getStmtForDiagnostics() [all …]
|
/external/clang/lib/Sema/ |
D | SemaExceptionSpec.cpp | 29 if (const PointerType *PtrTy = T->getAs<PointerType>()) in GetUnderlyingFunction() 31 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>()) in GetUnderlyingFunction() 33 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>()) in GetUnderlyingFunction() 35 return T->getAs<FunctionProtoType>(); in GetUnderlyingFunction() 85 if (const PointerType *PT = T->getAs<PointerType>()) { in CheckSpecifiedExceptionType() 93 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) { in CheckSpecifiedExceptionType() 121 PointeeT->getAs<RecordType>()->isBeingDefined()) && in CheckSpecifiedExceptionType() 132 if (const PointerType *PT = T->getAs<PointerType>()) in CheckDistantExceptionSpec() 134 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>()) in CheckDistantExceptionSpec() 139 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>(); in CheckDistantExceptionSpec() [all …]
|
D | SemaCast.cpp | 397 if (auto Ptr = From->getAs<PointerType>()) { in diagnoseBadCast() 402 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast() 407 auto RecFrom = From->getAs<RecordType>(); in diagnoseBadCast() 408 auto RecTo = To->getAs<RecordType>(); in diagnoseBadCast() 428 const PointerType *T1PtrType = T1->getAs<PointerType>(), in UnwrapDissimilarPointerTypes() 429 *T2PtrType = T2->getAs<PointerType>(); in UnwrapDissimilarPointerTypes() 436 T1->getAs<ObjCObjectPointerType>(), in UnwrapDissimilarPointerTypes() 438 T2->getAs<ObjCObjectPointerType>(); in UnwrapDissimilarPointerTypes() 459 const MemberPointerType *T1MPType = T1->getAs<MemberPointerType>(), in UnwrapDissimilarPointerTypes() 460 *T2MPType = T2->getAs<MemberPointerType>(); in UnwrapDissimilarPointerTypes() [all …]
|
/external/parameter-framework/upstream/parameter/ |
D | ElementHandle.cpp | 224 bool ElementHandle::getAs(T &value, string &error) const in getAs() function in ElementHandle 248 return getAs(value, error); in getAsBoolean() 258 return getAs(value, error); in getAsBooleanArray() 269 return getAs(value, error); in getAsInteger() 279 return getAs(value, error); in getAsIntegerArray() 290 return getAs(value, error); in getAsSignedInteger() 300 return getAs(value, error); in getAsSignedIntegerArray() 311 return getAs(value, error); in getAsDouble() 321 return getAs(value, error); in getAsDoubleArray() 332 return getAs(value, error); in getAsString() [all …]
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | Chrono.h | 119 template <typename AsPeriod> static InternalRep getAs(const Dur &D) { 128 return {getAs<std::nano>(D), "ns"}; 130 return {getAs<std::micro>(D), "us"}; 132 return {getAs<std::milli>(D), "ms"}; 134 return {getAs<std::ratio<1>>(D), "s"}; 136 return {getAs<std::ratio<60>>(D), "m"}; 138 return {getAs<std::ratio<3600>>(D), "h"};
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | Chrono.h | 119 template <typename AsPeriod> static InternalRep getAs(const Dur &D) { 128 return {getAs<std::nano>(D), "ns"}; 130 return {getAs<std::micro>(D), "us"}; 132 return {getAs<std::milli>(D), "ms"}; 134 return {getAs<std::ratio<1>>(D), "s"}; 136 return {getAs<std::ratio<60>>(D), "m"}; 138 return {getAs<std::ratio<3600>>(D), "h"};
|
/external/llvm-project/clang/lib/AST/ |
D | Comment.cpp | 134 if (AttributedTypeLoc AttributeTL = TL.getAs<AttributedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 137 if (QualifiedTypeLoc QualifiedTL = TL.getAs<QualifiedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 140 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 143 if (ReferenceTypeLoc ReferenceTL = TL.getAs<ReferenceTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 146 if (AdjustedTypeLoc ATL = TL.getAs<AdjustedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 148 if (BlockPointerTypeLoc BlockPointerTL = TL.getAs<BlockPointerTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 150 if (MemberPointerTypeLoc MemberPointerTL = TL.getAs<MemberPointerTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 152 if (ElaboratedTypeLoc ETL = TL.getAs<ElaboratedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 165 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) { in getFunctionTypeLoc() 171 TL.getAs<TemplateSpecializationTypeLoc>()) { in getFunctionTypeLoc() [all …]
|
D | Type.cpp | 498 while (const auto *PT = T->getAs<ParenType>()) in IgnoreParens() 524 template <> const TypedefType *Type::getAs() const { in getAs() function in Type 528 template <> const TemplateSpecializationType *Type::getAs() const { in getAs() function in Type 532 template <> const AttributedType *Type::getAs() const { in getAs() function in Type 558 if (const auto *RT = getAs<RecordType>()) in isClassType() 564 if (const auto *RT = getAs<RecordType>()) in isStructureType() 570 if (const auto *RT = getAs<RecordType>()) in isObjCBoxableRecordType() 576 if (const auto *RT = getAs<RecordType>()) in isInterfaceType() 582 if (const auto *RT = getAs<RecordType>()) { in isStructureOrClassType() 590 if (const auto *PT = getAs<PointerType>()) in isVoidPointerType() [all …]
|
/external/clang/lib/AST/ |
D | Comment.cpp | 242 if (QualifiedTypeLoc QualifiedTL = TL.getAs<QualifiedTypeLoc>()) { in fill() 247 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>()) { in fill() 252 if (ReferenceTypeLoc ReferenceTL = TL.getAs<ReferenceTypeLoc>()) { in fill() 257 if (AdjustedTypeLoc ATL = TL.getAs<AdjustedTypeLoc>()) { in fill() 262 TL.getAs<BlockPointerTypeLoc>()) { in fill() 267 TL.getAs<MemberPointerTypeLoc>()) { in fill() 271 if (ElaboratedTypeLoc ETL = TL.getAs<ElaboratedTypeLoc>()) { in fill() 276 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) { in fill() 283 TL.getAs<TemplateSpecializationTypeLoc>()) { in fill() 295 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) { in fill()
|
D | Type.cpp | 53 ND = ty->getAs<RecordType>()->getDecl(); in getBaseTypeIdentifier() 55 ND = ty->getAs<EnumType>()->getDecl(); in getBaseTypeIdentifier() 57 ND = ty->getAs<TypedefType>()->getDecl(); in getBaseTypeIdentifier() 300 while (const ParenType *PT = T->getAs<ParenType>()) in IgnoreParens() 326 template <> const TypedefType *Type::getAs() const { in getAs() function in Type 330 template <> const TemplateSpecializationType *Type::getAs() const { in getAs() function in Type 334 template <> const AttributedType *Type::getAs() const { in getAs() function in Type 359 if (const RecordType *RT = getAs<RecordType>()) in isClassType() 364 if (const RecordType *RT = getAs<RecordType>()) in isStructureType() 369 if (const RecordType *RT = getAs<RecordType>()) in isObjCBoxableRecordType() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | PostfixOperatorCheck.cpp | 46 if (const auto *RefType = ReturnType->getAs<ReferenceType>()) { in check() 51 if (Location.isMacroID() || ReturnType->getAs<TypedefType>() || in check() 52 RefType->getPointeeTypeAsWritten()->getAs<TypedefType>()) in check() 78 if (!Location.isMacroID() && !ReturnType->getAs<TypedefType>()) in check()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | CheckPlacementNew.cpp | 83 if (auto ElementCountNL = ElementCount.getAs<NonLoc>()) { in getExtentSizeOfNewTarget() 107 const auto SizeOfTargetCI = SizeOfTarget.getAs<nonloc::ConcreteInt>(); in checkPlaceCapacityIsSufficient() 110 const auto SizeOfPlaceCI = SizeOfPlace.getAs<nonloc::ConcreteInt>(); in checkPlaceCapacityIsSufficient() 192 const DeclRegion *TheElementDeclRegion = SuperRegion->getAs<DeclRegion>(); in checkElementRegionAlign() 196 const DeclRegion *BaseDeclRegion = R->getBaseRegion()->getAs<DeclRegion>(); in checkElementRegionAlign() 242 if (const VarRegion *TheVarRegion = BaseRegion->getAs<VarRegion>()) { in checkFieldRegionAlign() 284 if (const ElementRegion *TheElementRegion = MRegion->getAs<ElementRegion>()) in checkPlaceIsAlignedProperly() 286 else if (const FieldRegion *TheFieldRegion = MRegion->getAs<FieldRegion>()) in checkPlaceIsAlignedProperly() 288 else if (const VarRegion *TheVarRegion = MRegion->getAs<VarRegion>()) in checkPlaceIsAlignedProperly()
|
D | ArrayBoundCheckerV2.cpp | 87 Optional<nonloc::SymbolVal> SymVal = offset.getAs<nonloc::SymbolVal>(); in getSimplifiedOffsets() 146 if (Optional<NonLoc> NV = extentBegin.getAs<NonLoc>()) { in checkLocation() 147 if (NV->getAs<nonloc::ConcreteInt>()) { in checkLocation() 159 Optional<NonLoc> lowerBoundToCheck = lowerBound.getAs<NonLoc>(); in checkLocation() 183 if (!Size.getAs<NonLoc>()) in checkLocation() 186 if (Size.getAs<nonloc::ConcreteInt>()) { in checkLocation() 198 Optional<NonLoc> upperboundToCheck = upperbound.getAs<NonLoc>(); in checkLocation() 278 return val.getAs<UndefinedVal>() ? svalBuilder.makeArrayIndex(0) : val; in getValue() 327 if (!index.getAs<NonLoc>()) in computeOffset()
|
D | GTestChecker.cpp | 138 if (!BooleanArgVal.getAs<Loc>()) in modelAssertionResultBoolConstructor() 229 auto *RefTy = CtorDecl->getParamDecl(0)->getType()->getAs<ReferenceType>(); in checkPostCall() 262 State->getLValue(SuccessField, Instance).getAs<Loc>(); in getAssertionResultSuccessFieldValue() 273 if (!Val1.getAs<DefinedOrUnknownSVal>() || in assumeValuesEqual() 274 !Val2.getAs<DefinedOrUnknownSVal>()) in assumeValuesEqual() 281 if (!ValuesEqual.getAs<DefinedSVal>()) in assumeValuesEqual()
|
D | CheckSecuritySyntaxOnly.cpp | 353 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_bcmp() 363 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcmp() 395 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_bcopy() 405 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcopy() 438 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_bzero() 447 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_bzero() 480 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_gets() 489 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_gets() 516 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_getpw() 529 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>(); in checkCall_getpw() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | NonNullParamChecker.cpp | 97 Optional<DefinedSVal> DV = V.getAs<DefinedSVal>(); in checkPreCall() 102 assert(!haveRefTypeParam || DV->getAs<Loc>()); in checkPreCall() 104 if (haveAttrNonNull && !DV->getAs<Loc>()) { in checkPreCall() 116 DV->getAs<nonloc::CompoundVal>()) { in checkPreCall() 120 DV = V.getAs<DefinedSVal>(); in checkPreCall() 124 if (!V.getAs<Loc>()) in checkPreCall()
|
D | NSErrorChecker.cpp | 191 if (Optional<loc::MemRegionVal> X = val.getAs<loc::MemRegionVal>()) { in parameterTypeFromSVal() 193 if (const VarRegion *VR = R->getAs<VarRegion>()) in parameterTypeFromSVal() 208 if (loc.isUndef() || !loc.getAs<Loc>()) in checkLocation() 283 const PointerType* PPT = T->getAs<PointerType>(); in IsNSError() 288 PPT->getPointeeType()->getAs<ObjCObjectPointerType>(); in IsNSError() 303 const PointerType* PPT = T->getAs<PointerType>(); in IsCFError() 306 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>(); in IsCFError()
|
/external/llvm-project/clang/unittests/Analysis/ |
D | CFGTest.cpp | 130 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST() 131 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST() 154 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST() 155 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST() 178 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST() 179 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST() 201 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST() 202 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST()
|
/external/clang/lib/Index/ |
D | USRGeneration.cpp | 567 if (const PackExpansionType *Expansion = T->getAs<PackExpansionType>()) { in VisitType() 572 if (const BuiltinType *BT = T->getAs<BuiltinType>()) { in VisitType() 664 if (const PointerType *PT = T->getAs<PointerType>()) { in VisitType() 669 if (const ObjCObjectPointerType *OPT = T->getAs<ObjCObjectPointerType>()) { in VisitType() 674 if (const RValueReferenceType *RT = T->getAs<RValueReferenceType>()) { in VisitType() 679 if (const ReferenceType *RT = T->getAs<ReferenceType>()) { in VisitType() 684 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { in VisitType() 693 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) { in VisitType() 698 if (const ComplexType *CT = T->getAs<ComplexType>()) { in VisitType() 703 if (const TagType *TT = T->getAs<TagType>()) { in VisitType() [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaExceptionSpec.cpp | 29 if (const PointerType *PtrTy = T->getAs<PointerType>()) in GetUnderlyingFunction() 31 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>()) in GetUnderlyingFunction() 33 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>()) in GetUnderlyingFunction() 35 return T->getAs<FunctionProtoType>(); in GetUnderlyingFunction() 128 if (const PointerType *PT = T->getAs<PointerType>()) { in CheckSpecifiedExceptionType() 136 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) { in CheckSpecifiedExceptionType() 188 if (const PointerType *PT = T->getAs<PointerType>()) in CheckDistantExceptionSpec() 190 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>()) in CheckDistantExceptionSpec() 195 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>(); in CheckDistantExceptionSpec() 316 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(), in CheckEquivalentExceptionSpec() [all …]
|