/external/clang/lib/StaticAnalyzer/Core/ |
H A D | 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<lo [all...] |
H A D | 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(),
|
H A D | 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<nonlo [all...] |
H A D | SValBuilder.cpp | 87 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 D | Store.cpp | 403 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 D | ExprEngine.cpp | 286 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); 289 ProcessInitializer(E.castAs<CFGInitializer>().getInitializer(), Pred); 292 ProcessNewAllocator(E.castAs<CFGNewAllocator>().getAllocatorExpr(), 300 ProcessImplicitDtor(E.castAs<CFGImplicitDtor>(), Pred); 534 ProcessAutomaticObjDtor(D.castAs<CFGAutomaticObjDtor>(), Pred, Dst); 537 ProcessBaseDtor(D.castAs<CFGBaseDtor>(), Pred, Dst); 540 ProcessMemberDtor(D.castAs<CFGMemberDtor>(), Pred, Dst); 543 ProcessTemporaryDtor(D.castAs<CFGTemporaryDtor>(), Pred, Dst); 546 ProcessDeleteDtor(D.castAs<CFGDeleteDtor>(), Pred, Dst); 583 const MemRegion *Region = dest.castAs<lo [all...] |
/external/clang/lib/AST/ |
H A D | MangleNumberingContext.cpp | 30 return ++ManglingNumbers[Key->castAs<FunctionProtoType>()];
|
H A D | CXXInheritance.cpp | 264 = cast<CXXRecordDecl>(BaseSpec.getType()->castAs<RecordType>() 371 return Specifier->getType()->castAs<RecordType>()->getDecl() 381 Specifier->getType()->castAs<RecordType>()->getDecl() 389 Specifier->getType()->castAs<RecordType>()->getDecl(); 406 Specifier->getType()->castAs<RecordType>()->getDecl(); 425 Specifier->getType()->castAs<RecordType>()->getDecl(); 698 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); 720 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
|
H A D | TypeLoc.cpp | 117 CLASS##TypeLoc TLCasted = TL.castAs<CLASS##TypeLoc>(); \ 137 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr() 183 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()->hasTrailingReturn())
|
H A D | Mangle.cpp | 80 const FunctionType *FT = T->castAs<FunctionType>(); 154 const FunctionType *FT = FD->getType()->castAs<FunctionType>();
|
/external/clang/lib/Sema/ |
H A D | 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/ |
H A D | TypeLocVisitor.h | 24 Visit##CLASSNAME(TyLoc.castAs<CLASSNAME>())
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | VLASizeChecker.cpp | 114 DefinedSVal sizeD = sizeV.castAs<DefinedSVal>(); 135 svalBuilder.evalCast(sizeD, SizeTy, SE->getType()).castAs<NonLoc>(); 143 state, BO_Mul, ArrayLength, EleSizeVal.castAs<NonLoc>(), SizeTy); 149 DefinedOrUnknownSVal ArraySize = ArraySizeVal.castAs<DefinedOrUnknownSVal>();
|
H A D | ArrayBoundCheckerV2.cpp | 56 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 D | ArrayBoundChecker.cpp | 48 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
|
H A D | ObjCAtSyncChecker.cpp | 63 std::tie(notNullState, nullState) = state->assume(V.castAs<DefinedSVal>());
|
H A D | ReturnPointerRangeChecker.cpp | 50 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
|
H A D | ObjCContainersChecker.cpp | 76 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>())); 129 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>();
|
H A D | BuiltinFunctionChecker.cpp | 65 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>();
|
H A D | ObjCSelfInitChecker.cpp | 256 unsigned selfFlags = getSelfFlags(state->getSVal(argV.castAs<Loc>()), C); 287 addSelfFlag(state, state->getSVal(argV.castAs<Loc>()), prevFlags, C); 313 addSelfFlag(state, state->getSVal(location.castAs<Loc>()), SelfFlag_Self, 422 loc::MemRegionVal MRV = location.castAs<loc::MemRegionVal>();
|
H A D | UnixAPIChecker.cpp | 105 NonLoc oflags = V.castAs<NonLoc>(); 107 .makeIntVal(Val_O_CREAT.getValue(), oflagsEx->getType()).castAs<NonLoc>(); 113 DefinedSVal maskedFlags = maskedFlagsUC.castAs<DefinedSVal>(); 198 state->assume(argVal.castAs<DefinedSVal>());
|
H A D | ExprInspectionChecker.cpp | 72 State->assume(AssertionVal.castAs<DefinedOrUnknownSVal>());
|
H A D | ReturnUndefChecker.cpp | 76 checkReference(C, RetE, RetVal.castAs<DefinedOrUnknownSVal>());
|
H A D | CStringChecker.cpp | 287 DefinedOrUnknownSVal Size = Extent.castAs<DefinedOrUnknownSVal>(); 290 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>(); 374 NonLoc One = svalBuilder.makeIntVal(1, sizeTy).castAs<NonLoc>(); 376 .evalBinOpNN(state, BO_Sub, *Length, One, sizeTy).castAs<NonLoc>(); 585 state->assume(willOverflow.castAs<DefinedOrUnknownSVal>()); 690 state = state->assume(evalLength.castAs<DefinedOrUnknownSVal>(), true); 967 loc::MemRegionVal destRegVal = destVal.castAs<loc::MemRegionVal>(); 1096 state->getSVal(Left, LCtx).castAs<DefinedOrUnknownSVal>(); 1098 state->getSVal(Right, LCtx).castAs<DefinedOrUnknownSVal>(); 1219 .castAs<DefinedOrUnknownSVa [all...] |
H A D | DereferenceChecker.cpp | 195 DefinedOrUnknownSVal location = l.castAs<DefinedOrUnknownSVal>(); 243 std::tie(StNonNull, StNull) = State->assume(V.castAs<DefinedOrUnknownSVal>());
|