Home
last modified time | relevance | path

Searched refs:VariableArrayType (Results 1 – 25 of 52) sorted by relevance

123

/openbsd-src/gnu/llvm/clang/lib/AST/
H A DStmtIterator.cpp25 static inline const VariableArrayType *FindVA(const Type* t) { in FindVA()
27 if (const VariableArrayType *vat = dyn_cast<VariableArrayType>(vt)) in FindVA()
40 const VariableArrayType *p = getVAPtr(); in NextVA()
76 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) { in HandleDecl()
85 if (const VariableArrayType* VAPtr = in HandleDecl()
104 StmtIteratorBase::StmtIteratorBase(const VariableArrayType* t) in StmtIteratorBase()
110 if (const VariableArrayType* VAPtr = getVAPtr()) { in GetDeclExpr()
H A DTypePrinter.cpp551 void TypePrinter::printVariableArrayBefore(const VariableArrayType *T, in printVariableArrayBefore()
557 void TypePrinter::printVariableArrayAfter(const VariableArrayType *T, in printVariableArrayAfter()
565 if (T->getSizeModifier() == VariableArrayType::Static) in printVariableArrayAfter()
567 else if (T->getSizeModifier() == VariableArrayType::Star) in printVariableArrayAfter()
H A DType.cpp972 QualType VisitVariableArrayType(const VariableArrayType *T) { in VisitVariableArrayType()
2252 return !isa<VariableArrayType>(CanonicalType); in isConstantSizeType()
4488 if (isa<VariableArrayType>(arr) && in hasSizedVLAType()
4489 cast<VariableArrayType>(arr)->getSizeExpr()) in hasSizedVLAType()
H A DASTStructuralEquivalence.cpp822 const auto *Array1 = cast<VariableArrayType>(T1); in IsStructurallyEquivalent()
823 const auto *Array2 = cast<VariableArrayType>(T2); in IsStructurallyEquivalent()
H A DODRHash.cpp970 void VisitVariableArrayType(const VariableArrayType *T) { in VisitVariableArrayType()
H A DASTContext.cpp1755 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
3720 const auto *vat = cast<VariableArrayType>(ty); in getVariableArrayDecayedType()
3756 VariableArrayType(EltTy, Canon, NumElts, ASM, IndexTypeQuals, Brackets); in getVariableArrayType()
6024 if (const auto *VAT = dyn_cast<VariableArrayType>(AT)) { in getUnqualifiedArrayType()
6889 const auto *VAT = cast<VariableArrayType>(ATy); in getAsArrayType()
8293 assert((isa<VariableArrayType>(AT) || isa<IncompleteArrayType>(AT)) && in getObjCEncodingForTypeImpl()
10641 const VariableArrayType* LVAT = getAsVariableArrayType(LHS); in mergeTypes()
10642 const VariableArrayType* RVAT = getAsVariableArrayType(RHS); in mergeTypes()
10647 auto SizeFetch = [this](const VariableArrayType* VAT, in mergeTypes()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmtIterator.h25 class VariableArrayType; variable
44 StmtIteratorBase(const VariableArrayType *t);
60 const VariableArrayType *getVAPtr() const { in getVAPtr()
61 return reinterpret_cast<const VariableArrayType*>(RawVAPtr & ~Flags); in getVAPtr()
64 void setVAPtr(const VariableArrayType *P) { in setVAPtr()
91 StmtIteratorImpl(const VariableArrayType *t) : StmtIteratorBase(t) {} in StmtIteratorImpl()
133 StmtIterator(const VariableArrayType *t) in StmtIterator()
H A DTextNodeDumper.h308 void VisitVariableArrayType(const VariableArrayType *T);
H A DCanonicalType.h462 template<> struct CanProxyAdaptor<VariableArrayType>;
H A DASTContext.h197 mutable std::vector<VariableArrayType*> VariableArrayTypes;
2700 const VariableArrayType *getAsVariableArrayType(QualType T) const { in getAsVariableArrayType()
2701 return dyn_cast_or_null<VariableArrayType>(getAsArrayType(T)); in getAsVariableArrayType()
H A DASTNodeTraverser.h357 void VisitVariableArrayType(const VariableArrayType *T) { in VisitVariableArrayType()
H A DDecl.h3121 const VariableArrayType *getCapturedVLAType() const { in getCapturedVLAType()
3122 return hasCapturedVLAType() ? static_cast<const VariableArrayType *>( in getCapturedVLAType()
3128 void setCapturedVLAType(const VariableArrayType *VLAType);
H A DTypeProperties.td127 let Class = VariableArrayType in {
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp52 const VariableArrayType *VLA, SVal &ArraySize) const;
70 const VariableArrayType *VLA, in checkVLA()
74 const VariableArrayType *VLALast = nullptr; in checkVLA()
270 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(TypeToCheck); in checkPreStmt()
309 const VariableArrayType *VLA = C.getASTContext().getAsVariableArrayType( in checkPreStmt()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DScopeInfo.h556 const VariableArrayType *CapturedVLA;
614 Capture(IsVLACapture, const VariableArrayType *VLA, bool IsNested, in Capture()
651 const VariableArrayType *getCapturedVLAType() const { in getCapturedVLAType()
710 void addVLATypeCapture(SourceLocation Loc, const VariableArrayType *VLAType, in addVLATypeCapture()
732 bool isVLATypeCaptured(const VariableArrayType *VAT) const;
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DLiveVariables.cpp181 static const VariableArrayType *FindVA(QualType Ty) { in FindVA()
184 if (const VariableArrayType *VAT = dyn_cast<VariableArrayType>(VT)) in FindVA()
256 for (const VariableArrayType* VA = FindVA(VD->getType()); in Visit()
H A DCFG.cpp1390 static const VariableArrayType *FindVA(const Type *t) { in FindVA()
1392 if (const VariableArrayType *vat = dyn_cast<VariableArrayType>(vt)) in FindVA()
2948 for (const VariableArrayType *VA = FindVA(T); VA != nullptr; in VisitDeclSubExpr()
3042 for (const VariableArrayType* VA = FindVA(VD->getType().getTypePtr()); in VisitDeclSubExpr()
4306 for (const VariableArrayType *VA =FindVA(E->getArgumentType().getTypePtr()); in VisitUnaryExprOrTypeTraitExpr()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1990 const VariableArrayType *vla; in EmitNullInitialization()
1995 if (const VariableArrayType *vlaType = in EmitNullInitialization()
1996 dyn_cast_or_null<VariableArrayType>( in EmitNullInitialization()
2082 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2083 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts; in emitArrayLength()
2096 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2166 const VariableArrayType *vla = getContext().getAsVariableArrayType(type); in getVLASize()
2172 CodeGenFunction::getVLASize(const VariableArrayType *type) { in getVLASize()
2197 const VariableArrayType *vla = getContext().getAsVariableArrayType(type); in getVLAElements1D()
2203 CodeGenFunction::getVLAElements1D(const VariableArrayType *Vla) { in getVLAElements1D()
[all …]
H A DCodeGenTypes.cpp674 const VariableArrayType *A = cast<VariableArrayType>(Ty); in ConvertType()
H A DCodeGenFunction.h2227 void EmitLambdaVLACapture(const VariableArrayType *VAT, LValue LV) {
2791 VlaSizePair getVLAElements1D(const VariableArrayType *vla);
2798 VlaSizePair getVLASize(const VariableArrayType *vla);
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DScopeInfo.cpp227 bool CapturingScopeInfo::isVLATypeCaptured(const VariableArrayType *VAT) const { in isVLATypeCaptured()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DTypeNodes.td65 def VariableArrayType : TypeNode<ArrayType>;
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXType.cpp827 ET = cast<VariableArrayType> (TP)->getElementType(); in clang_getElementType()
885 ET = cast<VariableArrayType> (TP)->getElementType(); in clang_getArrayElementType()
/openbsd-src/gnu/llvm/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1043 const AstTypeMatcher<VariableArrayType> variableArrayType;
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchers.h6878 extern const AstTypeMatcher<VariableArrayType> variableArrayType;
6892 AST_MATCHER_P(VariableArrayType, hasSizeExpr, in AST_MATCHER_P() argument

123