Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/unittests/StaticAnalyzer/
H A DRangeSetTest.cpp684 ::testing::Types<CastType<int8_t, int8_t>, CastType<uint8_t, uint8_t>,
690 ::testing::Types<CastType<int8_t, int16_t>, CastType<int8_t, int32_t>,
691 CastType<int8_t, int64_t>, CastType<uint8_t, uint16_t>,
693 CastType<int16_t, int32_t>, CastType<int16_t, int64_t>,
698 ::testing::Types<CastType<int16_t, int8_t>, CastType<uint16_t, uint8_t>,
699 CastType<int32_t, int16_t>, CastType<int32_t, int8_t>,
701 CastType<int64_t, int32_t>, CastType<int64_t, int16_t>,
706 ::testing::Types<CastType<int8_t, uint8_t>, CastType<uint8_t, int8_t>,
712 ::testing::Types<CastType<int8_t, uint16_t>, CastType<int8_t, uint32_t>,
713 CastType<int8_t, uint64_t>, CastType<uint8_t, int16_t>,
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMisplacedWideningCastCheck.cpp198 QualType CastType = Cast->getType(); in check() local
202 if (Context.getIntWidth(CastType) < Context.getIntWidth(CalcType)) in check()
208 if (Context.getIntWidth(CastType) == Context.getIntWidth(CalcType)) { in check()
210 dyn_cast<BuiltinType>(CastType->getUnqualifiedDesugaredType()); in check()
226 << CalcType << CastType; in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DAvoidCStyleCastsCheck.cpp178 auto ReplaceWithNamedCast = [&](StringRef CastType) { in check() argument
179 Diag << CastType; in check()
180 ReplaceWithCast((CastType + "<" + DestTypeString + ">").str()); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp197 QualType CastType = Cast->getType(); in isLossOfSign() local
200 if (!CastType->isUnsignedIntegerType() || !SubType->isSignedIntegerType()) in isLossOfSign()
/llvm-project-15.0.7/clang/utils/TableGen/
H A DMveEmitter.cpp1177 const Type *CastType = getType(Op, Param); in getCodeForDag() local
1179 if (const auto *ST = dyn_cast<ScalarType>(CastType)) { in getCodeForDag()
1187 } else if (const auto *PT = dyn_cast<PointerType>(CastType)) { in getCodeForDag()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCast.cpp46 enum CastType { enum
416 static bool tryDiagnoseOverloadedCast(Sema &S, CastType CT, in tryDiagnoseOverloadedCast()
493 static void diagnoseBadCast(Sema &S, unsigned msg, CastType castType, in diagnoseBadCast()
H A DSemaExpr.cpp20157 RebuildUnknownAnyExpr(Sema &S, QualType CastType) in RebuildUnknownAnyExpr()
20158 : S(S), DestType(CastType) {} in RebuildUnknownAnyExpr()
20486 ExprResult Sema::checkUnknownAnyCast(SourceRange TypeRange, QualType CastType, in checkUnknownAnyCast() argument
20490 if (!CastType->isVoidType() && in checkUnknownAnyCast()
20491 RequireCompleteType(TypeRange.getBegin(), CastType, in checkUnknownAnyCast()
20496 ExprResult result = RebuildUnknownAnyExpr(*this, CastType).Visit(CastExpr); in checkUnknownAnyCast()
H A DSemaCodeComplete.cpp596 QualType CastType) { in enterTypeCast() argument
600 Type = !CastType.isNull() ? CastType.getCanonicalType() : QualType(); in enterTypeCast()
H A DSemaOpenMP.cpp8461 QualType CastType = SemaRef.Context.getIntTypeForBitwidth( in calculateNumIters() local
8467 CastType, Sema::AA_Converting) in calculateNumIters()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h325 void enterTypeCast(SourceLocation Tok, QualType CastType);
12311 ExprResult checkUnknownAnyCast(SourceRange TypeRange, QualType CastType,