Home
last modified time | relevance | path

Searched refs:castAs (Results 1 – 25 of 171) sorted by relevance

1234567

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp287 castAs<NonLoc>().dumpToStream(os); in dumpToStream()
291 castAs<Loc>().dumpToStream(os); in dumpToStream()
300 const auto &Value = castAs<nonloc::ConcreteInt>().getValue(); in dumpToStream()
306 os << castAs<nonloc::SymbolVal>().getSymbol(); in dumpToStream()
310 const nonloc::LocAsInteger& C = castAs<nonloc::LocAsInteger>(); in dumpToStream()
315 const nonloc::CompoundVal& C = castAs<nonloc::CompoundVal>(); in dumpToStream()
331 const nonloc::LazyCompoundVal &C = castAs<nonloc::LazyCompoundVal>(); in dumpToStream()
340 castAs<nonloc::PointerToMember>(); in dumpToStream()
366 os << castAs<loc::ConcreteInt>().getValue().getZExtValue() << " (Loc)"; in dumpToStream()
369 os << "&&" << castAs<loc::GotoLabel>().getLabel()->getName(); in dumpToStream()
[all …]
H A DStore.cpp55 Store = Bind(Store.getStore(), I.first.castAs<Loc>(), I.second); in enterStackFrame()
402 Loc BaseL = Base.castAs<Loc>(); in getLValueFieldOrIvar()
407 BaseR = cast<SubRegion>(BaseL.castAs<loc::MemRegionVal>().getRegion()); in getLValueFieldOrIvar()
469 Base.castAs<loc::MemRegionVal>().getRegionAs<SubRegion>(); in getLValueElement()
505 BaseIdx.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
518 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue(); in getLValueElement()
H A DProgramState.cpp132 const MemRegion *R = loc.castAs<loc::MemRegionVal>().getRegion(); in bindDefaultInitial()
141 const MemRegion *R = loc.castAs<loc::MemRegionVal>().getRegion(); in bindDefaultZero()
351 Idx.castAs<NonLoc>(), Min, indexTy); in assumeInBoundDual()
357 svalBuilder.evalBinOpNN(this, BO_Add, UpperBound.castAs<NonLoc>(), in assumeInBoundDual()
364 SVal inBound = svalBuilder.evalBinOpNN(this, BO_LT, newIdx.castAs<NonLoc>(), in assumeInBoundDual()
365 newBound.castAs<NonLoc>(), Ctx.IntTy); in assumeInBoundDual()
371 return CM.assumeDual(this, inBound.castAs<DefinedSVal>()); in assumeInBoundDual()
H A DCheckerContext.cpp147 LHSVal.castAs<Loc>()); in evalComparison()
158 std::tie(StTrue, StFalse) = State->assume(Eval.castAs<DefinedSVal>()); in evalComparison()
H A DExprEngineC.cpp271 V = svalBuilder.evalMinus(V.castAs<NonLoc>()); in handleLValueBitCast()
694 BlockEdge BE = N->getLocation().castAs<BlockEdge>(); in VisitLogicalExpr()
716 CFGStmt Elem = SrcBlock->rbegin()->castAs<CFGStmt>(); in VisitLogicalExpr()
807 SrcBlock = PP.castAs<BlockEdge>().getSrc(); in VisitGuardedExpr()
855 assert(OOE->getType()->castAs<BuiltinType>()->isInteger()); in VisitOffsetOfExpr()
1023 U, LCtx, svalBuilder.evalComplement(V.castAs<NonLoc>())); in VisitUnaryOperator()
1028 svalBuilder.evalMinus(V.castAs<NonLoc>())); in VisitUnaryOperator()
1044 Result = evalBinOp(state, BO_EQ, V.castAs<NonLoc>(), X, U->getType()); in VisitUnaryOperator()
1093 DefinedSVal V2 = V2_untested.castAs<DefinedSVal>(); in VisitIncrementDecrementOperator()
H A DCoreEngine.cpp187 HandleBlockEdge(Loc.castAs<BlockEdge>(), Pred); in dispatchWorkItem()
191 HandleBlockEntrance(Loc.castAs<BlockEntrance>(), Pred); in dispatchWorkItem()
199 HandleCallEnter(Loc.castAs<CallEnter>(), Pred); in dispatchWorkItem()
562 CFGStmt CS = (*Block)[Idx].castAs<CFGStmt>(); in enqueueStmtNode()
H A DExprEngine.cpp441 State = State->bindLoc(BaseReg.castAs<Loc>(), InitVal, LC, false); in createTemporaryRegionIfNeeded()
453 State->bindLoc(Reg.castAs<Loc>(), InitValWithAdjustments, LC, false); in createTemporaryRegionIfNeeded()
455 State = State->bindLoc(BaseReg.castAs<Loc>(), InitVal, LC, false); in createTemporaryRegionIfNeeded()
976 ProcessStmt(E.castAs<CFGStmt>().getStmt(), Pred); in processCFGElement()
979 ProcessInitializer(E.castAs<CFGInitializer>(), Pred); in processCFGElement()
982 ProcessNewAllocator(E.castAs<CFGNewAllocator>().getAllocatorExpr(), in processCFGElement()
990 ProcessImplicitDtor(E.castAs<CFGImplicitDtor>(), Pred); in processCFGElement()
993 ProcessLoopExit(E.castAs<CFGLoopExit>().getLoopStmt(), Pred); in processCFGElement()
1295 ProcessAutomaticObjDtor(D.castAs<CFGAutomaticObjDtor>(), Pred, Dst); in ProcessImplicitDtor()
1298 ProcessBaseDtor(D.castAs<CFGBaseDtor>(), Pred, Dst); in ProcessImplicitDtor()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp63 << castAs<BlockEntrance>().getBlock()->getBlockID(); in printJson()
98 << castAs<LoopExit>().getLoopStmt()->getStmtClassName() << '\"'; in printJson()
102 ImplicitCallPoint PC = castAs<ImplicitCallPoint>(); in printJson()
111 ImplicitCallPoint PC = castAs<ImplicitCallPoint>(); in printJson()
121 const CXXCtorInitializer *Init = castAs<PostInitializer>().getInitializer(); in printJson()
135 const BlockEdge &E = castAs<BlockEdge>(); in printJson()
187 const Stmt *S = castAs<StmtPoint>().getStmt(); in printJson()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp104 SVB.makeIntVal(EleSize.getQuantity(), SizeTy).castAs<NonLoc>(); in checkVLA()
112 auto SizeD = C.getSVal(SizeE).castAs<DefinedSVal>(); in checkVLA()
115 SVB.evalCast(SizeD, SizeTy, SizeE->getType()).castAs<NonLoc>(); in checkVLA()
168 DefinedSVal SizeD = SizeV.castAs<DefinedSVal>(); in checkVLAIndexSize()
304 ArraySize.castAs<NonLoc>(), SVB); in checkPreStmt()
H A DCStringChecker.cpp422 .castAs<NonLoc>(); in getIndex()
427 return Offset.castAs<NonLoc>(); in getIndex()
488 .castAs<NonLoc>(); in checkInit()
509 SVB.evalBinOpNN(State, clang::BO_Div, Size.castAs<NonLoc>(), ElemSize, in checkInit()
514 const NonLoc One = SVB.makeIntVal(1, IdxTy).castAs<NonLoc>(); in checkInit()
526 State->getSVal(LastElementVal.castAs<Loc>()).isUndef()) { in checkInit()
639 NonLoc One = svalBuilder.makeIntVal(1, SizeTy).castAs<NonLoc>(); in CheckBufferAccess()
643 NonLoc LastOffset = Offset.castAs<NonLoc>(); in CheckBufferAccess()
940 state->assume(willOverflow.castAs<DefinedOrUnknownSVal>()); in checkAdditionOverflow()
1028 state = state->assume(evalLength.castAs<DefinedOrUnknownSVal>(), true); in getCStringLengthForRegion()
[all …]
H A DObjCContainersChecker.cpp75 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>())); in REGISTER_MAP_WITH_PROGRAMSTATE()
128 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>(); in checkPreStmt()
H A DSTLAlgorithmModeling.cpp157 StateFound = StateFound->assume(GreaterOrEqual.castAs<DefinedSVal>(), true); in Find()
179 StateFound = StateFound->assume(Less.castAs<DefinedSVal>(), true); in Find()
H A DUnixAPIChecker.cpp277 NonLoc oflags = V.castAs<NonLoc>(); in CheckOpenVariant()
280 .castAs<NonLoc>(); in CheckOpenVariant()
286 DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>(); in CheckOpenVariant()
454 state->assume(argVal.castAs<DefinedSVal>()); in IsZeroByteAllocation()
H A DStreamChecker.cpp233 .castAs<DefinedSVal>(); in makeRetVal()
679 NonLoc RetVal = makeRetVal(C, CE).castAs<NonLoc>(); in makeAndBindRetVal()
1164 NonLoc RetVal = makeRetVal(C, E.CE).castAs<NonLoc>(); in evalFreadFwrite()
1199 NonLoc RetVal = makeRetVal(C, E.CE).castAs<NonLoc>(); in evalFgetx()
1264 NonLoc RetVal = makeRetVal(C, E.CE).castAs<NonLoc>(); in evalFputx()
1298 NonLoc RetVal = makeRetVal(C, E.CE).castAs<NonLoc>(); in evalFprintf()
1343 NonLoc RetVal = makeRetVal(C, E.CE).castAs<NonLoc>(); in evalFscanf()
1424 NonLoc RetVal = makeRetVal(C, E.CE).castAs<NonLoc>(); in evalGetdelim()
1433 NewLinePtr->castAs<DefinedOrUnknownSVal>(), true); in evalGetdelim()
1441 NVal->castAs<NonLoc>(), RetVal); in evalGetdelim()
[all …]
H A DErrnoModeling.cpp247 NonLoc ZeroVal = SVB.makeZeroVal(C.getASTContext().IntTy).castAs<NonLoc>(); in setErrnoForStdFailure()
250 .castAs<DefinedOrUnknownSVal>(); in setErrnoForStdFailure()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DVTTBuilder.cpp68 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in LayoutSecondaryVTTs()
94 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in LayoutSecondaryVirtualPointers()
158 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in LayoutVirtualVTTs()
H A DCXXInheritance.cpp271 BaseSpec.getType()->castAs<RecordType>()->getDecl()); in lookupInBases()
368 return Specifier->getType()->castAs<RecordType>()->getDecl() in FindBaseClass()
378 Specifier->getType()->castAs<RecordType>()->getDecl() in FindVirtualBaseClass()
692 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in AddIndirectPrimaryBases()
714 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in getIndirectPrimaryBases()
H A DTypeLoc.cpp139 CLASS##TypeLoc TLCasted = TL.castAs<CLASS##TypeLoc>(); \ in initializeImpl()
161 dest.copyLocal(Source.castAs<CLASS##TypeLoc>()); \
207 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr() in getBeginLoc()
255 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()->hasTrailingReturn()) in getEndLoc()
262 if (Cur.castAs<ObjCObjectPointerTypeLoc>().getStarLoc().isInvalid()) in getEndLoc()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DCFGMatchSwitch.h77 return InitMS(*Element.castAs<CFGInitializer>().getInitializer(), in Build()
82 return StmtMS(*Element.castAs<CFGStmt>().getStmt(), Context, S); in Build()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp248 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitCXXScalarValueInitExpr()
254 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitImplicitValueInitExpr()
521 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
522 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
539 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
765 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
767 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
769 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
771 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
783 4, Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
[all …]
H A DCGCXX.cpp89 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in TryEmitBaseDestructorAsAlias()
113 if (BaseD->getType()->castAs<FunctionType>()->getCallConv() != in TryEmitBaseDestructorAsAlias()
114 D->getType()->castAs<FunctionType>()->getCallConv()) in TryEmitBaseDestructorAsAlias()
H A DCGExprCXX.cpp57 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in commonEmitCXXMemberOrOperatorCall()
90 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in EmitCXXMemberOrOperatorCall()
141 const auto *PTy = BaseExpr->getType()->castAs<PointerType>(); in EmitCXXPseudoDestructorExpr()
182 const RecordType *Ty = T->castAs<RecordType>(); in getCXXRecord()
271 EmitCallArgs(*RtlArgs, MD->getType()->castAs<FunctionProtoType>(), in EmitCXXMemberOrOperatorMemberCallExpr()
449 const auto *MPT = MemFnExpr->getType()->castAs<MemberPointerType>(); in EmitCXXMemberPointerCallExpr()
450 const auto *FPT = MPT->getPointeeType()->castAs<FunctionProtoType>(); in EmitCXXMemberPointerCallExpr()
452 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl()); in EmitCXXMemberPointerCallExpr()
1386 const FunctionProtoType *FPT = FD->getType()->castAs<FunctionProtoType>(); in getUsualDeleteParams()
1461 const auto *FPT = OperatorDelete->getType()->castAs<FunctionProtoType>(); in Emit()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExceptionSpec.cpp165 PointeeT->castAs<RecordType>()->isBeingDefined()) && in CheckSpecifiedExceptionType()
218 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
231 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
253 FD->getType()->castAs<FunctionProtoType>()->getExceptionSpecType(); in exceptionSpecNotKnownYet()
286 auto *Ty = Decl->getTypeSourceInfo()->getType()->castAs<FunctionProtoType>(); in hasImplicitExceptionSpec()
344 const auto *NewProto = New->getType()->castAs<FunctionProtoType>(); in CheckEquivalentExceptionSpec()
365 const auto *OldProto = Old->getType()->castAs<FunctionProtoType>(); in CheckEquivalentExceptionSpec()
953 if (New->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() == in CheckOverridingFunctionExceptionSpec()
978 Old->getType()->castAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
980 New->getType()->castAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DRISCV.cpp83 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo()
191 cast<CXXRecordDecl>(B.getType()->castAs<RecordType>()->getDecl()); in detectFPCCEligibleStructHelper()
323 const auto *VT = Ty->castAs<VectorType>(); in coerceVLSVector()
381 QualType EltTy = Ty->castAs<ComplexType>()->getElementType(); in classifyArgumentType()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeLocVisitor.h22 Visit##CLASSNAME(TyLoc.castAs<CLASSNAME>())

1234567