Home
last modified time | relevance | path

Searched refs:ArraySubscriptExpr (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DUndefinedArraySubscriptChecker.cpp26 : public Checker< check::PreStmt<ArraySubscriptExpr> > {
30 void checkPreStmt(const ArraySubscriptExpr *A, CheckerContext &C) const;
35 UndefinedArraySubscriptChecker::checkPreStmt(const ArraySubscriptExpr *A, in checkPreStmt()
H A DAnalysisOrderChecker.cpp33 check::PreStmt<ArraySubscriptExpr>,
34 check::PostStmt<ArraySubscriptExpr>, check::PreStmt<CXXNewExpr>,
73 void checkPreStmt(const ArraySubscriptExpr *SubExpr, in checkPreStmt()
79 void checkPostStmt(const ArraySubscriptExpr *SubExpr, in checkPostStmt()
H A DInvalidatedIteratorChecker.cpp31 check::PreStmt<ArraySubscriptExpr>,
45 void checkPreStmt(const ArraySubscriptExpr *ASE, CheckerContext &C) const;
100 void InvalidatedIteratorChecker::checkPreStmt(const ArraySubscriptExpr *ASE, in checkPreStmt()
H A DPointerArithChecker.cpp46 check::PreStmt<ArraySubscriptExpr>, check::PreStmt<CastExpr>,
65 void checkPreStmt(const ArraySubscriptExpr *SubExpr, CheckerContext &C) const;
303 void PointerArithChecker::checkPreStmt(const ArraySubscriptExpr *SubsExpr, in checkPreStmt()
H A DIteratorRangeChecker.cpp32 check::PreStmt<ArraySubscriptExpr>,
54 void checkPreStmt(const ArraySubscriptExpr *ASE, CheckerContext &C) const;
179 void IteratorRangeChecker::checkPreStmt(const ArraySubscriptExpr *ASE, in checkPreStmt()
H A DDereferenceChecker.cpp185 const ArraySubscriptExpr *AE = cast<ArraySubscriptExpr>(S); in reportBug()
H A DUndefResultChecker.cpp41 if (!isa<ArraySubscriptExpr>(Ex)) in isArrayIndexOutOfBounds()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisplacedArrayIndexCheck.cpp31 Result.Nodes.getNodeAs<ArraySubscriptExpr>("expr"); in check()
H A DContainerDataPointerCheck.cpp101 if (!isa<DeclRefExpr, ArraySubscriptExpr, CXXOperatorCallExpr, CallExpr, in check()
H A DNonConstParameterCheck.cpp214 } else if (const auto *A = dyn_cast<ArraySubscriptExpr>(E)) { in markCanNotBeConst()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DImplicitWideningOfMultiplicationResultCheck.cpp159 } else if (const auto *ASE = dyn_cast<ArraySubscriptExpr>(E)) { in handlePointerOffsetting()
268 Result.Nodes.getNodeAs<ArraySubscriptExpr>("x")) in check()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DComputeDependence.h30 class ArraySubscriptExpr; variable
116 ExprDependence computeDependence(ArraySubscriptExpr *E);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProBoundsConstantArrayIndexCheck.cpp71 if (const auto *ArraySubscriptE = dyn_cast<ArraySubscriptExpr>(Matched)) in check()
/llvm-project-15.0.7/clang/test/AST/HLSL/
H A Dvector-constructors.hlsl25 // components using ArraySubscriptExpr
30 // CHECK-NEXT: ArraySubscriptExpr 0x{{[0-9a-fA-F]+}} <col:24, <invalid sloc>> 'float' lvalue
34 // CHECK-NEXT: ArraySubscriptExpr 0x{{[0-9a-fA-F]+}} <col:24, <invalid sloc>> 'float' lvalue
/llvm-project-15.0.7/libcxxabi/src/demangle/
H A DItaniumNodes.def66 NODE(ArraySubscriptExpr)
/llvm-project-15.0.7/llvm/include/llvm/Demangle/
H A DItaniumNodes.def66 NODE(ArraySubscriptExpr)
/llvm-project-15.0.7/clang/lib/AST/
H A DExprClassification.cpp221 if (cast<ArraySubscriptExpr>(E)->getBase()->getType()->isVectorType()) in ClassifyInternal()
222 return ClassifyInternal(Ctx, cast<ArraySubscriptExpr>(E)->getBase()); in ClassifyInternal()
226 auto *Base = cast<ArraySubscriptExpr>(E)->getBase()->IgnoreImpCasts(); in ClassifyInternal()
H A DExpr.cpp2433 if (isa<ArraySubscriptExpr>(E)) in isReadIfDiscardedInCPlusPlus11()
2604 Loc = cast<ArraySubscriptExpr>(this)->getRBracketLoc(); in isUnusedResultAWarning()
2605 R1 = cast<ArraySubscriptExpr>(this)->getLHS()->getSourceRange(); in isUnusedResultAWarning()
2606 R2 = cast<ArraySubscriptExpr>(this)->getRHS()->getSourceRange(); in isUnusedResultAWarning()
2899 return cast<ArraySubscriptExpr>(E)->getBase()->isOBJCGCCandidate(Ctx); in isOBJCGCCandidate()
3998 if (const ArraySubscriptExpr *ASE = dyn_cast<ArraySubscriptExpr>(E)) in refersToVectorElement()
4075 const auto *Array1 = dyn_cast<ArraySubscriptExpr>(E1); in isSameComparisonOperand()
4076 const auto *Array2 = dyn_cast<ArraySubscriptExpr>(E2); in isSameComparisonOperand()
4806 dyn_cast<ArraySubscriptExpr>(Base->IgnoreParenImpCasts())) { in getBaseOriginalType()
/llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h44 class ArraySubscriptExpr; variable
427 til::SExpr *translateArraySubscriptExpr(const ArraySubscriptExpr *E,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.cpp387 const auto *E = cast<ArraySubscriptExpr>(Init); in isAliasDecl()
696 bool ForLoopIndexUseVisitor::TraverseArraySubscriptExpr(ArraySubscriptExpr *E) { in TraverseArraySubscriptExpr()
H A DLoopConvertUtils.h348 bool TraverseArraySubscriptExpr(ArraySubscriptExpr *E);
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaFixItUtils.cpp68 if (isa<ArraySubscriptExpr>(Expr) || in tryToFixConversion()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DReachableCode.cpp580 const ArraySubscriptExpr *ASE = cast<ArraySubscriptExpr>(S); in GetUnreachableLoc()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExplodedGraph.cpp53 return isa<DeclRefExpr, MemberExpr, ObjCIvarRefExpr, ArraySubscriptExpr>(Ex); in isInterestingLValueExpr()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h1980 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ArraySubscriptExpr>
5438 AST_MATCHER_P(ArraySubscriptExpr, hasIndex, in AST_MATCHER_P() argument
5455 AST_MATCHER_P(ArraySubscriptExpr, hasBase, in AST_MATCHER_P() argument
5704 CXXRewrittenBinaryOperator, ArraySubscriptExpr), in AST_POLYMORPHIC_MATCHER_P() argument
5720 CXXRewrittenBinaryOperator, ArraySubscriptExpr), in AST_POLYMORPHIC_MATCHER_P() argument

123