/external/clang/lib/StaticAnalyzer/Core/ |
SVals.cpp | 247 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<loc::MemRegionVal>().getRegion()->getString() [all...] |
SValBuilder.cpp | 87 return evalCastFromNonLoc(val.castAs<NonLoc>(), ArrayIndexTy); 379 return evalBinOpLN(state, op, *LV, rhs.castAs<NonLoc>(), type); 388 return evalBinOpLN(state, op, *RV, lhs.castAs<NonLoc>(), type); 391 return evalBinOpNN(state, op, lhs.castAs<NonLoc>(), rhs.castAs<NonLoc>(), 399 .castAs<DefinedOrUnknownSVal>(); 453 .castAs<NonLoc>(); 456 NonLoc FromVal = val.castAs<NonLoc>(); 459 evalBinOpNN(state, BO_LE, FromVal, ToTypeMaxVal, CmpTy).castAs<NonLoc>(); 496 Loc L = val.castAs<nonloc::LocAsInteger>().getLoc() [all...] |
SimpleConstraintManager.cpp | 81 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(), 221 const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue();
|
SimpleSValBuilder.cpp | 64 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<nonloc::LocAsInteger>().getLoc() [all...] |
Store.cpp | 392 Loc BaseL = Base.castAs<Loc>(); 397 BaseR = BaseL.castAs<loc::MemRegionVal>().getRegion(); 437 const MemRegion* BaseRegion = Base.castAs<loc::MemRegionVal>().getRegion(); 443 Offset = svalBuilder.convertToArrayIndex(Offset).castAs<NonLoc>(); 465 BaseIdx.castAs<nonloc::ConcreteInt>().getValue(); 479 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue();
|
/external/clang/lib/Sema/ |
TypeLocBuilder.h | 74 return pushImpl(T, LocalSize, LocalAlign).castAs<TypeSpecTypeLoc>(); 97 TyLocType Loc = TypeLoc(T, nullptr).castAs<TyLocType>(); 100 return pushImpl(T, LocalSize, LocalAlign).castAs<TyLocType>();
|
/external/clang/include/clang/AST/ |
TypeLocVisitor.h | 24 Visit##CLASSNAME(TyLoc.castAs<CLASSNAME>())
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
VLASizeChecker.cpp | 116 DefinedSVal sizeD = sizeV.castAs<DefinedSVal>(); 156 svalBuilder.evalCast(sizeD, SizeTy, SE->getType()).castAs<NonLoc>(); 164 state, BO_Mul, ArrayLength, EleSizeVal.castAs<NonLoc>(), SizeTy); 170 DefinedOrUnknownSVal ArraySize = ArraySizeVal.castAs<DefinedOrUnknownSVal>();
|
ArrayBoundCheckerV2.cpp | 56 NonLoc getByteOffset() const { return byteOffset.castAs<NonLoc>(); } 147 extentVal.castAs<NonLoc>(), 249 return svalBuilder.evalBinOpNN(state, BO_Add, x.castAs<NonLoc>(), 250 y.castAs<NonLoc>(), 288 index.castAs<NonLoc>(),
|
ArrayBoundChecker.cpp | 48 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
|
ReturnPointerRangeChecker.cpp | 50 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
|
ObjCContainersChecker.cpp | 81 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>())); 134 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>();
|
BuiltinFunctionChecker.cpp | 68 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>();
|
ObjCAtSyncChecker.cpp | 63 std::tie(notNullState, nullState) = state->assume(V.castAs<DefinedSVal>());
|
ObjCSelfInitChecker.cpp | 255 unsigned selfFlags = getSelfFlags(state->getSVal(argV.castAs<Loc>()), C); 286 addSelfFlag(state, state->getSVal(argV.castAs<Loc>()), prevFlags, C); 312 addSelfFlag(state, state->getSVal(location.castAs<Loc>()), SelfFlag_Self, 418 loc::MemRegionVal MRV = location.castAs<loc::MemRegionVal>();
|
UnixAPIChecker.cpp | 137 NonLoc oflags = V.castAs<NonLoc>(); 139 .makeIntVal(Val_O_CREAT.getValue(), oflagsEx->getType()).castAs<NonLoc>(); 145 DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>(); 222 state->assume(argVal.castAs<DefinedSVal>());
|
CStringChecker.cpp | 300 DefinedOrUnknownSVal Size = Extent.castAs<DefinedOrUnknownSVal>(); 303 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>(); 387 NonLoc One = svalBuilder.makeIntVal(1, sizeTy).castAs<NonLoc>(); 389 .evalBinOpNN(state, BO_Sub, *Length, One, sizeTy).castAs<NonLoc>(); 597 state->assume(willOverflow.castAs<DefinedOrUnknownSVal>()); 702 state = state->assume(evalLength.castAs<DefinedOrUnknownSVal>(), true); [all...] |
ReturnUndefChecker.cpp | 76 checkReference(C, RetE, RetVal.castAs<DefinedOrUnknownSVal>());
|
NSErrorChecker.cpp | 230 setFlag<NSErrorOut>(state, state->getSVal(loc.castAs<Loc>()), C); 235 setFlag<CFErrorOut>(state, state->getSVal(loc.castAs<Loc>()), C);
|
/external/clang/lib/AST/ |
CXXInheritance.cpp | 267 = cast<CXXRecordDecl>(BaseSpec.getType()->castAs<RecordType>() 361 return Specifier->getType()->castAs<RecordType>()->getDecl() 371 Specifier->getType()->castAs<RecordType>()->getDecl() 379 Specifier->getType()->castAs<RecordType>()->getDecl(); 395 Specifier->getType()->castAs<RecordType>()->getDecl(); 412 Specifier->getType()->castAs<RecordType>()->getDecl(); 428 Specifier->getType()->castAs<RecordType>()->getDecl(); 674 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); 696 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
|
TypeLoc.cpp | 119 CLASS##TypeLoc TLCasted = TL.castAs<CLASS##TypeLoc>(); \ 139 dest.copyLocal(Source.castAs<CLASS##TypeLoc>()); \ 179 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr() 225 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()->hasTrailingReturn())
|
Mangle.cpp | 83 const FunctionType *FT = T->castAs<FunctionType>(); 164 const FunctionType *FT = FD->getType()->castAs<FunctionType>();
|
/external/clang/lib/CodeGen/ |
CGExprComplex.cpp | 208 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); 214 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); 311 QualType eltType = complexType->castAs<ComplexType>()->getElementType(); 400 SrcType = SrcType->castAs<ComplexType>()->getElementType(); 401 DestType = DestType->castAs<ComplexType>()->getElementType(); 416 DestType = DestType->castAs<ComplexType>()->getElementType(); 578 Op.Ty->castAs<ComplexType>()->getElementType()); 580 Op.Ty->castAs<ComplexType>()->getElementType()); 582 Op.Ty->castAs<ComplexType>()->getElementType()); 584 Op.Ty->castAs<ComplexType>()->getElementType()) [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
SVals.h | 75 T castAs() const { 383 return D->first.castAs<Loc>(); 390 return V.castAs<Loc>();
|
SValVisitor.h | 32 return static_cast<ImplClass *>(this)->Visit ## NAME(V.castAs<CLASS>())
|