Searched refs:MatchedCast (Results 1 – 7 of 7) sorted by relevance
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | ProTypeCstyleCastCheck.cpp | 38 const auto *MatchedCast = Result.Nodes.getNodeAs<CStyleCastExpr>("cast"); in check() local 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() 44 MatchedCast->getCastKind() == CK_ReinterpretMemberPointer) { in check() 45 diag(MatchedCast->getBeginLoc(), in check() 50 QualType SourceType = MatchedCast->getSubExpr()->getType(); in check() 52 if (MatchedCast->getCastKind() == CK_BaseToDerived) { in check() 65 MatchedCast->getLParenLoc().getLocWithOffset(1), in check() [all …]
|
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()
|
D | ProBoundsArrayToPointerDecayCheck.cpp | 69 const auto *MatchedCast = Result.Nodes.getNodeAs<ImplicitCastExpr>("cast"); in check() local 70 if (MatchedCast->getCastKind() != CK_ArrayToPointerDecay) in check() 73 diag(MatchedCast->getExprLoc(), "do not implicitly decay an array into a " in check()
|
D | ProTypeReinterpretCastCheck.cpp | 25 const auto *MatchedCast = in check() local 27 diag(MatchedCast->getOperatorLoc(), "do not use reinterpret_cast"); in check()
|
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | NoIntToPtrCheck.cpp | 27 const auto *MatchedCast = Result.Nodes.getNodeAs<CastExpr>("x"); in check() local 28 diag(MatchedCast->getBeginLoc(), in check()
|