Home
last modified time | relevance | path

Searched refs:ToTy (Results 1 – 11 of 11) sorted by relevance

/external/clang/include/clang/AST/
DDeclBase.h1755 template <class ToTy,
1756 bool IsKnownSubtype = ::std::is_base_of<DeclContext, ToTy>::value>
1758 static const ToTy *doit(const DeclContext *Val) { in doit()
1759 return static_cast<const ToTy*>(Decl::castFromDeclContext(Val)); in doit()
1762 static ToTy *doit(DeclContext *Val) { in doit()
1763 return static_cast<ToTy*>(Decl::castFromDeclContext(Val)); in doit()
1768 template <class ToTy>
1769 struct cast_convert_decl_context<ToTy, true> {
1770 static const ToTy *doit(const DeclContext *Val) {
1771 return static_cast<const ToTy*>(Val);
[all …]
/external/llvm/lib/Transforms/Scalar/
DFloat2Int.cpp73 Value *convert(Instruction *I, Type *ToTy);
435 Value *Float2Int::convert(Instruction *I, Type *ToTy) { in convert() argument
447 NewOperands.push_back(convert(VI, ToTy)); in convert()
449 APSInt Val(ToTy->getPrimitiveSizeInBits(), /*IsUnsigned=*/false); in convert()
454 NewOperands.push_back(ConstantInt::get(ToTy, Val)); in convert()
482 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], ToTy); in convert()
486 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], ToTy); in convert()
/external/clang/lib/StaticAnalyzer/Checkers/
DCastToStructChecker.cpp39 QualType ToTy = Ctx.getCanonicalType(CE->getType()); in checkPreStmt() local
42 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr()); in checkPreStmt()
DCastSizeChecker.cpp94 QualType ToTy = Ctx.getCanonicalType(CE->getType()); in checkPreStmt() local
95 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr()); in checkPreStmt()
/external/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp372 static bool shouldBeModeledWithNoOp(ASTContext &Context, QualType ToTy, in shouldBeModeledWithNoOp() argument
374 while (Context.UnwrapSimilarPointerTypes(ToTy, FromTy)) { in shouldBeModeledWithNoOp()
376 ToTy = Context.getUnqualifiedArrayType(ToTy, Quals1); in shouldBeModeledWithNoOp()
389 if (ToTy->isVoidType()) in shouldBeModeledWithNoOp()
392 if (ToTy != FromTy) in shouldBeModeledWithNoOp()
DSymbolManager.cpp62 os << '(' << ToTy.getAsString() << ") ("; in dumpToStream()
/external/clang/include/clang/Sema/
DSemaFixItUtils.h53 const CanQualType ToTy,
DOverload.h343 void *ToTy; member
358 QualType getToType() const { return QualType::getFromOpaquePtr(ToTy); } in getToType()
365 void setToType(QualType T) { ToTy = T.getAsOpaquePtr(); } in setToType()
/external/clang/lib/Sema/
DSemaFixItUtils.cpp53 const QualType ToTy, in tryToFixConversion() argument
59 const CanQualType ToQTy = S.Context.getCanonicalType(ToTy); in tryToFixConversion()
DSemaOverload.cpp8707 QualType ToTy = Conv.Bad.getToType(); in DiagnoseBadConversion() local
8719 << ToTy << Name << I+1; in DiagnoseBadConversion()
8727 CanQualType CToTy = S.Context.getCanonicalType(ToTy); in DiagnoseBadConversion()
8799 << FromTy << ToTy << (unsigned) isObjectArgument << I+1; in DiagnoseBadConversion()
8814 << FromTy << ToTy << (unsigned) isObjectArgument << I+1; in DiagnoseBadConversion()
8822 if (const PointerType *ToPtrTy = ToTy->getAs<PointerType>()) { in DiagnoseBadConversion()
8834 = ToTy->getAs<ObjCObjectPointerType>()) in DiagnoseBadConversion()
8841 } else if (const ReferenceType *ToRefTy = ToTy->getAs<ReferenceType>()) { in DiagnoseBadConversion()
8847 } else if (ToTy->isLValueReferenceType() && !FromExpr->isLValue() && in DiagnoseBadConversion()
8848 ToTy.getNonReferenceType().getCanonicalType() == in DiagnoseBadConversion()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSymbolManager.h314 QualType ToTy; variable
318 SymExpr(CastSymbolKind), Operand(In), FromTy(From), ToTy(To) { } in SymbolCast()
320 QualType getType() const override { return ToTy; } in getType()
335 Profile(ID, Operand, FromTy, ToTy); in Profile()