Home
last modified time | relevance | path

Searched refs:CastExpr (Results 1 – 25 of 109) sorted by relevance

12345

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DAvoidCStyleCastsCheck.cpp66 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 DCastExprTest.cpp17 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 DTransUnbridgedCasts.cpp87 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 DEnumCastOutOfRangeChecker.cpp59 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 DPointerArithChecker.cpp46 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 DCastSizeChecker.cpp26 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 DAnalysisOrderChecker.cpp32 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 DCastToStructChecker.cpp35 bool VisitCastExpr(const CastExpr *CE);
39 bool CastToStructVisitor::VisitCastExpr(const CastExpr *CE) { in VisitCastExpr()
H A DDynamicTypePropagation.cpp54 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 DOSObjectCStyleCast.cpp55 const auto *CE = Nodes.getNodeAs<CastExpr>(WarnAtNode); in emitDiagnostics()
H A DDeleteWithNonVirtualDtorChecker.cpp117 const auto *CastE = dyn_cast<CastExpr>(S); in VisitNode()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DIncorrectRoundingsCheck.cpp63 const auto *CastExpr = Result.Nodes.getNodeAs<ImplicitCastExpr>("CastExpr"); in check() local
64 diag(CastExpr->getBeginLoc(), in check()
H A DSwappedArgumentsCheck.cpp29 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 DIgnoreExpr.h75 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 DUseNullptrCheck.cpp209 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 DStaticAssertCheck.cpp84 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 DNoIntToPtrCheck.cpp27 const auto *MatchedCast = Result.Nodes.getNodeAs<CastExpr>("x"); in check()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCXXABI.h29 class CastExpr; variable
194 const CastExpr *E,
199 virtual llvm::Constant *EmitMemberPointerConversion(const CastExpr *E,
244 llvm::Constant *getMemberPointerAdjustment(const CastExpr *E);
H A DCGCXXABI.cpp68 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 DParentMap.cpp148 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 DStore.h35 class CastExpr; variable
157 SVal evalDerivedToBase(SVal Derived, const CastExpr *Cast);
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp22 if (auto *cast = dyn_cast<CastExpr>(E)) { in tryToFindPtrOrigin()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.h244 check::PostStmt<CastExpr>,
296 void checkPostStmt(const CastExpr *CE, CheckerContext &C) const;
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DStmtNodes.td78 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 DItaniumNodes.def72 NODE(CastExpr)

12345