Home
last modified time | relevance | path

Searched refs:CastType (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMisplacedWideningCastCheck.cpp199 QualType CastType = Cast->getType(); in check() local
203 if (Context.getIntWidth(CastType) < Context.getIntWidth(CalcType)) in check()
209 if (Context.getIntWidth(CastType) == Context.getIntWidth(CalcType)) { in check()
211 dyn_cast<BuiltinType>(CastType->getUnqualifiedDesugaredType()); in check()
227 << CalcType << CastType; in check()
/external/libnl/include/netlink-private/
Dutils.h86 #define _NL_AUTO_DEFINE_FCN_VOID0(CastType, name, func) \ argument
89 if (*((CastType *) v)) \
90 func (*((CastType *) v)); \
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DAvoidCStyleCastsCheck.cpp147 auto ReplaceWithNamedCast = [&](StringRef CastType) { in check() argument
148 Diag << CastType; in check()
149 ReplaceWithCast((CastType + "<" + DestTypeString + ">").str()); in check()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DConversionChecker.cpp186 QualType CastType = Cast->getType(); in isLossOfSign() local
189 if (!CastType->isUnsignedIntegerType() || !SubType->isSignedIntegerType()) in isLossOfSign()
/external/eigen/Eigen/src/Core/util/
DXprHelper.h489 template<typename XprType, typename CastType> struct cast_return_type
492 typedef typename remove_all<CastType>::type _CastType;
495 const XprType&,CastType>::type type;
/external/llvm-project/clang/utils/TableGen/
DMveEmitter.cpp1179 const Type *CastType = getType(Op, Param); in getCodeForDag() local
1181 if (const auto *ST = dyn_cast<ScalarType>(CastType)) { in getCodeForDag()
1189 } else if (const auto *PT = dyn_cast<PointerType>(CastType)) { in getCodeForDag()
/external/clang/lib/Sema/
DSemaCast.cpp40 enum CastType { enum
307 static bool tryDiagnoseOverloadedCast(Sema &S, CastType CT, in tryDiagnoseOverloadedCast()
383 static void diagnoseBadCast(Sema &S, unsigned msg, CastType castType, in diagnoseBadCast()
DSemaExpr.cpp14533 RebuildUnknownAnyExpr(Sema &S, QualType CastType) in RebuildUnknownAnyExpr()
14534 : S(S), DestType(CastType) {} in RebuildUnknownAnyExpr()
14863 ExprResult Sema::checkUnknownAnyCast(SourceRange TypeRange, QualType CastType, in checkUnknownAnyCast() argument
14867 if (!CastType->isVoidType() && in checkUnknownAnyCast()
14868 RequireCompleteType(TypeRange.getBegin(), CastType, in checkUnknownAnyCast()
14873 ExprResult result = RebuildUnknownAnyExpr(*this, CastType).Visit(CastExpr); in checkUnknownAnyCast()
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp2246 Ice::Type CastType = Context->getSimpleTypeByID(Values[1]); in ProcessRecord() local
2248 if (!convertCastOpToIceOp(Values[2], Src->getType(), CastType, CastKind)) { in ProcessRecord()
2249 appendErrorInstruction(CastType); in ProcessRecord()
2253 Func.get(), CastKind, getNextInstVar(CastType), Src)); in ProcessRecord()
/external/llvm-project/clang/lib/Sema/
DSemaCast.cpp45 enum CastType { enum
406 static bool tryDiagnoseOverloadedCast(Sema &S, CastType CT, in tryDiagnoseOverloadedCast()
483 static void diagnoseBadCast(Sema &S, unsigned msg, CastType castType, in diagnoseBadCast()
DSemaExpr.cpp18807 RebuildUnknownAnyExpr(Sema &S, QualType CastType) in RebuildUnknownAnyExpr()
18808 : S(S), DestType(CastType) {} in RebuildUnknownAnyExpr()
19142 ExprResult Sema::checkUnknownAnyCast(SourceRange TypeRange, QualType CastType, in checkUnknownAnyCast() argument
19146 if (!CastType->isVoidType() && in checkUnknownAnyCast()
19147 RequireCompleteType(TypeRange.getBegin(), CastType, in checkUnknownAnyCast()
19152 ExprResult result = RebuildUnknownAnyExpr(*this, CastType).Visit(CastExpr); in checkUnknownAnyCast()
DSemaCodeComplete.cpp567 QualType CastType) { in enterTypeCast() argument
569 Type = !CastType.isNull() ? CastType.getCanonicalType() : QualType(); in enterTypeCast()
DSemaOpenMP.cpp7179 QualType CastType = SemaRef.Context.getIntTypeForBitwidth( in calculateNumIters() local
7185 CastType, Sema::AA_Converting) in calculateNumIters()
/external/googletest/googlemock/include/gmock/
Dgmock-matchers.h431 using CastType = in MatchAndExplain() local
435 return source_matcher_.MatchAndExplain(static_cast<CastType>(x), in MatchAndExplain()
/external/llvm-project/clang/include/clang/Sema/
DSema.h317 void enterTypeCast(SourceLocation Tok, QualType CastType);
11493 ExprResult checkUnknownAnyCast(SourceRange TypeRange, QualType CastType,
/external/clang/include/clang/Sema/
DSema.h8873 ExprResult checkUnknownAnyCast(SourceRange TypeRange, QualType CastType,