Home
last modified time | relevance | path

Searched refs:CStyleCastExpr (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/clang/test/Analysis/
H A Dblocks.mm31 // CHECK-NEXT: 2: (void)([B1.1]) (CStyleCastExpr, ToVoid, void)
58 // CHECK-NEXT: 5: (void)([B1.4]) (CStyleCastExpr, ToVoid, void)
83 // CHECK-NEXT: 5: (void)([B1.4]) (CStyleCastExpr, ToVoid, void)
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSignedCharMisuseCheck.cpp60 const auto CStyleCastExpr = cStyleCastExpr(has(ImplicitCastExpr)); in charCastExpression() local
67 return traverse(TK_AsIs, expr(anyOf(ImplicitCastExpr, CStyleCastExpr, in charCastExpression()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp363 const CStyleCastExpr* CastExpr1 = cast<CStyleCastExpr>(Stmt1); in isIdenticalStmt()
364 const CStyleCastExpr* CastExpr2 = cast<CStyleCastExpr>(Stmt2); in isIdenticalStmt()
/llvm-project-15.0.7/clang/test/SemaOpenCL/
H A Dmultistep-explicit-cast.cl8 …// CHECK: CStyleCastExpr {{.*}} <col:{{.*}}> 'char2':'char __attribute__((ext_vector_type(2)))' <V…
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DAvoidCStyleCastsCheck.cpp64 if (const auto *CastExpr = dyn_cast<CStyleCastExpr>(Expr)) { in getReplaceRange()
81 if (const auto *CastExpr = dyn_cast<CStyleCastExpr>(Expr)) { in getDestTypeString()
/llvm-project-15.0.7/clang/test/Index/
H A Dannotate-tokens.m193 // CHECK: Punctuation: "(" [8:3 - 8:4] CStyleCastExpr=
194 // CHECK: Keyword: "void" [8:4 - 8:8] CStyleCastExpr=
195 // CHECK: Punctuation: ")" [8:8 - 8:9] CStyleCastExpr=
314 // CHECK: Punctuation: "(" [45:3 - 45:4] CStyleCastExpr=
315 // CHECK: Keyword: "void" [45:4 - 45:8] CStyleCastExpr=
316 // CHECK: Punctuation: ")" [45:8 - 45:9] CStyleCastExpr=
457 // CHECK: Punctuation: "(" [88:3 - 88:4] CStyleCastExpr=
458 // CHECK: Keyword: "void" [88:4 - 88:8] CStyleCastExpr=
459 // CHECK: Punctuation: ")" [88:8 - 88:9] CStyleCastExpr=
H A Dc-index-getCursor-test.m161 // CHECK: [52:18 - 52:33] CStyleCastExpr=
H A Dc-index-api-loadTU-test.m152 // CHECK: c-index-api-loadTU-test.m:54:18: CStyleCastExpr= Extent=[54:18 - 54:36]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProTypeCstyleCastCheck.cpp38 const auto *MatchedCast = Result.Nodes.getNodeAs<CStyleCastExpr>("cast"); in check()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp310 void RewriteCastExpr(CStyleCastExpr *CE);
2089 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E)) { in RewriteObjCQualifiedInterfaceTypes()
2212 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E)) in RewriteTypeOfDecl()
2834 while (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(recExpr)) in SynthMessageExpr()
2886 else if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(userExpr)) { in SynthMessageExpr()
3882 void RewriteObjC::RewriteCastExpr(CStyleCastExpr *CE) { in RewriteCastExpr()
4270 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E)) in RewriteByRefVar()
4718 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(S)) in RewriteFunctionBodyOrGlobalInitializer()
4745 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(S)) { in RewriteFunctionBodyOrGlobalInitializer()
4853 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(VD->getInit())) { in HandleDeclInMainFile()
[all …]
H A DRewriteModernObjC.cpp2172 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E)) { in RewriteObjCQualifiedInterfaceTypes()
2299 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E)) in RewriteTypeOfDecl()
2879 CStyleCastExpr * DictValueObjects = in RewriteObjCDictionaryLiteralExpr()
2893 CStyleCastExpr * DictKeyObjects = in RewriteObjCDictionaryLiteralExpr()
3405 while (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(recExpr)) in SynthMessageExpr()
3457 else if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(userExpr)) { in SynthMessageExpr()
5139 if (const CStyleCastExpr *ECE = dyn_cast<CStyleCastExpr>(E)) in RewriteByRefVar()
5615 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(S)) in RewriteFunctionBodyOrGlobalInitializer()
5642 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(S)) { in RewriteFunctionBodyOrGlobalInitializer()
5754 if (CStyleCastExpr *CE = dyn_cast<CStyleCastExpr>(VD->getInit())) { in HandleDeclInMainFile()
[all …]
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransUnbridgedCasts.cpp228 if (CStyleCastExpr *CCE = dyn_cast<CStyleCastExpr>(E)) { in rewriteToBridgedCast()
/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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.cpp147 if (Parent.get<CStyleCastExpr>() && in isConstant()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DReachableCode.cpp586 const CStyleCastExpr *CSC = cast<CStyleCastExpr>(S); in GetUnreachableLoc()
H A DUninitializedValues.cpp449 else if (const auto *CSE = dyn_cast<CStyleCastExpr>(CE)) { in VisitCastExpr()
H A DCalledOnceCheck.cpp1621 void VisitCStyleCastExpr(const CStyleCastExpr *Cast) { in VisitCStyleCastExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DRedundantVoidArgCheck.cpp86 Nodes.getNodeAs<CStyleCastExpr>(CStyleCastId)) in check()
/llvm-project-15.0.7/clang/lib/AST/
H A DExpr.cpp1967 return static_cast<CStyleCastExpr *>(this) in getTrailingFPFeatures()
2011 CStyleCastExpr *CStyleCastExpr::Create(const ASTContext &C, QualType T, in Create()
2021 CStyleCastExpr *E = in Create()
2022 new (Buffer) CStyleCastExpr(T, VK, K, Op, PathSize, FPO, WrittenTy, L, R); in Create()
2029 CStyleCastExpr *CStyleCastExpr::CreateEmpty(const ASTContext &C, in CreateEmpty()
2035 return new (Buffer) CStyleCastExpr(EmptyShell(), PathSize, HasFPFeatures); in CreateEmpty()
2821 const CStyleCastExpr *CStyleCE = cast<CStyleCastExpr>(this); in isUnusedResultAWarning()
2879 return cast<CStyleCastExpr>(E)->getSubExpr()->isOBJCGCCandidate(Ctx); in isOBJCGCCandidate()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DASTSelectionTest.cpp577 const auto &CCast = checkNode<CStyleCastExpr>( in TEST()
621 const auto &CCast = checkNode<CStyleCastExpr>( in TEST()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DStmtNodes.td86 def CStyleCastExpr : StmtNode<ExplicitCastExpr>;
/llvm-project-15.0.7/clang/include/clang/AST/
H A DExpr.h3735 class CStyleCastExpr final
3737 private llvm::TrailingObjects<CStyleCastExpr, CXXBaseSpecifier *,
3742 CStyleCastExpr(QualType exprTy, ExprValueKind vk, CastKind kind, Expr *op, in CStyleCastExpr() function
3753 explicit CStyleCastExpr(EmptyShell Shell, unsigned PathSize, in CStyleCastExpr() function
3762 static CStyleCastExpr *
3767 static CStyleCastExpr *CreateEmpty(const ASTContext &Context,
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-expr-json.m2227 // CHECK-NEXT: "kind": "CStyleCastExpr",
2411 // CHECK-NEXT: "kind": "CStyleCastExpr",
2522 // CHECK-NEXT: "kind": "CStyleCastExpr",
2732 // CHECK-NEXT: "kind": "CStyleCastExpr",
3525 // CHECK-NEXT: "kind": "CStyleCastExpr",
3731 // CHECK-NEXT: "kind": "CStyleCastExpr",
3842 // CHECK-NEXT: "kind": "CStyleCastExpr",
4052 // CHECK-NEXT: "kind": "CStyleCastExpr",
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprObjC.cpp3784 if (CStyleCastExpr *CCE = dyn_cast<CStyleCastExpr>(castedE)) in addFixitForObjCARCConversion()
4523 if (CStyleCastExpr *cast = dyn_cast<CStyleCastExpr>(realCast)) { in diagnoseARCUnbridgedCast()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp970 const internal::VariadicDynCastAllOfMatcher<Stmt, CStyleCastExpr>

12