Searched refs:castAs (Results 1 - 25 of 110) sorted by relevance

12345

/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp247 castAs<NonLoc>().dumpToStream(os);
250 castAs<Loc>().dumpToStream(os);
261 const nonloc::ConcreteInt& C = castAs<nonloc::ConcreteInt>();
271 os << castAs<nonloc::SymbolVal>().getSymbol();
275 const nonloc::LocAsInteger& C = castAs<nonloc::LocAsInteger>();
280 const nonloc::CompoundVal& C = castAs<nonloc::CompoundVal>();
296 const nonloc::LazyCompoundVal &C = castAs<nonloc::LazyCompoundVal>();
311 os << castAs<loc::ConcreteInt>().getValue().getZExtValue() << " (Loc)";
314 os << "&&" << castAs<loc::GotoLabel>().getLabel()->getName();
317 os << '&' << castAs<lo
[all...]
H A DSimpleConstraintManager.cpp81 Cond = SVB.evalCast(*LV, SVB.getContext().BoolTy, T).castAs<DefinedSVal>();
84 return assume(state, Cond.castAs<NonLoc>(), Assumption);
131 nonloc::SymbolVal SV = Cond.castAs<nonloc::SymbolVal>();
182 bool b = Cond.castAs<nonloc::ConcreteInt>().getValue() != 0;
188 return assume(state, Cond.castAs<nonloc::LocAsInteger>().getLoc(),
H A DSimpleSValBuilder.cpp64 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy)
65 : evalCastFromNonLoc(Val.castAs<NonLoc>(), CastTy);
106 bool b = val.castAs<nonloc::ConcreteInt>().getValue().getBoolValue();
115 llvm::APSInt i = val.castAs<nonloc::ConcreteInt>().getValue();
145 const MemRegion *R = val.castAs<loc::MemRegionVal>().getRegion();
172 llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue();
190 return val.castAs<nonloc::ConcreteInt>().evalMinus(*this);
199 return X.castAs<nonloc::ConcreteInt>().evalComplement(*this);
339 Loc lhsL = lhs.castAs<nonloc::LocAsInteger>().getLoc();
343 rhs.castAs<nonlo
[all...]
H A DSValBuilder.cpp87 return evalCastFromNonLoc(val.castAs<NonLoc>(), ArrayIndexTy);
346 return evalBinOpLN(state, op, *LV, rhs.castAs<NonLoc>(), type);
355 return evalBinOpLN(state, op, *RV, lhs.castAs<NonLoc>(), type);
358 return evalBinOpNN(state, op, lhs.castAs<NonLoc>(), rhs.castAs<NonLoc>(),
366 .castAs<DefinedOrUnknownSVal>();
424 Loc L = val.castAs<nonloc::LocAsInteger>().getLoc();
436 return evalCastFromLoc(val.castAs<Loc>(), castTy);
462 val = StateMgr.ArrayToPointer(val.castAs<Loc>(), elemTy);
477 return evalCastFromLoc(val.castAs<Lo
[all...]
H A DStore.cpp403 Loc BaseL = Base.castAs<Loc>();
408 BaseR = BaseL.castAs<loc::MemRegionVal>().getRegion();
448 const MemRegion* BaseRegion = Base.castAs<loc::MemRegionVal>().getRegion();
454 Offset = svalBuilder.convertToArrayIndex(Offset).castAs<NonLoc>();
476 BaseIdx.castAs<nonloc::ConcreteInt>().getValue();
490 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue();
H A DExprEngine.cpp284 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred);
287 ProcessInitializer(E.castAs<CFGInitializer>().getInitializer(), Pred);
294 ProcessImplicitDtor(E.castAs<CFGImplicitDtor>(), Pred);
528 ProcessAutomaticObjDtor(D.castAs<CFGAutomaticObjDtor>(), Pred, Dst);
531 ProcessBaseDtor(D.castAs<CFGBaseDtor>(), Pred, Dst);
534 ProcessMemberDtor(D.castAs<CFGMemberDtor>(), Pred, Dst);
537 ProcessTemporaryDtor(D.castAs<CFGTemporaryDtor>(), Pred, Dst);
540 ProcessDeleteDtor(D.castAs<CFGDeleteDtor>(), Pred, Dst);
558 const MemRegion *Region = dest.castAs<loc::MemRegionVal>().getRegion();
614 VisitCXXDestructor(BaseTy, BaseVal.castAs<lo
[all...]
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/AST/
H A DMangleNumberingContext.cpp30 return ++ManglingNumbers[Key->castAs<FunctionProtoType>()];
H A DCXXInheritance.cpp272 = cast<CXXRecordDecl>(BaseSpec->getType()->castAs<RecordType>()
379 return Specifier->getType()->castAs<RecordType>()->getDecl()
389 Specifier->getType()->castAs<RecordType>()->getDecl()
397 Specifier->getType()->castAs<RecordType>()->getDecl();
414 Specifier->getType()->castAs<RecordType>()->getDecl();
433 Specifier->getType()->castAs<RecordType>()->getDecl();
711 cast<CXXRecordDecl>(I->getType()->castAs<RecordType>()->getDecl());
734 cast<CXXRecordDecl>(I->getType()->castAs<RecordType>()->getDecl());
H A DTypeLoc.cpp117 CLASS##TypeLoc TLCasted = TL.castAs<CLASS##TypeLoc>(); \
137 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()
183 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()->hasTrailingReturn())
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DTypeLocBuilder.h74 return pushImpl(T, LocalSize, LocalAlign).castAs<TypeSpecTypeLoc>();
97 TyLocType Loc = TypeLoc(T, 0).castAs<TyLocType>();
100 return pushImpl(T, LocalSize, LocalAlign).castAs<TyLocType>();
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp113 DefinedSVal sizeD = sizeV.castAs<DefinedSVal>();
134 svalBuilder.evalCast(sizeD, SizeTy, SE->getType()).castAs<NonLoc>();
142 state, BO_Mul, ArrayLength, EleSizeVal.castAs<NonLoc>(), SizeTy);
148 DefinedOrUnknownSVal ArraySize = ArraySizeVal.castAs<DefinedOrUnknownSVal>();
H A DArrayBoundCheckerV2.cpp56 NonLoc getByteOffset() const { return byteOffset.castAs<NonLoc>(); }
147 extentVal.castAs<NonLoc>(),
259 return svalBuilder.evalBinOpNN(state, BO_Add, x.castAs<NonLoc>(),
260 y.castAs<NonLoc>(),
298 index.castAs<NonLoc>(),
H A DArrayBoundChecker.cpp47 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
H A DObjCAtSyncChecker.cpp63 llvm::tie(notNullState, nullState) = state->assume(V.castAs<DefinedSVal>());
H A DReturnPointerRangeChecker.cpp49 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
H A DCStringChecker.cpp284 DefinedOrUnknownSVal Size = Extent.castAs<DefinedOrUnknownSVal>();
287 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
370 NonLoc One = svalBuilder.makeIntVal(1, sizeTy).castAs<NonLoc>();
372 .evalBinOpNN(state, BO_Sub, *Length, One, sizeTy).castAs<NonLoc>();
580 state->assume(willOverflow.castAs<DefinedOrUnknownSVal>());
684 state = state->assume(evalLength.castAs<DefinedOrUnknownSVal>(), true);
959 loc::MemRegionVal destRegVal = destVal.castAs<loc::MemRegionVal>();
1088 state->getSVal(Left, LCtx).castAs<DefinedOrUnknownSVal>();
1090 state->getSVal(Right, LCtx).castAs<DefinedOrUnknownSVal>();
1210 .castAs<DefinedOrUnknownSVa
[all...]
H A DObjCContainersChecker.cpp76 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>()));
129 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>();
H A DBuiltinFunctionChecker.cpp65 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>();
H A DObjCSelfInitChecker.cpp258 unsigned selfFlags = getSelfFlags(state->getSVal(argV.castAs<Loc>()), C);
289 addSelfFlag(state, state->getSVal(argV.castAs<Loc>()), prevFlags, C);
315 addSelfFlag(state, state->getSVal(location.castAs<Loc>()), SelfFlag_Self,
424 loc::MemRegionVal MRV = location.castAs<loc::MemRegionVal>();
H A DUnixAPIChecker.cpp110 NonLoc oflags = V.castAs<NonLoc>();
112 .makeIntVal(Val_O_CREAT.getValue(), oflagsEx->getType()).castAs<NonLoc>();
118 DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>();
203 state->assume(argVal.castAs<DefinedSVal>());
H A DExprInspectionChecker.cpp72 State->assume(AssertionVal.castAs<DefinedOrUnknownSVal>());
H A DReturnUndefChecker.cpp76 checkReference(C, RetE, RetVal.castAs<DefinedOrUnknownSVal>());
H A DDereferenceChecker.cpp194 DefinedOrUnknownSVal location = l.castAs<DefinedOrUnknownSVal>();
243 State->assume(V.castAs<DefinedOrUnknownSVal>());
H A DNSErrorChecker.cpp228 setFlag<NSErrorOut>(state, state->getSVal(loc.castAs<Loc>()), C);
233 setFlag<CFErrorOut>(state, state->getSVal(loc.castAs<Loc>()), C);
/freebsd-10.3-release/contrib/llvm/tools/clang/include/clang/AST/
H A DTypeLocVisitor.h24 Visit##CLASSNAME(TyLoc.castAs<CLASSNAME>())

Completed in 157 milliseconds

12345