Home
last modified time | relevance | path

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

/external/clang/lib/StaticAnalyzer/Checkers/
DVLASizeChecker.cpp46 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); in checkPreStmt() local
47 if (!VLA) in checkPreStmt()
51 const Expr* SE = VLA->getSizeExpr(); in checkPreStmt()
112 CharUnits EleSize = Ctx.getTypeSizeInChars(VLA->getElementType()); in checkPreStmt()
DCheckers.td76 HelpText<"Check for declarations of VLA of undefined or zero size">,
/external/llvm/test/FrontendC/
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.m496 // Capture the VLA size.
504 // Allocate the VLA.
505 // CHECK-NEXT: [[VLA:%.*]] = alloca i8*, i64 [[DIM]], align 16
508 // CHECK-NEXT: [[T0:%.*]] = bitcast i8** [[VLA]] to i8*
513 // CHECK-NEXT: [[END:%.*]] = getelementptr inbounds i8** [[VLA]], i64 [[DIM]]
514 // CHECK-NEXT: [[EMPTY:%.*]] = icmp eq i8** [[VLA]], [[END]]
521 // CHECK-NEXT: [[EQ:%.*]] = icmp eq i8** [[CUR]], [[VLA]]
537 // Capture the VLA size.
545 // Allocate the VLA.
547 // CHECK-NEXT: [[VLA:%.*]] = alloca [3 x i8*], i64 [[T0]], align 16
[all …]
/external/clang/include/clang/Basic/
DDiagnosticGroups.td189 def VLA : DiagGroup<"vla">;
295 def GNU : DiagGroup<"gnu", [GNUDesignator, VLA]>;
DDiagnosticSemaKinds.td39 InGroup<VLA>;
2493 "jump bypasses initialization of VLA typedef">;
2495 "jump bypasses initialization of VLA type alias">;
/external/clang/test/ARCMT/
Dcxx-checking.mm102 // 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/clang/test/Analysis/
Dmisc-ps.m132 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has zero size}}
137 …int vla[x]; // expected-warning{{Declared variable-length array (VLA) uses a garbage value as its …
847 // <rdar://problem/7593875> When handling sizeof(VLA) it leads to a hole in
853 int z[n > 10 ? 10 : n]; // VLA.
Dmisc-ps-region-store.m1166 // <rdar://problem/8424269> - Handle looking at the size of a VLA in