Searched refs:getAs (Results 1 - 25 of 251) sorted by relevance

1234567891011

/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp45 if (Optional<nonloc::SymbolVal> SV = getAs<nonloc::SymbolVal>()) {
51 if (Optional<loc::MemRegionVal> RV = getAs<loc::MemRegionVal>()) {
64 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
66 if (const FunctionCodeRegion *CTR = R->getAs<FunctionCodeRegion>())
71 if (auto X = getAs<nonloc::PointerToMember>()) {
87 if (Optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>())
90 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
102 Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>();
129 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
138 if (Optional<nonloc::SymbolVal> X = getAs<nonlo
[all...]
H A DExplodedGraph.cpp103 if (progPoint.getAs<PreStmtPurgeDeadSymbols>())
107 if (!progPoint.getAs<PostStmt>() || progPoint.getAs<PostStore>())
143 if (Optional<StmtPoint> SP = SuccLoc.getAs<StmtPoint>())
148 if (SuccLoc.getAs<CallEnter>() || SuccLoc.getAs<PreImplicitCall>())
293 if (auto BEP = P.getAs<BlockEntrance>())
334 if (auto SP = P.getAs<StmtPoint>())
336 if (auto BE = P.getAs<BlockEdge>())
338 if (auto CE = P.getAs<CallEnte
[all...]
H A DCoreEngine.cpp185 assert(Loc.getAs<PostStmt>() ||
186 Loc.getAs<PostInitializer>() ||
187 Loc.getAs<PostImplicitCall>() ||
188 Loc.getAs<CallExitEnd>() ||
189 Loc.getAs<LoopExit>() ||
190 Loc.getAs<PostAllocatorCall>());
246 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) {
249 LastElement.getAs<CFGAutomaticObjDtor>()) {
518 if (N->getLocation().getAs<CallEnter>()) {
526 if (N->getLocation().getAs<PostInitialize
[all...]
H A DSimpleSValBuilder.cpp69 assert(Val.getAs<Loc>() || Val.getAs<NonLoc>());
70 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy)
76 if (val.getAs<nonloc::PointerToMember>())
79 if (Optional<nonloc::LocAsInteger> LI = val.getAs<nonloc::LocAsInteger>()) {
107 if (!val.getAs<nonloc::ConcreteInt>())
177 if (!val.getAs<loc::ConcreteInt>())
319 if (auto DV = Result.getAs<DefinedSVal>()) {
760 if (auto simplifiedLhsAsNonLoc = simplifiedLhs.getAs<NonLoc>()) {
901 if (Optional<loc::ConcreteInt> rInt = rhs.getAs<lo
[all...]
H A DCheckerContext.cpp106 if (!LHSVal.getAs<NonLoc>()) {
109 if (LHSVal.isUnknownOrUndef() || !LHSVal.getAs<NonLoc>())
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp67 auto FEP = getAs<FunctionExitPoint>();
204 if (getAs<PreLoad>())
206 else if (getAs<PreStore>())
208 else if (getAs<PostAllocatorCall>())
210 else if (getAs<PostCondition>())
212 else if (getAs<PostLoad>())
214 else if (getAs<PostLValue>())
216 else if (getAs<PostStore>())
218 else if (getAs<PostStmt>())
220 else if (getAs<PostStmtPurgeDeadSymbol
[all...]
H A DCocoaConventions.cpp27 while (const TypedefType *TD = RetTy->getAs<TypedefType>()) {
69 const ObjCObjectPointerType *PT = Ty->getAs<ObjCObjectPointerType>();
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DChrono.h119 template <typename AsPeriod> static InternalRep getAs(const Dur &D) { function in struct:llvm::format_provider
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"};
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DComment.cpp134 if (AttributedTypeLoc AttributeTL = TL.getAs<AttributedTypeLoc>())
137 if (QualifiedTypeLoc QualifiedTL = TL.getAs<QualifiedTypeLoc>())
140 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>())
143 if (ReferenceTypeLoc ReferenceTL = TL.getAs<ReferenceTypeLoc>())
146 if (AdjustedTypeLoc ATL = TL.getAs<AdjustedTypeLoc>())
148 if (BlockPointerTypeLoc BlockPointerTL = TL.getAs<BlockPointerTypeLoc>())
150 if (MemberPointerTypeLoc MemberPointerTL = TL.getAs<MemberPointerTypeLoc>())
152 if (ElaboratedTypeLoc ETL = TL.getAs<ElaboratedTypeLoc>())
165 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) {
171 TL.getAs<TemplateSpecializationTypeLo
[all...]
H A DType.cpp500 while (const auto *PT = T->getAs<ParenType>())
526 template <> const TypedefType *Type::getAs() const { function in class:Type
530 template <> const TemplateSpecializationType *Type::getAs() const { function in class:Type
534 template <> const AttributedType *Type::getAs() const { function in class:Type
560 if (const auto *RT = getAs<RecordType>())
566 if (const auto *RT = getAs<RecordType>())
572 if (const auto *RT = getAs<RecordType>())
578 if (const auto *RT = getAs<RecordType>())
584 if (const auto *RT = getAs<RecordType>()) {
592 if (const auto *PT = getAs<PointerTyp
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DLLVMConventionsChecker.cpp30 const RecordType *RT = T->getAs<RecordType>();
50 if (const ElaboratedType *QT = T->getAs<ElaboratedType>())
53 const TypedefType *TT = T->getAs<TypedefType>();
82 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
96 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
203 if (const RecordType *baseT = T->getAs<RecordType>()) {
249 if (const RecordType *RT = T->getAs<RecordType>()) {
H A DArrayBoundCheckerV2.cpp87 Optional<nonloc::SymbolVal> SymVal = offset.getAs<nonloc::SymbolVal>();
146 if (Optional<NonLoc> NV = extentBegin.getAs<NonLoc>()) {
147 if (NV->getAs<nonloc::ConcreteInt>()) {
159 Optional<NonLoc> lowerBoundToCheck = lowerBound.getAs<NonLoc>();
183 if (!Size.getAs<NonLoc>())
186 if (Size.getAs<nonloc::ConcreteInt>()) {
198 Optional<NonLoc> upperboundToCheck = upperbound.getAs<NonLoc>();
278 return val.getAs<UndefinedVal>() ? svalBuilder.makeArrayIndex(0) : val;
327 if (!index.getAs<NonLoc>())
H A DCheckPlacementNew.cpp83 if (auto ElementCountNL = ElementCount.getAs<NonLoc>()) {
107 const auto SizeOfTargetCI = SizeOfTarget.getAs<nonloc::ConcreteInt>();
110 const auto SizeOfPlaceCI = SizeOfPlace.getAs<nonloc::ConcreteInt>();
192 const DeclRegion *TheElementDeclRegion = SuperRegion->getAs<DeclRegion>();
196 const DeclRegion *BaseDeclRegion = R->getBaseRegion()->getAs<DeclRegion>();
242 if (const VarRegion *TheVarRegion = BaseRegion->getAs<VarRegion>()) {
284 if (const ElementRegion *TheElementRegion = MRegion->getAs<ElementRegion>())
286 else if (const FieldRegion *TheFieldRegion = MRegion->getAs<FieldRegion>())
288 else if (const VarRegion *TheVarRegion = MRegion->getAs<VarRegion>())
H A DBoolAssignmentChecker.cpp47 if (const TypedefType *TT = Ty->getAs<TypedefType>())
73 Optional<NonLoc> NV = val.getAs<NonLoc>();
H A DGTestChecker.cpp138 if (!BooleanArgVal.getAs<Loc>())
229 auto *RefTy = CtorDecl->getParamDecl(0)->getType()->getAs<ReferenceType>();
262 State->getLValue(SuccessField, Instance).getAs<Loc>();
273 if (!Val1.getAs<DefinedOrUnknownSVal>() ||
274 !Val2.getAs<DefinedOrUnknownSVal>())
281 if (!ValuesEqual.getAs<DefinedSVal>())
H A DNonNullParamChecker.cpp135 auto DV = V.getAs<DefinedSVal>();
139 assert(!HasRefTypeParam || DV->getAs<Loc>());
142 if (ExpectedToBeNonNull && !DV->getAs<Loc>()) {
153 auto CSV = DV->getAs<nonloc::CompoundVal>();
160 DV = V.getAs<DefinedSVal>();
164 if (!V.getAs<Loc>())
H A DNSErrorChecker.cpp200 if (Optional<loc::MemRegionVal> X = val.getAs<loc::MemRegionVal>()) {
202 if (const VarRegion *VR = R->getAs<VarRegion>())
217 if (loc.isUndef() || !loc.getAs<Loc>())
293 const PointerType* PPT = T->getAs<PointerType>();
298 PPT->getPointeeType()->getAs<ObjCObjectPointerType>();
313 const PointerType* PPT = T->getAs<PointerType>();
316 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>();
H A DIterator.cpp191 } else if (const auto LCVal = Val.getAs<nonloc::LazyCompoundVal>()) {
204 } else if (const auto LCVal = Val.getAs<nonloc::LazyCompoundVal>()) {
239 const auto IntDistOp = Distance.getAs<nonloc::ConcreteInt>();
280 if (auto DV = IsCappedFromAbove.getAs<DefinedSVal>()) {
290 if (auto DV = IsCappedFromBelow.getAs<DefinedSVal>()) {
311 assert(comparison.getAs<DefinedSVal>() &&
H A DDeleteWithNonVirtualDtorChecker.cpp68 const auto *BaseClassRegion = MR->getAs<TypedValueRegion>();
69 const auto *DerivedClassRegion = MR->getBaseRegion()->getAs<SymbolicRegion>();
H A DNonnullGlobalConstantsChecker.cpp80 Optional<DefinedOrUnknownSVal> Constr = V.getAs<DefinedOrUnknownSVal>();
94 Optional<loc::MemRegionVal> RegionVal = V.getAs<loc::MemRegionVal>();
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedPointee.cpp144 V.getAs<nonloc::LocAsInteger>()) &&
147 if (V.isUnknown() || V.getAs<loc::ConcreteInt>()) {
234 V.getAs<nonloc::LocAsInteger>();
237 const auto *R = V.getAsRegion()->getAs<TypedValueRegion>();
248 R = Tmp->getAs<TypedValueRegion>();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaExceptionSpec.cpp29 if (const PointerType *PtrTy = T->getAs<PointerType>())
31 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>())
33 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>())
35 return T->getAs<FunctionProtoType>();
130 if (const PointerType *PT = T->getAs<PointerType>()) {
138 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
190 if (const PointerType *PT = T->getAs<PointerType>())
192 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>())
197 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>();
318 Old->getType()->getAs<FunctionProtoTyp
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.cpp88 qual_type.getTypePtr()->getAs<FunctionProtoType>();
154 } else if (const TagType *tag_type = qual_type->getAs<TagType>()) {
161 qual_type->getAs<ObjCObjectType>()) {
/freebsd-13-stable/contrib/llvm-project/clang/utils/TableGen/
H A DASTTableGen.cpp24 if (auto node = getAs<ASTNode>()) {
26 } else if (auto typeCase = getAs<TypeCase>()) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/Index/
H A DUSRGeneration.cpp653 if (const PackExpansionType *Expansion = T->getAs<PackExpansionType>()) {
658 if (const BuiltinType *BT = T->getAs<BuiltinType>()) {
783 if (const PointerType *PT = T->getAs<PointerType>()) {
788 if (const ObjCObjectPointerType *OPT = T->getAs<ObjCObjectPointerType>()) {
793 if (const RValueReferenceType *RT = T->getAs<RValueReferenceType>()) {
798 if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
803 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) {
816 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) {
821 if (const ComplexType *CT = T->getAs<ComplexType>()) {
826 if (const TagType *TT = T->getAs<TagTyp
[all...]

Completed in 236 milliseconds

1234567891011