Home
last modified time | relevance | path

Searched refs:VLA (Results 1 – 12 of 12) sorted by relevance

/external/clang/lib/StaticAnalyzer/Checkers/
DVLASizeChecker.cpp86 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); in checkPreStmt() local
87 if (!VLA) in checkPreStmt()
91 const Expr *SE = VLA->getSizeExpr(); in checkPreStmt()
136 CharUnits EleSize = Ctx.getTypeSizeInChars(VLA->getElementType()); in checkPreStmt()
DCheckers.td68 HelpText<"Check for declarations of VLA of undefined or zero size">,
/external/clang/test/CodeGen/
D2006-01-13-StackSave.c8 int VLA[i]; in test() local
9 external(VLA); in test()
/external/clang/test/SemaObjC/
Dscope-check.m91 typedef int A[n]; // expected-note {{jump bypasses initialization of VLA typedef}}
/external/clang/test/CodeGenObjC/
Darc.m491 // Capture the VLA size.
499 // Allocate the VLA.
500 // CHECK-NEXT: [[VLA:%.*]] = alloca i8*, i64 [[DIM]], align 16
503 // CHECK-NEXT: [[T0:%.*]] = bitcast i8** [[VLA]] to i8*
508 // CHECK-NEXT: [[END:%.*]] = getelementptr inbounds i8** [[VLA]], i64 [[DIM]]
509 // CHECK-NEXT: [[EMPTY:%.*]] = icmp eq i8** [[VLA]], [[END]]
516 // CHECK-NEXT: [[EQ:%.*]] = icmp eq i8** [[CUR]], [[VLA]]
532 // Capture the VLA size.
540 // Allocate the VLA.
542 // CHECK-NEXT: [[VLA:%.*]] = alloca [3 x i8*], i64 [[T0]], align 16
[all …]
/external/clang/test/ARCMT/
Dcxx-checking.mm103 // It's okay to create a VLA of retainable types.
/external/clang/test/SemaObjCXX/
Darc-non-pod.mm103 // It's okay to create a VLA of retainable types.
/external/llvm/docs/
DGetElementPtr.rst313 How does VLA addressing work with GEPs?
319 VLA indices can be implemented as linearized indices. For example, an expression
327 library, which always presents VLA and non-VLA indexing in the same manner.
/external/clang/include/clang/Basic/
DDiagnosticGroups.td286 def VLA : DiagGroup<"vla">;
436 def GNU : DiagGroup<"gnu", [GNUDesignator, VLA]>;
DDiagnosticSemaKinds.td84 InGroup<VLA>;
3448 "jump bypasses initialization of VLA typedef">;
3450 "jump bypasses initialization of VLA type alias">;
/external/clang/test/Analysis/
Dmisc-ps.m126 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has zero size}}
131 …int vla[x]; // expected-warning{{Declared variable-length array (VLA) uses a garbage value as its …
862 // <rdar://problem/7593875> When handling sizeof(VLA) it leads to a hole in
868 int z[n > 10 ? 10 : n]; // VLA.
Dmisc-ps-region-store.m1168 // <rdar://problem/8424269> - Handle looking at the size of a VLA in