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

12345

/freebsd-10.0-release/contrib/llvm/tools/clang/lib/AST/
H A DLambdaMangleContext.cpp32 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.cpp89 CLASS##TypeLoc TLCasted = TL.castAs<CLASS##TypeLoc>(); \
109 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()
155 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()->hasTrailingReturn())
/freebsd-10.0-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.cpp73 return assume(state, Cond.castAs<Loc>(), Assumption);
93 const MemRegion *R = Cond.castAs<loc::MemRegionVal>().getRegion();
111 bool b = Cond.castAs<loc::ConcreteInt>().getValue() != 0;
162 nonloc::SymbolVal SV = Cond.castAs<nonloc::SymbolVal>();
213 bool b = Cond.castAs<nonloc::ConcreteInt>().getValue() != 0;
219 return assumeAux(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();
146 llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue();
164 return val.castAs<nonloc::ConcreteInt>().evalMinus(*this);
173 return X.castAs<nonloc::ConcreteInt>().evalComplement(*this);
313 Loc lhsL = lhs.castAs<nonloc::LocAsInteger>().getLoc();
317 rhs.castAs<nonloc::LocAsInteger>().getLoc(),
321 llvm::APSInt i = rhs.castAs<nonlo
[all...]
H A DSValBuilder.cpp87 return evalCastFromNonLoc(val.castAs<NonLoc>(), ArrayIndexTy);
333 return evalBinOpLN(state, op, *LV, rhs.castAs<NonLoc>(), type);
342 return evalBinOpLN(state, op, *RV, lhs.castAs<NonLoc>(), type);
345 return evalBinOpNN(state, op, lhs.castAs<NonLoc>(), rhs.castAs<NonLoc>(),
353 .castAs<DefinedOrUnknownSVal>();
416 return evalCastFromLoc(val.castAs<Loc>(), castTy);
440 val = StateMgr.ArrayToPointer(val.castAs<Loc>());
455 return evalCastFromLoc(val.castAs<Loc>(), castTy);
H A DStore.cpp400 Loc BaseL = Base.castAs<Loc>();
405 BaseR = BaseL.castAs<loc::MemRegionVal>().getRegion();
445 const MemRegion* BaseRegion = Base.castAs<loc::MemRegionVal>().getRegion();
451 Offset = svalBuilder.convertToArrayIndex(Offset).castAs<NonLoc>();
473 BaseIdx.castAs<nonloc::ConcreteInt>().getValue();
487 const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue();
H A DExprEngine.cpp271 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred);
274 ProcessInitializer(E.castAs<CFGInitializer>().getInitializer(), Pred);
280 ProcessImplicitDtor(E.castAs<CFGImplicitDtor>(), Pred);
515 ProcessAutomaticObjDtor(D.castAs<CFGAutomaticObjDtor>(), Pred, Dst);
518 ProcessBaseDtor(D.castAs<CFGBaseDtor>(), Pred, Dst);
521 ProcessMemberDtor(D.castAs<CFGMemberDtor>(), Pred, Dst);
524 ProcessTemporaryDtor(D.castAs<CFGTemporaryDtor>(), Pred, Dst);
542 const MemRegion *Region = dest.castAs<loc::MemRegionVal>().getRegion();
569 VisitCXXDestructor(BaseTy, BaseVal.castAs<loc::MemRegionVal>().getRegion(),
583 State->getLValue(Member, State->getSVal(ThisVal).castAs<Lo
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DTypeLocVisitor.h24 Visit##CLASSNAME(TyLoc.castAs<CLASSNAME>())
/freebsd-10.0-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 DBuiltinFunctionChecker.cpp64 state->getSVal(*(CE->arg_begin()), LCtx).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 DObjCContainersChecker.cpp76 State->set<ArraySizeMap>(ArraySym, SizeV.castAs<DefinedSVal>()));
129 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>();
H A DCStringChecker.cpp283 DefinedOrUnknownSVal Size = Extent.castAs<DefinedOrUnknownSVal>();
286 DefinedOrUnknownSVal Idx = ER->getIndex().castAs<DefinedOrUnknownSVal>();
369 NonLoc One = svalBuilder.makeIntVal(1, sizeTy).castAs<NonLoc>();
371 .evalBinOpNN(state, BO_Sub, *Length, One, sizeTy).castAs<NonLoc>();
579 state->assume(willOverflow.castAs<DefinedOrUnknownSVal>());
932 loc::MemRegionVal destRegVal = destVal.castAs<loc::MemRegionVal>();
1054 state->getSVal(Left, LCtx).castAs<DefinedOrUnknownSVal>();
1056 state->getSVal(Right, LCtx).castAs<DefinedOrUnknownSVal>();
1176 .castAs<DefinedOrUnknownSVal>());
1193 NonLoc resultNL = result.castAs<NonLo
[all...]
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.cpp68 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>());
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Sema/
H A DTypeLocBuilder.h78 return pushImpl(T, LocalSize).castAs<TypeSpecTypeLoc>();
100 size_t LocalSize = TypeLoc(T, 0).castAs<TyLocType>().getLocalDataSize();
101 return pushImpl(T, LocalSize).castAs<TyLocType>();
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprComplex.cpp196 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
202 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
369 SrcType = SrcType->castAs<ComplexType>()->getElementType();
370 DestType = DestType->castAs<ComplexType>()->getElementType();
451 DestTy = DestTy->castAs<ComplexType>()->getElementType();
584 if (Op.Ty->castAs<ComplexType>()->getElementType()->isUnsignedIntegerType()) {
770 QualType Ty = E->getType()->castAs<ComplexType>()->getElementType();
783 CGF.ConvertType(E->getType()->castAs<ComplexType>()->getElementType());

Completed in 287 milliseconds

12345