Searched refs:MatchedCast (Results 1 – 7 of 7) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProTypeCstyleCastCheck.cpp | 40 if (MatchedCast->getCastKind() == CK_BitCast || in check() 41 MatchedCast->getCastKind() == CK_LValueBitCast || in check() 42 MatchedCast->getCastKind() == CK_IntegralToPointer || in check() 43 MatchedCast->getCastKind() == CK_PointerToIntegral || in check() 45 diag(MatchedCast->getBeginLoc(), in check() 52 if (MatchedCast->getCastKind() == CK_BaseToDerived) { in check() 70 MatchedCast->getBeginLoc(), in check() 85 MatchedCast->getLParenLoc(), MatchedCast->getRParenLoc()); in check() 89 MatchedCast->getBeginLoc(), in check() 95 if (MatchedCast->getCastKind() == CK_NoOp && in check() [all …]
|
| H A D | ProTypeStaticCastDowncastCheck.cpp | 27 const auto *MatchedCast = Result.Nodes.getNodeAs<CXXStaticCastExpr>("cast"); in check() local 28 if (MatchedCast->getCastKind() != CK_BaseToDerived) in check() 31 QualType SourceType = MatchedCast->getSubExpr()->getType(); in check() 39 diag(MatchedCast->getOperatorLoc(), in check() 42 << FixItHint::CreateReplacement(MatchedCast->getOperatorLoc(), in check() 45 diag(MatchedCast->getOperatorLoc(), in check()
|
| H A D | ProBoundsArrayToPointerDecayCheck.cpp | 73 const auto *MatchedCast = Result.Nodes.getNodeAs<ImplicitCastExpr>("cast"); in check() local 74 if (MatchedCast->getCastKind() != CK_ArrayToPointerDecay) in check() 77 diag(MatchedCast->getExprLoc(), "do not implicitly decay an array into a " in check()
|
| H A D | ProTypeReinterpretCastCheck.cpp | 25 const auto *MatchedCast = in check() local 27 diag(MatchedCast->getOperatorLoc(), "do not use reinterpret_cast"); in check()
|
| H A D | ProTypeConstCastCheck.cpp | 24 const auto *MatchedCast = Result.Nodes.getNodeAs<CXXConstCastExpr>("cast"); in check() local 25 diag(MatchedCast->getOperatorLoc(), "do not use const_cast"); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | DurationConversionCastCheck.cpp | 37 const auto *MatchedCast = in check() local 40 if (isInMacro(Result, MatchedCast)) in check() 53 if (MatchedCast->getTypeAsWritten()->isIntegerType() && in check() 57 diag(MatchedCast->getBeginLoc(), in check() 61 MatchedCast->getSourceRange(), in check() 68 if (MatchedCast->getTypeAsWritten()->isRealFloatingType() && in check() 72 diag(MatchedCast->getBeginLoc(), "duration should be converted directly to " in check() 76 MatchedCast->getSourceRange(), in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | NoIntToPtrCheck.cpp | 27 const auto *MatchedCast = Result.Nodes.getNodeAs<CastExpr>("x"); in check() local 28 diag(MatchedCast->getBeginLoc(), in check()
|