Home
last modified time | relevance | path

Searched refs:getAs (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp183 auto FEP = getAs<FunctionExitPoint>(); in printJson()
323 if (getAs<PreLoad>()) in printJson()
325 else if (getAs<PreStore>()) in printJson()
327 else if (getAs<PostAllocatorCall>()) in printJson()
329 else if (getAs<PostCondition>()) in printJson()
331 else if (getAs<PostLoad>()) in printJson()
333 else if (getAs<PostLValue>()) in printJson()
335 else if (getAs<PostStore>()) in printJson()
337 else if (getAs<PostStmt>()) in printJson()
339 else if (getAs<PostStmtPurgeDeadSymbols>()) in printJson()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp46 if (std::optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) { in getAsFunctionDecl()
48 if (const FunctionCodeRegion *CTR = R->getAs<FunctionCodeRegion>()) in getAsFunctionDecl()
53 if (auto X = getAs<nonloc::PointerToMember>()) { in getAsFunctionDecl()
80 std::optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>(); in getLocSymbolInBase()
105 if (std::optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>()) in getAsSymbol()
112 if (auto CI = getAs<nonloc::ConcreteInt>()) in getAsInteger()
114 if (auto CI = getAs<loc::ConcreteInt>()) in getAsInteger()
120 if (std::optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) in getAsRegion()
123 if (std::optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>()) in getAsRegion()
246 return getAs<nonloc::ConcreteInt>() || getAs<loc::ConcreteInt>(); in isConstant()
[all …]
H A DExplodedGraph.cpp100 if (progPoint.getAs<PreStmtPurgeDeadSymbols>()) in shouldCollect()
104 if (!progPoint.getAs<PostStmt>() || progPoint.getAs<PostStore>()) in shouldCollect()
140 if (std::optional<StmtPoint> SP = SuccLoc.getAs<StmtPoint>()) in shouldCollect()
145 if (SuccLoc.getAs<CallEnter>() || SuccLoc.getAs<PreImplicitCall>()) in shouldCollect()
289 if (auto BEP = P.getAs<BlockEntrance>()) in getCFGBlock()
330 if (auto SP = P.getAs<StmtPoint>()) in getStmtForDiagnostics()
332 if (auto BE = P.getAs<BlockEdge>()) in getStmtForDiagnostics()
334 if (auto CE = P.getAs<CallEnter>()) in getStmtForDiagnostics()
336 if (auto CEE = P.getAs<CallExitEnd>()) in getStmtForDiagnostics()
338 if (auto PIPP = P.getAs<PostInitializer>()) in getStmtForDiagnostics()
[all …]
H A DCoreEngine.cpp196 if (const auto SP = Loc.getAs<StmtPoint>()) { in timeTraceMetadata()
249 assert(Loc.getAs<PostStmt>() || in dispatchWorkItem()
250 Loc.getAs<PostInitializer>() || in dispatchWorkItem()
251 Loc.getAs<PostImplicitCall>() || in dispatchWorkItem()
252 Loc.getAs<CallExitEnd>() || in dispatchWorkItem()
253 Loc.getAs<LoopExit>() || in dispatchWorkItem()
254 Loc.getAs<PostAllocatorCall>()); in dispatchWorkItem()
299 if (std::optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge()
302 LastElement.getAs<CFGAutomaticObjDtor>()) { in HandleBlockEdge()
579 if (N->getLocation().getAs<CallEnter>()) { in enqueueStmtNode()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DComment.cpp132 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 DType.cpp599 while (const auto *PT = T->getAs<ParenType>()) in IgnoreParens()
626 template <> const TypedefType *Type::getAs() const { in getAs() function in Type
630 template <> const UsingType *Type::getAs() const { in getAs() function in Type
634 template <> const TemplateSpecializationType *Type::getAs() const { in getAs() function in Type
638 template <> const AttributedType *Type::getAs() const { in getAs() function in Type
642 template <> const BoundsAttributedType *Type::getAs() const { in getAs() function in Type
646 template <> const CountAttributedType *Type::getAs() const { in getAs() function in Type
673 if (const auto *RT = getAs<RecordType>()) in isClassType()
679 if (const auto *RT = getAs<RecordType>()) in isStructureType()
685 const auto *RT = getAs<RecordType>(); in isStructureTypeWithFlexibleArrayMember()
[all …]
H A DFormatString.cpp333 const PointerType *PT = argTy->getAs<PointerType>(); in matchesType()
352 if (const auto *ETy = argTy->getAs<EnumType>()) { in matchesType()
362 if (const auto *BT = argTy->getAs<BuiltinType>()) { in matchesType()
397 if (const EnumType *ETy = argTy->getAs<EnumType>()) { in matchesType()
414 if (const auto *BT = argTy->getAs<BuiltinType>()) { in matchesType()
524 if (const auto *PT = argTy->getAs<PointerType>(); in matchesType()
530 if (const auto *PT = argTy->getAs<PointerType>(); in matchesType()
557 if (const auto *PT = argTy->getAs<PointerType>()) { in matchesType()
577 if (argTy->getAs<ObjCObjectPointerType>() || in matchesType()
578 argTy->getAs<BlockPointerType>()) in matchesType()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DChrono.h158 template <typename AsPeriod> static InternalRep getAs(const Dur &D) {
167 return {getAs<std::nano>(D), "ns"};
169 return {getAs<std::micro>(D), "us"};
171 return {getAs<std::milli>(D), "ms"};
173 return {getAs<std::ratio<1>>(D), "s"};
175 return {getAs<std::ratio<60>>(D), "m"};
177 return {getAs<std::ratio<3600>>(D), "h"};
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHeuristicResolver.cpp114 if (const auto *TST = T->getAs<TemplateSpecializationType>()) { in getReferencedTemplateName()
117 if (const auto *DTST = T->getAs<DeducedTemplateSpecializationType>()) { in getReferencedTemplateName()
134 if (const auto *DNT = T->getAs<DependentNameType>()) { in resolveTypeToTagDecl()
142 if (auto *TT = T->getAs<TagType>()) { in resolveTypeToTagDecl()
154 if (const auto *ICNT = T->getAs<InjectedClassNameType>()) in resolveTypeToTagDecl()
193 auto *TST = T->getAs<TemplateSpecializationType>(); in getPointeeType()
223 if (const auto *RT = T.Type->getAs<ReferenceType>()) { in simplifyType()
227 if (const auto *BT = T.Type->getAs<BuiltinType>()) { in simplifyType()
330 if (const auto *FnTypePtr = CalleeType->getAs<PointerType>()) in resolveTypeOfCallExpr()
332 if (const FunctionType *FnType = CalleeType->getAs<FunctionType>()) { in resolveTypeOfCallExpr()
[all …]
H A DSemaCast.cpp588 if (auto Ptr = From->getAs<PointerType>()) { in diagnoseBadCast()
593 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast()
598 auto RecFrom = From->getAs<RecordType>(); in diagnoseBadCast()
599 auto RecTo = To->getAs<RecordType>(); in diagnoseBadCast()
855 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast()
859 } else if ((DestReference = DestType->getAs<ReferenceType>())) { in CheckDynamicCast()
868 const RecordType *DestRecord = DestPointee->getAs<RecordType>(); in CheckDynamicCast()
892 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
915 const RecordType *SrcRecord = SrcPointee->getAs<RecordType>(); in CheckDynamicCast()
1194 if (const auto *PT = T->getAs<FunctionProtoType>()) in checkCastFunctionType()
[all …]
H A DSemaExceptionSpec.cpp30 if (const PointerType *PtrTy = T->getAs<PointerType>()) in GetUnderlyingFunction()
32 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>()) in GetUnderlyingFunction()
34 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>()) in GetUnderlyingFunction()
36 return T->getAs<FunctionProtoType>(); in GetUnderlyingFunction()
131 if (const PointerType *PT = T->getAs<PointerType>()) { in CheckSpecifiedExceptionType()
139 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) { in CheckSpecifiedExceptionType()
194 if (const PointerType *PT = T->getAs<PointerType>()) in CheckDistantExceptionSpec()
196 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>()) in CheckDistantExceptionSpec()
201 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>(); in CheckDistantExceptionSpec()
323 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(), in CheckEquivalentExceptionSpec()
[all …]
H A DSemaBPF.cpp55 if (ArgType->getAs<TypedefType>()) in isValidPreserveTypeInfoArg()
60 if (const auto *RT = Ty->getAs<RecordType>()) { in isValidPreserveTypeInfoArg()
63 } else if (const auto *ET = Ty->getAs<EnumType>()) { in isValidPreserveTypeInfoArg()
103 const auto *ET = Ty->getAs<EnumType>(); in isValidPreserveEnumValueArg()
H A DSemaSwift.cpp51 if (const auto *PtrType = Ty->getAs<PointerType>()) { in isValidSwiftIndirectResultType()
53 } else if (const auto *RefType = Ty->getAs<ReferenceType>()) { in isValidSwiftIndirectResultType()
63 if (const auto *PtrType = Ty->getAs<PointerType>()) { in isValidSwiftErrorResultType()
65 } else if (const auto *RefType = Ty->getAs<ReferenceType>()) { in isValidSwiftErrorResultType()
118 const auto *PT = QT->getAs<PointerType>(); in isErrorParameter()
125 if (const auto *OPT = Pointee->getAs<ObjCObjectPointerType>()) in isErrorParameter()
131 if (const auto *PT = Pointee->getAs<PointerType>()) in isErrorParameter()
132 if (const auto *RT = PT->getPointeeType()->getAs<RecordType>()) in isErrorParameter()
233 ->getAs<FunctionProtoType>(); in checkSwiftAsyncErrorBlock()
264 if (const auto *ObjCPtrTy = Param->getAs<ObjCObjectPointerType>()) { in checkSwiftAsyncErrorBlock()
[all …]
H A DSemaSPIRV.cpp84 const auto *PtrTy = Ty->getAs<PointerType>(); in checkGenericCastToPtr()
162 auto *VTyA = ArgTyA->getAs<VectorType>(); in CheckSPIRVBuiltinFunctionCall()
174 auto *VTyB = ArgTyB->getAs<VectorType>(); in CheckSPIRVBuiltinFunctionCall()
193 auto *VTy = ArgTyA->getAs<VectorType>(); in CheckSPIRVBuiltinFunctionCall()
212 auto *VTyA = ArgTyA->getAs<VectorType>(); in CheckSPIRVBuiltinFunctionCall()
224 auto *VTyB = ArgTyB->getAs<VectorType>(); in CheckSPIRVBuiltinFunctionCall()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp83 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 DLLVMConventionsChecker.cpp30 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 DNSErrorChecker.cpp201 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()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp25 const TypedefType *TypedefTy = Type->getAs<TypedefType>(); in getUnderlyingTypeDecl()
28 if (const TagType *TagTy = Type->getAs<TagType>()) { in getUnderlyingTypeDecl()
31 Type->getAs<ObjCInterfaceType>()) { in getUnderlyingTypeDecl()
53 const TypedefType *TypedefTy = Type->getAs<TypedefType>(); in getSymbolReferenceForType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfoImpl.cpp31 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
35 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType()
55 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
58 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType()
118 const RecordType *RT = T->getAs<RecordType>(); in getRecordArgABI()
128 if (const auto *RT = Ty->getAs<RecordType>()) in classifyReturnType()
265 const RecordType *RT = FT->getAs<RecordType>(); in isEmptyField()
288 const RecordType *RT = T->getAs<RecordType>(); in isEmptyRecord()
319 const RecordType *RT = T->getAs<RecordType>(); in isEmptyRecordForLayout()
343 const RecordType *RT = T->getAs<RecordType>(); in isSingleElementStruct()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DBPF.cpp50 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
54 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType()
72 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
76 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType()
H A DPNaCl.cpp69 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
75 } else if (const auto *EIT = Ty->getAs<BitIntType>()) { in classifyArgumentType()
96 if (const auto *EIT = RetTy->getAs<BitIntType>()) { in classifyReturnType()
104 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
H A DPPC.cpp156 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
169 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI()
230 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
258 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
298 Ty->isRecordType() ? Ty->getAs<RecordType>()->getDecl() : nullptr; in setTargetAttributes()
378 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
389 const BuiltinType *BT = EltType->getAs<BuiltinType>(); in getParamTypeAlignment()
443 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
650 const BuiltinType *BT = T->getAs<BuiltinType>(); in computeInfo()
709 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
[all …]
H A DARM.cpp317 if (const VectorType *VT = Base->getAs<VectorType>()) { in classifyHomogeneousAggregate()
385 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
389 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType()
504 if (Ty->getAs<BuiltinType>() || Ty->isPointerType()) in isIntegerLikeType()
508 if (const ComplexType *CT = Ty->getAs<ComplexType>()) in isIntegerLikeType()
515 const RecordType *RT = Ty->getAs<RecordType>(); in isIntegerLikeType()
578 if (const VectorType *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
595 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
598 if (const auto *EIT = RetTy->getAs<BitIntType>()) in classifyReturnType()
676 if (const VectorType *VT = Ty->getAs<VectorType> ()) { in isIllegalVectorType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DUSRGeneration.cpp275 if (const auto *FPT = CanonicalType->getAs<FunctionProtoType>()) { in VisitFunctionDecl()
687 if (const PackExpansionType *Expansion = T->getAs<PackExpansionType>()) { in VisitType()
692 if (const BuiltinType *BT = T->getAs<BuiltinType>()) { in VisitType()
869 if (const PointerType *PT = T->getAs<PointerType>()) { in VisitType()
874 if (const ObjCObjectPointerType *OPT = T->getAs<ObjCObjectPointerType>()) { in VisitType()
879 if (const RValueReferenceType *RT = T->getAs<RValueReferenceType>()) { in VisitType()
884 if (const ReferenceType *RT = T->getAs<ReferenceType>()) { in VisitType()
889 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { in VisitType()
902 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) { in VisitType()
907 if (const ComplexType *CT = T->getAs<ComplexType>()) { in VisitType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DLowLevelHelpers.cpp58 FProto = QT->getPointeeType()->getAs<FunctionProtoType>(); in matchEachArgumentWithParamTypeImpl()
61 const auto *MP = QT->getAs<MemberPointerType>(); in matchEachArgumentWithParamTypeImpl()
63 FProto = MP->getPointeeType()->getAs<FunctionProtoType>(); in matchEachArgumentWithParamTypeImpl()

12345678910>>...14