| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A 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() 222 else if (getAs<PreStmtPurgeDeadSymbols>()) in printJson() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | SVals.cpp | 47 if (std::optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) { in getAsFunctionDecl() 49 if (const FunctionCodeRegion *CTR = R->getAs<FunctionCodeRegion>()) in getAsFunctionDecl() 54 if (auto X = getAs<nonloc::PointerToMember>()) { in getAsFunctionDecl() 81 std::optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>(); in getLocSymbolInBase() 106 if (std::optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>()) in getAsSymbol() 113 if (auto CI = getAs<nonloc::ConcreteInt>()) in getAsInteger() 115 if (auto CI = getAs<loc::ConcreteInt>()) in getAsInteger() 121 if (std::optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) in getAsRegion() 124 if (std::optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>()) in getAsRegion() 247 return getAs<nonloc::ConcreteInt>() || getAs<loc::ConcreteInt>(); in isConstant() [all …]
|
| H A D | ExplodedGraph.cpp | 102 if (progPoint.getAs<PreStmtPurgeDeadSymbols>()) in shouldCollect() 106 if (!progPoint.getAs<PostStmt>() || progPoint.getAs<PostStore>()) in shouldCollect() 147 if (SuccLoc.getAs<CallEnter>() || SuccLoc.getAs<PreImplicitCall>()) in shouldCollect() 291 if (auto BEP = P.getAs<BlockEntrance>()) in getCFGBlock() 332 if (auto SP = P.getAs<StmtPoint>()) in getStmtForDiagnostics() 334 if (auto BE = P.getAs<BlockEdge>()) in getStmtForDiagnostics() 336 if (auto CE = P.getAs<CallEnter>()) in getStmtForDiagnostics() 338 if (auto CEE = P.getAs<CallExitEnd>()) in getStmtForDiagnostics() 340 if (auto PIPP = P.getAs<PostInitializer>()) in getStmtForDiagnostics() 342 if (auto CEB = P.getAs<CallExitBegin>()) in getStmtForDiagnostics() [all …]
|
| H A D | CoreEngine.cpp | 214 assert(Loc.getAs<PostStmt>() || in dispatchWorkItem() 215 Loc.getAs<PostInitializer>() || in dispatchWorkItem() 216 Loc.getAs<PostImplicitCall>() || in dispatchWorkItem() 217 Loc.getAs<CallExitEnd>() || in dispatchWorkItem() 218 Loc.getAs<LoopExit>() || in dispatchWorkItem() 219 Loc.getAs<PostAllocatorCall>()); in dispatchWorkItem() 548 if (N->getLocation().getAs<CallEnter>()) { in enqueueStmtNode() 556 if (N->getLocation().getAs<PostInitializer>() || in enqueueStmtNode() 557 N->getLocation().getAs<PostImplicitCall>()|| in enqueueStmtNode() 558 N->getLocation().getAs<LoopExit>()) { in enqueueStmtNode() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | Comment.cpp | 132 if (AttributedTypeLoc AttributeTL = TL.getAs<AttributedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 135 if (QualifiedTypeLoc QualifiedTL = TL.getAs<QualifiedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 138 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 141 if (ReferenceTypeLoc ReferenceTL = TL.getAs<ReferenceTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 144 if (AdjustedTypeLoc ATL = TL.getAs<AdjustedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 146 if (BlockPointerTypeLoc BlockPointerTL = TL.getAs<BlockPointerTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 148 if (MemberPointerTypeLoc MemberPointerTL = TL.getAs<MemberPointerTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 150 if (ElaboratedTypeLoc ETL = TL.getAs<ElaboratedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 163 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) { in getFunctionTypeLoc() 169 TL.getAs<TemplateSpecializationTypeLoc>()) { in getFunctionTypeLoc() [all …]
|
| H A D | Type.cpp | 584 if (const auto *RT = getAs<RecordType>()) in isClassType() 590 if (const auto *RT = getAs<RecordType>()) in isStructureType() 596 if (const auto *RT = getAs<RecordType>()) in isObjCBoxableRecordType() 602 if (const auto *RT = getAs<RecordType>()) in isInterfaceType() 616 if (const auto *PT = getAs<PointerType>()) in isVoidPointerType() 622 if (const auto *RT = getAs<RecordType>()) in isUnionType() 639 if (const auto *ET = getAs<EnumType>()) in isScopedEnumeralType() 728 ->getAs<ObjCObjectType>(); in isObjCIdOrObjectKindOfType() 1614 } else if (getAs<BlockPointerType>()) { in getObjCSubstitutions() 1619 objectType = getAs<ObjCObjectType>(); in getObjCSubstitutions() [all …]
|
| H A D | CXXInheritance.cpp | 133 const RecordType *Ty = I.getType()->getAs<RecordType>(); in forallBases() 193 DetectedVirtual = BaseType->getAs<RecordType>(); in lookupInBases() 251 BaseSpec.getType()->getAs<TemplateSpecializationType>(); in lookupInBases() 253 if (auto *RT = BaseSpec.getType()->getAs<RecordType>()) in lookupInBases() 336 if (const RecordType *Record = PE.Base->getType()->getAs<RecordType>()) in lookupInBases() 348 HidingP.back().Base->getType()->getAs<RecordType>()) in lookupInBases() 415 Specifier->getType()->getAs<TemplateSpecializationType>(); in findOrdinaryMemberInDependentClasses() 417 auto *RT = Specifier->getType()->getAs<RecordType>(); in findOrdinaryMemberInDependentClasses() 521 if (const RecordType *RT = Base.getType()->getAs<RecordType>()) { in Collect()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Chrono.h | 146 template <typename AsPeriod> static InternalRep getAs(const Dur &D) { 155 return {getAs<std::nano>(D), "ns"}; 157 return {getAs<std::micro>(D), "us"}; 159 return {getAs<std::milli>(D), "ms"}; 161 return {getAs<std::ratio<1>>(D), "s"}; 163 return {getAs<std::ratio<60>>(D), "m"}; 165 return {getAs<std::ratio<3600>>(D), "h"};
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ArrayBoundCheckerV2.cpp | 90 return SVB.evalBinOpNN(State, Op, L, R, T).getAs<NonLoc>(); in computeOffset() 100 const auto Index = CurRegion->getIndex().getAs<NonLoc>(); in computeOffset() 124 OwnerRegion = CurRegion->getSuperRegion()->getAs<SubRegion>(); in computeOffset() 184 if (auto ConcreteThreshold = Threshold.getAs<nonloc::ConcreteInt>()) { in compareValueToThreshold() 187 if (auto ConcreteThreshold = Threshold.getAs<nonloc::ConcreteInt>()) { in compareValueToThreshold() 202 .getAs<NonLoc>(); in compareValueToThreshold() 216 if (const auto *FR = Region->getAs<FieldRegion>()) { in getRegionName() 236 if (auto ConcreteVal = SV.getAs<nonloc::ConcreteInt>()) { in getConcreteValue() 256 if (auto ConcreteIdx = Offset.getAs<nonloc::ConcreteInt>()) in getPrecedesMsgs() 264 const auto *EReg = Location.getAsRegion()->getAs<ElementRegion>(); in getExceedsMsgs() [all …]
|
| H A 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()
|
| H A D | CheckSecuritySyntaxOnly.cpp | 351 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_bcmp() 361 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcmp() 393 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_bcopy() 403 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_bcopy() 436 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_bzero() 445 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_bzero() 487 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_gets() 527 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>(); in checkCall_getpw() 567 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_mktemp() 835 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>(); in checkCall_strCommon() [all …]
|
| H A D | LLVMConventionsChecker.cpp | 30 const RecordType *RT = T->getAs<RecordType>(); in IsLLVMStringRef() 50 if (const ElaboratedType *QT = T->getAs<ElaboratedType>()) in IsStdString() 53 const TypedefType *TT = T->getAs<TypedefType>(); in IsStdString() 82 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>(); in IsStdVector() 96 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>(); in IsSmallVector() 203 if (const RecordType *baseT = T->getAs<RecordType>()) { in IsPartOfAST() 249 if (const RecordType *RT = T->getAs<RecordType>()) { in Visit()
|
| H A D | GTestChecker.cpp | 228 auto *RefTy = CtorDecl->getParamDecl(0)->getType()->getAs<ReferenceType>(); in checkPostCall() 261 State->getLValue(SuccessField, Instance).getAs<Loc>(); in getAssertionResultSuccessFieldValue() 272 auto DVal1 = Val1.getAs<DefinedOrUnknownSVal>(); in assumeValuesEqual() 273 auto DVal2 = Val2.getAs<DefinedOrUnknownSVal>(); in assumeValuesEqual() 278 C.getSValBuilder().evalEQ(State, *DVal1, *DVal2).getAs<DefinedSVal>(); in assumeValuesEqual()
|
| H A D | NSErrorChecker.cpp | 201 if (std::optional<loc::MemRegionVal> X = val.getAs<loc::MemRegionVal>()) { in parameterTypeFromSVal() 203 if (const VarRegion *VR = R->getAs<VarRegion>()) in parameterTypeFromSVal() 294 const PointerType* PPT = T->getAs<PointerType>(); in IsNSError() 299 PPT->getPointeeType()->getAs<ObjCObjectPointerType>(); in IsNSError() 314 const PointerType* PPT = T->getAs<PointerType>(); in IsCFError() 317 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>(); in IsCFError()
|
| H A D | ReturnPointerRangeChecker.cpp | 89 const auto ConcreteElementCount = ElementCount.getAs<nonloc::ConcreteInt>(); in checkPreStmt() 90 const auto ConcreteIdx = Idx.getAs<nonloc::ConcreteInt>(); in checkPreStmt() 92 const auto *DeclR = ER->getSuperRegion()->getAs<DeclRegion>(); in checkPreStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ExtractAPI/ |
| H A D | TypedefUnderlyingTypeResolver.cpp | 24 const TypedefType *TypedefTy = Type->getAs<TypedefType>(); in getUnderlyingTypeDecl() 27 if (const TagType *TagTy = Type->getAs<TagType>()) { in getUnderlyingTypeDecl() 30 Type->getAs<ObjCInterfaceType>()) { in getUnderlyingTypeDecl() 52 const TypedefType *TypedefTy = Type->getAs<TypedefType>(); in getSymbolReferenceForType()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | BPF.cpp | 49 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() 53 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType() 69 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() 73 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType()
|
| H A D | PNaCl.cpp | 65 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType() 71 } else if (const auto *EIT = Ty->getAs<BitIntType>()) { in classifyArgumentType() 92 if (const auto *EIT = RetTy->getAs<BitIntType>()) { in classifyReturnType() 99 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
|
| H A D | PPC.cpp | 155 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI() 168 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI() 225 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment() 318 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment() 589 const BuiltinType *BT = T->getAs<BuiltinType>(); in computeInfo() 648 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI() 657 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI() 666 if (const auto *EIT = Ty->getAs<BitIntType>()) in isPromotableTypeForABI() 745 if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType() 785 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType() [all …]
|
| H A D | ARM.cpp | 311 if (const VectorType *VT = Base->getAs<VectorType>()) { in classifyHomogeneousAggregate() 354 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType() 358 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType() 467 if (Ty->getAs<BuiltinType>() || Ty->isPointerType()) in isIntegerLikeType() 471 if (const ComplexType *CT = Ty->getAs<ComplexType>()) in isIntegerLikeType() 478 const RecordType *RT = Ty->getAs<RecordType>(); in isIntegerLikeType() 541 if (const VectorType *VT = RetTy->getAs<VectorType>()) { in classifyReturnType() 560 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType() 640 if (const VectorType *VT = Ty->getAs<VectorType> ()) { in isIllegalVectorType() 701 if (const VectorType *VT = Ty->getAs<VectorType>()) in containsAnyFP16Vectors() [all …]
|
| H A D | Mips.cpp | 139 const RecordType *RT = Ty->getAs<RecordType>(); in HandleAggregates() 160 const BuiltinType *BT = Ty->getAs<BuiltinType>(); in HandleAggregates() 226 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() 230 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType() 246 const RecordType *RT = RetTy->getAs<RecordType>(); in returnAggregateInRegs() 266 const BuiltinType *BT = b->getType()->getAs<BuiltinType>(); in returnAggregateInRegs() 317 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() 321 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | ABIInfoImpl.cpp | 30 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() 34 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType() 53 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() 56 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType() 122 const RecordType *RT = T->getAs<RecordType>(); in getRecordArgABI() 132 if (const auto *RT = Ty->getAs<RecordType>()) in classifyReturnType() 268 const RecordType *RT = FT->getAs<RecordType>(); in isEmptyField() 291 const RecordType *RT = T->getAs<RecordType>(); in isEmptyRecord() 311 const RecordType *RT = T->getAs<RecordType>(); in isSingleElementStruct() 427 return Ty->getAs<VectorType>() && Context.getTypeSize(Ty) == 128; in isSIMDVectorType() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaExceptionSpec.cpp | 30 if (const PointerType *PtrTy = T->getAs<PointerType>()) in GetUnderlyingFunction() 32 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>()) in GetUnderlyingFunction() 36 return T->getAs<FunctionProtoType>(); in GetUnderlyingFunction() 135 if (const PointerType *PT = T->getAs<PointerType>()) { in CheckSpecifiedExceptionType() 201 if (const PointerType *PT = T->getAs<PointerType>()) in CheckDistantExceptionSpec() 473 if (auto FTLoc = TL.getAs<FunctionProtoTypeLoc>()) in CheckEquivalentExceptionSpec() 1050 if ((FT = T->getAs<FunctionProtoType>())) { in canCalleeThrow() 1052 FT = PT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow() 1054 FT = RT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow() 1056 FT = MT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow() [all …]
|
| H A D | SemaCast.cpp | 531 if (auto Ptr = From->getAs<PointerType>()) { in diagnoseBadCast() 536 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast() 541 auto RecFrom = From->getAs<RecordType>(); in diagnoseBadCast() 542 auto RecTo = To->getAs<RecordType>(); in diagnoseBadCast() 1294 auto *SrcPtrType = SrcType->getAs<PointerType>(); in IsAddressSpaceConversion() 1656 if (!DestType->getAs<RecordType>() || !SrcType->getAs<RecordType>()) { in TryStaticDowncast() 2046 if (!SrcType->getAs<PointerType>() || !DestType->getAs<PointerType>()) { in CheckCompatibleReinterpretCast() 2052 if (!DestType->getAs<ReferenceType>()) { in CheckCompatibleReinterpretCast() 2069 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast() 2612 auto SrcPtrType = SrcType->getAs<PointerType>(); in TryAddressSpaceCast() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Index/ |
| H A D | USRGeneration.cpp | 685 if (const BuiltinType *BT = T->getAs<BuiltinType>()) { in VisitType() 855 if (const PointerType *PT = T->getAs<PointerType>()) { in VisitType() 870 if (const ReferenceType *RT = T->getAs<ReferenceType>()) { in VisitType() 875 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { in VisitType() 888 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) { in VisitType() 893 if (const ComplexType *CT = T->getAs<ComplexType>()) { in VisitType() 898 if (const TagType *TT = T->getAs<TagType>()) { in VisitType() 903 if (const ObjCInterfaceType *OIT = T->getAs<ObjCInterfaceType>()) { in VisitType() 908 if (const ObjCObjectType *OIT = T->getAs<ObjCObjectType>()) { in VisitType() 928 if (const DependentNameType *DNT = T->getAs<DependentNameType>()) { in VisitType() [all …]
|