| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | AvoidCStyleCastsCheck.cpp | 66 CastExpr->getLParenLoc(), in getReplaceRange() 67 CastExpr->getSubExprAsWritten()->getBeginLoc()); in getReplaceRange() 83 EndLoc = CastExpr->getRParenLoc().getLocWithOffset(-1); in getDestTypeString() 85 BeginLoc = CastExpr->getBeginLoc(); in getDestTypeString() 86 EndLoc = CastExpr->getLParenLoc().getLocWithOffset(-1); in getDestTypeString() 98 if (CastExpr->getExprLoc().isMacroID()) in check() 103 if (CastExpr->getCastKind() == CK_ToVoid) in check() 113 CastExpr->getTypeAsWritten().getUnqualifiedType(); in check() 119 CharSourceRange ReplaceRange = getReplaceRange(CastExpr); in check() 128 if (CastExpr->getCastKind() == CK_NoOp && !FnToFnCast) { in check() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | CastExprTest.cpp | 17 std::function<void(CastExpr *)> OnCast; 25 bool VisitCastExpr(CastExpr *Expr) { in VisitCastExpr() 75 Visitor.OnCast = [](CastExpr *Expr) { in TEST() 98 Visitor.OnCast = [](CastExpr *Expr) { in TEST()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransUnbridgedCasts.cpp | 87 bool VisitCastExpr(CastExpr *E) { in VisitCastExpr() 121 void transformNonObjCToObjCCast(CastExpr *E) { in transformNonObjCToObjCCast() 194 void castToObjCObject(CastExpr *E, bool retained) { in castToObjCObject() 198 void rewriteToBridgedCast(CastExpr *E, ObjCBridgeCastKind Kind) { in rewriteToBridgedCast() 203 void rewriteToBridgedCast(CastExpr *E, ObjCBridgeCastKind Kind, in rewriteToBridgedCast() 274 void rewriteCastForCFRetain(CastExpr *castE, CallExpr *callE) { in rewriteCastForCFRetain() 280 void getBlockMacroRanges(CastExpr *E, SourceRange &Outer, SourceRange &Inner) { in getBlockMacroRanges() 293 void rewriteBlockCopyMacro(CastExpr *E) { in rewriteBlockCopyMacro() 306 void removeBlockReleaseMacro(CastExpr *E) { in removeBlockReleaseMacro() 335 void transformObjCToNonObjCCast(CastExpr *E) { in transformObjCToNonObjCCast()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | EnumCastOutOfRangeChecker.cpp | 59 class EnumCastOutOfRangeChecker : public Checker<check::PreStmt<CastExpr>> { 64 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const; 92 void EnumCastOutOfRangeChecker::checkPreStmt(const CastExpr *CE, in checkPreStmt()
|
| H A D | PointerArithChecker.cpp | 46 check::PreStmt<ArraySubscriptExpr>, check::PreStmt<CastExpr>, 47 check::PostStmt<CastExpr>, check::PostStmt<CXXNewExpr>, 66 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const; 67 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const; 257 void PointerArithChecker::checkPostStmt(const CastExpr *CE, in checkPostStmt() 275 void PointerArithChecker::checkPreStmt(const CastExpr *CE, in checkPreStmt()
|
| H A D | CastSizeChecker.cpp | 26 class CastSizeChecker : public Checker< check::PreStmt<CastExpr> > { 30 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const; 89 void CastSizeChecker::checkPreStmt(const CastExpr *CE,CheckerContext &C) const { in checkPreStmt()
|
| H A D | AnalysisOrderChecker.cpp | 32 check::PreStmt<CastExpr>, check::PostStmt<CastExpr>, 61 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const { in checkPreStmt() 67 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const { in checkPostStmt()
|
| H A D | CastToStructChecker.cpp | 35 bool VisitCastExpr(const CastExpr *CE); 39 bool CastToStructVisitor::VisitCastExpr(const CastExpr *CE) { in VisitCastExpr()
|
| H A D | DynamicTypePropagation.cpp | 54 check::PostStmt<CastExpr>, 63 ExplodedNode *dynamicTypePropagationOnCasts(const CastExpr *CE, 101 void checkPostStmt(const CastExpr *CastE, CheckerContext &C) const; 400 const CastExpr *CE, ProgramStateRef &State, CheckerContext &C) const { in dynamicTypePropagationOnCasts() 610 void DynamicTypePropagation::checkPostStmt(const CastExpr *CE, in checkPostStmt()
|
| H A D | OSObjectCStyleCast.cpp | 55 const auto *CE = Nodes.getNodeAs<CastExpr>(WarnAtNode); in emitDiagnostics()
|
| H A D | DeleteWithNonVirtualDtorChecker.cpp | 117 const auto *CastE = dyn_cast<CastExpr>(S); in VisitNode()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | IncorrectRoundingsCheck.cpp | 63 const auto *CastExpr = Result.Nodes.getNodeAs<ImplicitCastExpr>("CastExpr"); in check() local 64 diag(CastExpr->getBeginLoc(), in check()
|
| H A D | SwappedArgumentsCheck.cpp | 29 if (auto *Cast = dyn_cast<CastExpr>(E)) in ignoreNoOpCasts() 39 static bool isImplicitCastCandidate(const CastExpr *Cast) { in isImplicitCastCandidate()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | IgnoreExpr.h | 75 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreCastsSingleStep() 93 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreLValueCastsSingleStep() 101 if (auto *CE = dyn_cast<CastExpr>(E)) in IgnoreBaseCastsSingleStep()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseNullptrCheck.cpp | 209 auto *C = dyn_cast<CastExpr>(S); in VisitStmt() 212 C = dyn_cast<CastExpr>(E->getExpr()); in VisitStmt() 286 bool allArgUsesValid(const CastExpr *CE) { in allArgUsesValid() 496 const auto *NullCast = Result.Nodes.getNodeAs<CastExpr>(CastSequence); in check() 508 .TraverseStmt(const_cast<CastExpr *>(NullCast)); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | StaticAssertCheck.cpp | 84 const auto *CastExpr = Result.Nodes.getNodeAs<CStyleCastExpr>("castExpr"); in check() local 99 if (IsAlwaysFalse && (!CastExpr || CastExpr->getType()->isPointerType())) { 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()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCXXABI.h | 29 class CastExpr; variable 194 const CastExpr *E, 199 virtual llvm::Constant *EmitMemberPointerConversion(const CastExpr *E, 244 llvm::Constant *getMemberPointerAdjustment(const CastExpr *E);
|
| H A D | CGCXXABI.cpp | 68 const CastExpr *E, in EmitMemberPointerConversion() 74 llvm::Constant *CGCXXABI::EmitMemberPointerConversion(const CastExpr *E, in EmitMemberPointerConversion() 280 llvm::Constant *CGCXXABI::getMemberPointerAdjustment(const CastExpr *E) { in getMemberPointerAdjustment()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ParentMap.cpp | 148 while (S && (isa<ParenExpr>(S) || isa<CastExpr>(S))); in getParentIgnoreParenCasts() 175 while (P && (isa<ParenExpr>(P) || isa<CastExpr>(P) || in isConsumedExpr()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | Store.h | 35 class CastExpr; variable 157 SVal evalDerivedToBase(SVal Derived, const CastExpr *Cast);
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | ASTUtils.cpp | 22 if (auto *cast = dyn_cast<CastExpr>(E)) { in tryToFindPtrOrigin()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountChecker.h | 244 check::PostStmt<CastExpr>, 296 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const;
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 78 def CastExpr : StmtNode<Expr, 1>; 84 def ImplicitCastExpr : StmtNode<CastExpr>; 85 def ExplicitCastExpr : StmtNode<CastExpr, 1>;
|
| /llvm-project-15.0.7/libcxxabi/src/demangle/ |
| H A D | ItaniumNodes.def | 72 NODE(CastExpr)
|