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

12345678910

/freebsd-11-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.cpp104 if (progPoint.getAs<PreStmtPurgeDeadSymbols>())
108 if (!progPoint.getAs<PostStmt>() || progPoint.getAs<PostStore>())
144 if (Optional<StmtPoint> SP = SuccLoc.getAs<StmtPoint>())
149 if (SuccLoc.getAs<CallEnter>() || SuccLoc.getAs<PreImplicitCall>())
294 if (auto BEP = P.getAs<BlockEntrance>())
335 if (auto SP = P.getAs<StmtPoint>())
337 if (auto BE = P.getAs<BlockEdge>())
339 if (auto CE = P.getAs<CallEnte
[all...]
H A DCoreEngine.cpp186 assert(Loc.getAs<PostStmt>() ||
187 Loc.getAs<PostInitializer>() ||
188 Loc.getAs<PostImplicitCall>() ||
189 Loc.getAs<CallExitEnd>() ||
190 Loc.getAs<LoopExit>() ||
191 Loc.getAs<PostAllocatorCall>());
247 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) {
250 LastElement.getAs<CFGAutomaticObjDtor>()) {
519 if (N->getLocation().getAs<CallEnter>()) {
527 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>()) {
755 if (auto simplifiedLhsAsNonLoc = simplifiedLhs.getAs<NonLoc>()) {
896 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-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp66 auto FEP = getAs<FunctionExitPoint>();
203 if (getAs<PreLoad>())
205 else if (getAs<PreStore>())
207 else if (getAs<PostAllocatorCall>())
209 else if (getAs<PostCondition>())
211 else if (getAs<PostLoad>())
213 else if (getAs<PostLValue>())
215 else if (getAs<PostStore>())
217 else if (getAs<PostStmt>())
219 else if (getAs<PostStmtPurgeDeadSymbol
[all...]
H A DCocoaConventions.cpp27 while (const TypedefType *TD = RetTy->getAs<TypedefType>()) {
69 const ObjCObjectPointerType *PT = Ty->getAs<ObjCObjectPointerType>();
/freebsd-11-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-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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 DBoolAssignmentChecker.cpp47 if (const TypedefType *TT = Ty->getAs<TypedefType>())
73 Optional<DefinedSVal> DV = val.getAs<DefinedSVal>();
91 greaterThanOrEqualToZeroVal.getAs<DefinedSVal>();
127 lessThanEqToOneVal.getAs<DefinedSVal>();
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 DNSErrorChecker.cpp189 if (Optional<loc::MemRegionVal> X = val.getAs<loc::MemRegionVal>()) {
191 if (const VarRegion *VR = R->getAs<VarRegion>())
206 if (loc.isUndef() || !loc.getAs<Loc>())
282 const PointerType* PPT = T->getAs<PointerType>();
287 PPT->getPointeeType()->getAs<ObjCObjectPointerType>();
302 const PointerType* PPT = T->getAs<PointerType>();
305 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>();
H A DArrayBoundCheckerV2.cpp86 Optional<nonloc::SymbolVal> SymVal = offset.getAs<nonloc::SymbolVal>();
145 if (Optional<NonLoc> NV = extentBegin.getAs<NonLoc>()) {
146 if (NV->getAs<nonloc::ConcreteInt>()) {
158 Optional<NonLoc> lowerBoundToCheck = lowerBound.getAs<NonLoc>();
182 if (!extentVal.getAs<NonLoc>())
185 if (extentVal.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 DNonNullParamChecker.cpp99 auto DV = V.getAs<DefinedSVal>();
103 assert(!haveRefTypeParam || DV->getAs<Loc>());
106 if (haveAttrNonNull && !DV->getAs<Loc>()) {
117 auto CSV = DV->getAs<nonloc::CompoundVal>();
124 DV = V.getAs<DefinedSVal>();
128 if (!V.getAs<Loc>())
H A DCheckPlacementNew.cpp62 if (auto ElementCountNL = ElementCount.getAs<NonLoc>()) {
93 const auto SizeOfTargetCI = SizeOfTarget.getAs<nonloc::ConcreteInt>();
96 const auto SizeOfPlaceCI = SizeOfPlace.getAs<nonloc::ConcreteInt>();
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>();
H A DReturnValueChecker.cpp74 auto ReturnDV = ReturnV.getAs<DefinedOrUnknownSVal>();
/freebsd-11-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.cpp430 while (const auto *PT = T->getAs<ParenType>())
456 template <> const TypedefType *Type::getAs() const { function in class:Type
460 template <> const TemplateSpecializationType *Type::getAs() const { function in class:Type
464 template <> const AttributedType *Type::getAs() const { function in class:Type
490 if (const auto *RT = getAs<RecordType>())
496 if (const auto *RT = getAs<RecordType>())
502 if (const auto *RT = getAs<RecordType>())
508 if (const auto *RT = getAs<RecordType>())
514 if (const auto *RT = getAs<RecordType>()) {
522 if (const auto *PT = getAs<PointerTyp
[all...]
/freebsd-11-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-11-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>()) {
182 if (const PointerType *PT = T->getAs<PointerType>())
184 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>())
189 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>();
310 Old->getType()->getAs<FunctionProtoTyp
[all...]
H A DSemaCast.cpp459 if (auto Ptr = From->getAs<PointerType>()) {
464 if (auto Ptr = To->getAs<PointerType>()) {
469 auto RecFrom = From->getAs<RecordType>();
470 auto RecTo = To->getAs<RecordType>();
725 const PointerType *DestPointer = DestType->getAs<PointerType>();
729 } else if ((DestReference = DestType->getAs<ReferenceType>())) {
738 const RecordType *DestRecord = DestPointee->getAs<RecordType>();
762 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) {
785 const RecordType *SrcRecord = SrcPointee->getAs<RecordType>();
1083 auto *SrcPtrType = SrcType->getAs<PointerTyp
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/utils/TableGen/
H A DASTTableGen.cpp24 if (auto node = getAs<ASTNode>()) {
26 } else if (auto typeCase = getAs<TypeCase>()) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DUSRGeneration.cpp652 if (const PackExpansionType *Expansion = T->getAs<PackExpansionType>()) {
657 if (const BuiltinType *BT = T->getAs<BuiltinType>()) {
781 if (const PointerType *PT = T->getAs<PointerType>()) {
786 if (const ObjCObjectPointerType *OPT = T->getAs<ObjCObjectPointerType>()) {
791 if (const RValueReferenceType *RT = T->getAs<RValueReferenceType>()) {
796 if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
801 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) {
814 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) {
819 if (const ComplexType *CT = T->getAs<ComplexType>()) {
824 if (const TagType *TT = T->getAs<TagTyp
[all...]

Completed in 296 milliseconds

12345678910