Home
last modified time | relevance | path

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

1234

/llvm-project/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;
95 void InvalidatedIteratorChecker::checkPreStmt(const ArraySubscriptExpr *ASE, in checkPreStmt()
H A DArrayBoundCheckerV2.cpp44 const auto *ASE = dyn_cast<ArraySubscriptExpr>(E); in determineElementType()
120 // NOTE: The `ArraySubscriptExpr` and `UnaryOperator` callbacks are `PostStmt`
127 class ArrayBoundCheckerV2 : public Checker<check::PostStmt<ArraySubscriptExpr>,
151 void checkPostStmt(const ArraySubscriptExpr *E, CheckerContext &C) const { in checkPostStmt()
648 if (const auto *ASE = dyn_cast<ArraySubscriptExpr>(E)) in performCheck()
763 if (isa<ArraySubscriptExpr>(E) && isInAddressOf(E, C.getASTContext())) { in isIdiomaticPastTheEndPtr()
H A DPointerArithChecker.cpp47 check::PreStmt<ArraySubscriptExpr>, check::PreStmt<CastExpr>,
66 void checkPreStmt(const ArraySubscriptExpr *SubExpr, CheckerContext &C) const;
297 void PointerArithChecker::checkPreStmt(const ArraySubscriptExpr *SubsExpr, in checkPreStmt()
H A DIteratorRangeChecker.cpp32 check::PreStmt<ArraySubscriptExpr>,
53 void checkPreStmt(const ArraySubscriptExpr *ASE, CheckerContext &C) const;
178 void IteratorRangeChecker::checkPreStmt(const ArraySubscriptExpr *ASE, in checkPreStmt()
H A DDereferenceChecker.cpp197 const ArraySubscriptExpr *AE = cast<ArraySubscriptExpr>(S); in reportBug()
H A DUndefResultChecker.cpp41 if (!isa<ArraySubscriptExpr>(Ex)) in isArrayIndexOutOfBounds()
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DMisplacedArrayIndexCheck.cpp29 Result.Nodes.getNodeAs<ArraySubscriptExpr>("expr"); in check()
H A DContainerDataPointerCheck.cpp110 if (!isa<DeclRefExpr, ArraySubscriptExpr, CXXOperatorCallExpr, CallExpr, in check()
H A DNonConstParameterCheck.cpp215 } else if (const auto *A = dyn_cast<ArraySubscriptExpr>(E)) { in markCanNotBeConst()
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DImplicitWideningOfMultiplicationResultCheck.cpp179 } else if (const auto *ASE = dyn_cast<ArraySubscriptExpr>(E)) { in handlePointerOffsetting()
294 Result.Nodes.getNodeAs<ArraySubscriptExpr>("x"))
/llvm-project/clang/include/clang/AST/
H A DComputeDependence.h30 class ArraySubscriptExpr; variable
119 ExprDependence computeDependence(ArraySubscriptExpr *E);
/llvm-project/clang/test/AST/HLSL/
H A Dgroup_shared.hlsl10 // CHECK:ArraySubscriptExpr 0x{{[0-9a-f]+}} <col:4, col:7> 'groupshared float' lvalue
H A Dvector-constructors.hlsl24 // components using ArraySubscriptExpr
29 // CHECK-NEXT: ArraySubscriptExpr 0x{{[0-9a-fA-F]+}} <col:24, <invalid sloc>> 'float' lvalue
33 // CHECK-NEXT: ArraySubscriptExpr 0x{{[0-9a-fA-F]+}} <col:24, <invalid sloc>> 'float' lvalue
H A DRWBuffer-AST.hlsl
/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProBoundsConstantArrayIndexCheck.cpp76 if (const auto *ArraySubscriptE = dyn_cast<ArraySubscriptExpr>(Matched)) in check()
/llvm-project/libcxxabi/src/demangle/
H A DItaniumNodes.def70 NODE(ArraySubscriptExpr)
/llvm-project/llvm/include/llvm/Demangle/
H A DItaniumNodes.def70 NODE(ArraySubscriptExpr)
/llvm-project/clang/lib/AST/
H A DExprClassification.cpp252 if (cast<ArraySubscriptExpr>(E)->getBase()->getType()->isVectorType()) in ClassifyInternal()
253 return ClassifyInternal(Ctx, cast<ArraySubscriptExpr>(E)->getBase()); in ClassifyInternal()
257 auto *Base = cast<ArraySubscriptExpr>(E)->getBase()->IgnoreImpCasts(); in ClassifyInternal()
/llvm-project/clang/lib/Sema/
H A DSemaBPF.cpp37 isa<ArraySubscriptExpr>(Arg->IgnoreParens())); in isValidPreserveFieldInfoArg()
H A DSemaFixItUtils.cpp68 if (isa<ArraySubscriptExpr>(Expr) || in tryToFixConversion()
/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h45 class ArraySubscriptExpr; variable
436 til::SExpr *translateArraySubscriptExpr(const ArraySubscriptExpr *E,
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.cpp381 const auto *E = cast<ArraySubscriptExpr>(Init); in isAliasDecl()
688 bool ForLoopIndexUseVisitor::TraverseArraySubscriptExpr(ArraySubscriptExpr *E) { in TraverseArraySubscriptExpr()
/llvm-project/clang/lib/Analysis/
H A DReachableCode.cpp633 const ArraySubscriptExpr *ASE = cast<ArraySubscriptExpr>(S); in GetUnreachableLoc()

1234