Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/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 DType.cpp1048 QualType VisitVariableArrayType(const VariableArrayType *T) { in VisitVariableArrayType()
2356 return !isa<VariableArrayType>(CanonicalType); in isConstantSizeType()
5006 if (isa<VariableArrayType>(arr) && in hasSizedVLAType()
5007 cast<VariableArrayType>(arr)->getSizeExpr()) in hasSizedVLAType()
H A DASTStructuralEquivalence.cpp917 const auto *Array1 = cast<VariableArrayType>(T1); in IsStructurallyEquivalent()
918 const auto *Array2 = cast<VariableArrayType>(T2); in IsStructurallyEquivalent()
H A DODRHash.cpp973 void VisitVariableArrayType(const VariableArrayType *T) { in VisitVariableArrayType()
H A DTypePrinter.cpp558 void TypePrinter::printVariableArrayBefore(const VariableArrayType *T, in printVariableArrayBefore()
564 void TypePrinter::printVariableArrayAfter(const VariableArrayType *T, in printVariableArrayAfter()
H A DASTContext.cpp1709 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
4093 const auto *vat = cast<VariableArrayType>(ty); in getVariableArrayDecayedType()
4125 auto *New = new (*this, alignof(VariableArrayType)) in getVariableArrayType()
4126 VariableArrayType(EltTy, Canon, NumElts, ASM, IndexTypeQuals, Brackets); in getVariableArrayType()
6482 if (const auto *VAT = dyn_cast<VariableArrayType>(AT)) { in getUnqualifiedArrayType()
7342 const auto *VAT = cast<VariableArrayType>(ATy); in getAsArrayType()
8764 assert((isa<VariableArrayType>(AT) || isa<IncompleteArrayType>(AT)) && in getObjCEncodingForTypeImpl()
11226 const VariableArrayType* LVAT = getAsVariableArrayType(LHS); in mergeTypes()
11227 const VariableArrayType* RVAT = getAsVariableArrayType(RHS); in mergeTypes()
11232 auto SizeFetch = [this](const VariableArrayType* VAT, in mergeTypes()
/freebsd/contrib/llvm-project/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.h328 void VisitVariableArrayType(const VariableArrayType *T);
H A DCanonicalType.h462 template<> struct CanProxyAdaptor<VariableArrayType>;
H A DASTContext.h201 mutable std::vector<VariableArrayType*> VariableArrayTypes;
2818 const VariableArrayType *getAsVariableArrayType(QualType T) const { in getAsVariableArrayType()
2819 return dyn_cast_or_null<VariableArrayType>(getAsArrayType(T)); in getAsVariableArrayType()
H A DASTNodeTraverser.h400 void VisitVariableArrayType(const VariableArrayType *T) { in VisitVariableArrayType()
H A DDecl.h3086 const VariableArrayType *CapturedVLAType;
3231 const VariableArrayType *getCapturedVLAType() const { in getCapturedVLAType()
3236 void setCapturedVLAType(const VariableArrayType *VLAType);
H A DTypeProperties.td153 let Class = VariableArrayType in {
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp49 const VariableArrayType *VLA, SVal &ArraySize) const;
69 const VariableArrayType *VLA, in checkVLA()
73 const VariableArrayType *VLALast = nullptr; in checkVLA()
282 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(TypeToCheck); in checkPreStmt()
321 const VariableArrayType *VLA = C.getASTContext().getAsVariableArrayType( in checkPreStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h579 const VariableArrayType *CapturedVLA;
643 Capture(IsVLACapture, const VariableArrayType *VLA, bool IsNested, in Capture()
680 const VariableArrayType *getCapturedVLAType() const { in getCapturedVLAType()
739 void addVLATypeCapture(SourceLocation Loc, const VariableArrayType *VLAType, in addVLATypeCapture()
761 bool isVLATypeCaptured(const VariableArrayType *VAT) const;
/freebsd/contrib/llvm-project/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.cpp1413 static const VariableArrayType *FindVA(const Type *t) { in FindVA()
1415 if (const VariableArrayType *vat = dyn_cast<VariableArrayType>(vt)) in FindVA()
2952 for (const VariableArrayType *VA = FindVA(T); VA != nullptr; in VisitDeclSubExpr()
3046 for (const VariableArrayType* VA = FindVA(VD->getType().getTypePtr()); in VisitDeclSubExpr()
4312 for (const VariableArrayType *VA =FindVA(E->getArgumentType().getTypePtr()); in VisitUnaryExprOrTypeTraitExpr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2135 const VariableArrayType *vla; in EmitNullInitialization()
2140 if (const VariableArrayType *vlaType = in EmitNullInitialization()
2141 dyn_cast_or_null<VariableArrayType>( in EmitNullInitialization()
2226 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2227 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts; in emitArrayLength()
2240 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2309 const VariableArrayType *vla = getContext().getAsVariableArrayType(type); in getVLASize()
2315 CodeGenFunction::getVLASize(const VariableArrayType *type) { in getVLASize()
2340 const VariableArrayType *vla = getContext().getAsVariableArrayType(type); in getVLAElements1D()
2346 CodeGenFunction::getVLAElements1D(const VariableArrayType *Vla) { in getVLAElements1D()
[all …]
H A DCodeGenTypes.cpp631 const VariableArrayType *A = cast<VariableArrayType>(Ty); in ConvertType()
H A DCGExprScalar.cpp2955 if (const VariableArrayType *vla in EmitScalarPrePostIncDec()
3322 if (const VariableArrayType *VAT = in VisitUnaryExprOrTypeTraitExpr()
3980 if (const VariableArrayType *vla in emitPointerArithmetic()
4369 if (const VariableArrayType *vla in EmitSub()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DScopeInfo.cpp229 bool CapturingScopeInfo::isVLATypeCaptured(const VariableArrayType *VAT) const { in isVLATypeCaptured()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td65 def VariableArrayType : TypeNode<ArrayType>;
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp408 isa<VariableArrayType>(ArrayType)) { in createDescriptor()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7172 extern const AstTypeMatcher<VariableArrayType> variableArrayType;
7186 AST_MATCHER_P(VariableArrayType, hasSizeExpr, in AST_MATCHER_P() argument
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp808 if (isa<VariableArrayType>(Ty)) in getStaticSize()

123