Home
last modified time | relevance | path

Searched refs:getTypePtr (Results 1 – 25 of 160) sorted by relevance

1234567

/llvm-project-15.0.7/clang/include/clang/AST/
H A DTypeLoc.h136 const Type *getTypePtr() const { in getTypePtr() function
256 const Type *getTypePtr() const { in getTypePtr() function
409 const TypeClass *getTypePtr() const { in getTypePtr() function
502 const TypeClass *getTypePtr() const { in getTypePtr() function
684 return getTypePtr()->getDecl(); in getTypedefNameDecl()
696 return getTypePtr()->getDecl(); in getDecl()
707 return getTypePtr()->getDecl(); in getDecl()
866 return getTypePtr()->getAttrKind(); in getAttrKind()
1078 return getTypePtr()->getDecl(); in getIFaceDecl()
1301 return getTypePtr()->getClass(); in getClass()
[all …]
H A DCanonicalType.h83 const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); } in getTypePtr() function
230 return CanQualType::CreateUnsafe(this->getTypePtr()->Accessor()); \
234 Type Accessor() const { return this->getTypePtr()->Accessor(); }
245 const T *getTypePtr() const { return Stored.getTypePtr(); } in getTypePtr() function
373 return Val.getTypePtr();
510 return CanQualType::CreateUnsafe(this->getTypePtr()->getParamType(i));
520 return param_type_iterator(this->getTypePtr()->param_type_begin());
524 return param_type_iterator(this->getTypePtr()->param_type_end());
644 assert((Other.isNull() || isa<T>(Other.getTypePtr())) &&
660 if (isa<U>(Stored.getTypePtr()))
[all …]
H A DRecursiveASTVisitor.h1159 if (T->getBaseType().getTypePtr() != T)
1228 TRY_TO(TraverseType(TL.getTypePtr()->getElementType()));
1288 TRY_TO(TraverseType(TL.getTypePtr()->getPointeeType()));
1294 if (TL.getTypePtr()->getSizeExpr())
1295 TRY_TO(TraverseStmt(TL.getTypePtr()->getSizeExpr()));
1296 TRY_TO(TraverseType(TL.getTypePtr()->getElementType()));
1305 if (TL.getTypePtr()->getSizeExpr())
1306 TRY_TO(TraverseStmt(TL.getTypePtr()->getSizeExpr()));
1335 const FunctionProtoType *T = TL.getTypePtr();
1455 if (TL.getTypePtr()->getBaseType().getTypePtr() != TL.getTypePtr())
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DQualTypeNames.cpp151 return QT.getTypePtr(); in getFullyQualifiedTemplateType()
183 return QT.getTypePtr(); in getFullyQualifiedTemplateType()
384 if (isa<PointerType>(QT.getTypePtr())) { in getFullyQualifiedType()
401 QT = Ctx.getMemberPointerType(QT, Class.getTypePtr()); in getFullyQualifiedType()
409 if (isa<ReferenceType>(QT.getTypePtr())) { in getFullyQualifiedType()
427 if (isa<UsingType>(QT.getTypePtr())) { in getFullyQualifiedType()
436 while (isa<SubstTemplateTypeParmType>(QT.getTypePtr())) { in getFullyQualifiedType()
451 QT = QualType(QT.getTypePtr(), 0); in getFullyQualifiedType()
465 if (isa<const TemplateSpecializationType>(QT.getTypePtr()) || in getFullyQualifiedType()
466 isa<const RecordType>(QT.getTypePtr())) { in getFullyQualifiedType()
[all …]
H A DStmtIterator.cpp31 t = vt->getElementType().getTypePtr(); in FindVA()
41 p = FindVA(p->getElementType().getTypePtr()); in NextVA()
76 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) { in HandleDecl()
86 FindVA(TD->getUnderlyingType().getTypePtr())) { in HandleDecl()
H A DTypeLoc.cpp200 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr() in getBeginLoc()
248 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()->hasTrailingReturn()) in getEndLoc()
328 switch (getTypePtr()->getKind()) { in getWrittenTypeSpec()
489 getTypePtr()->getTypeArgsAsWritten()[i], Loc)); in initializeLocal()
528 Context.getTrivialTypeSourceInfo(getTypePtr()->getBaseType(), Loc)); in initializeLocal()
535 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); in initializeLocal()
543 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); in initializeLocal()
552 if (getTypePtr()->getQualifier()) { in initializeLocal()
554 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); in initializeLocal()
564 getTypePtr()->getArgs(), in initializeLocal()
[all …]
H A DType.cpp74 const Type* ty = getTypePtr(); in getBaseTypeIdentifier()
372 return ATy->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual()
381 ->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual()
516 Cur = Ty->desugar().getTypePtr(); \ in getAsSugar()
549 Cur = Ty->desugar().getTypePtr(); \ in getUnqualifiedDesugaredType()
1801 return Visit(T.getTypePtr()); in Visit()
2171 const Type *T = CanonicalType.getTypePtr(); in getScalarTypeKind()
2702 const Type *ty = getTypePtr(); in isCXX11PODType()
3168 (!getTypePtr()->isDependentType() && !getTypePtr()->isRecordType())) in getNonLValueExprType()
3842 return get(T.getTypePtr()); in get()
[all …]
H A DLinkage.h154 return computeTypeLinkageInfo(T.getTypePtr()); in computeTypeLinkageInfo()
161 return getTypeLinkageAndVisibility(T.getTypePtr()); in getTypeLinkageAndVisibility()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DExpectedTypes.cpp28 return Ctx.BoolTy.getTypePtr(); in toEquivClass()
30 return Ctx.IntTy.getTypePtr(); // All integers are equivalent. in toEquivClass()
32 return Ctx.FloatTy.getTypePtr(); // All floats are equivalent. in toEquivClass()
37 .getTypePtr(); in toEquivClass()
40 return T.getTypePtr(); in toEquivClass()
H A DHeuristicResolver.cpp145 CalleeType = FnTypePtr->getPointeeType().getTypePtr(); in resolveTypeOfCallExpr()
148 resolveTypeToRecordDecl(FnType->getReturnType().getTypePtr())) { in resolveTypeOfCallExpr()
222 return E->getType().getTypePtr(); in resolveExprToType()
H A DDumpAST.cpp258 if (const auto *TT = dyn_cast<TagType>(TL.getTypePtr())) in getDetail()
260 if (const auto *DT = dyn_cast<DeducedType>(TL.getTypePtr())) in getDetail()
263 if (const auto *BT = dyn_cast<BuiltinType>(TL.getTypePtr())) in getDetail()
265 if (const auto *TTPT = dyn_cast<TemplateTypeParmType>(TL.getTypePtr())) in getDetail()
267 if (const auto *TT = dyn_cast<TypedefType>(TL.getTypePtr())) in getDetail()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypeChecker.cpp77 QualType::print(DynamicType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
80 QualType::print(StaticType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
115 QualType::print(TrackedType.getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
121 QualType::print(ExplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode()
124 QualType::print(ExplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
129 QualType::print(ImplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode()
132 QualType::print(ImplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
H A DCastToStructChecker.cpp45 const PointerType *OrigPTy = dyn_cast<PointerType>(OrigTy.getTypePtr()); in VisitCastExpr()
46 const PointerType *ToPTy = dyn_cast<PointerType>(ToTy.getTypePtr()); in VisitCastExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIsolateDeclarationCheck.cpp64 Pointee->getReturnType().IgnoreParens().getTypePtr(), ++Indirections); in countIndirections()
71 return countIndirections(AT->getElementType().IgnoreParens().getTypePtr(), in countIndirections()
75 return countIndirections(T->getPointeeType().IgnoreParens().getTypePtr(), in countIndirections()
87 return typeIsMemberPointer(T->getPointeeType().getTypePtr()); in typeIsMemberPointer()
134 if (typeIsMemberPointer(FirstDecl->getType().IgnoreParens().getTypePtr())) in declRanges()
143 countIndirections(FirstDecl->getType().IgnoreParens().getTypePtr()), SM, in declRanges()
184 if (typeIsMemberPointer(CurrentDecl->getType().IgnoreParens().getTypePtr())) in declRanges()
H A DConstReturnTypeCheck.cpp61 return isa<TypeOfType>(Node.getTypePtr()); in AST_MATCHER()
65 return isa<TypeOfExprType>(Node.getTypePtr()); in AST_MATCHER()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DAvoidCArraysCheck.cpp24 const clang::Type *TypeNode = Node.getTypePtr(); in AST_MATCHER_P()
63 << ArrayType->getTypePtr()->isVariableArrayType(); in check()
H A DUseTrailingReturnTypeCheck.cpp52 TL.getAs<RecordTypeLoc>().getTypePtr()->getDecl()->getName())) in TraverseTypeLoc()
57 TL.getAs<EnumTypeLoc>().getTypePtr()->getDecl()->getName())) in TraverseTypeLoc()
62 .getTypePtr() in TraverseTypeLoc()
70 TL.getAs<TypedefTypeLoc>().getTypePtr()->getDecl()->getName())) in TraverseTypeLoc()
75 .getTypePtr() in TraverseTypeLoc()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DFixItHintUtils.cpp34 static bool isValueType(QualType QT) { return isValueType(QT.getTypePtr()); } in isValueType()
37 isa<MemberPointerType>(QT.getTypePtr()); in isMemberOrFunctionPointer()
209 ParenStrippedType->getPointeeType().getTypePtr(), in addQualifierToVarDecl()
220 return changePointer(Var, Qualifier, AT->getPointeeType().getTypePtr(), in addQualifierToVarDecl()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp59 auto *T = QT.getTypePtr(); in isRefcountedStringsHack()
168 const auto *ArgType = V->getType().getTypePtr(); in visitVarDecl()
191 MaybeGuardian->getType().getTypePtr(); in visitVarDecl()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.cpp186 Desc = createDescriptor(D, Ty.getTypePtr(), IsConst, IsTemporary); in createGlobal()
296 Desc = createDescriptor(FD, FT.getTypePtr(), IsConst, in getOrCreateRecord()
338 createDescriptor(D, ElemTy.getTypePtr(), IsConst, IsTemporary); in createDescriptor()
357 createDescriptor(D, ElemTy.getTypePtr(), IsConst, IsTemporary); in createDescriptor()
368 const Type *InnerTy = AT->getValueType().getTypePtr(); in createDescriptor()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp165 auto *T = TL.getTypePtr(); in VisitTemplateSpecializationTypeLoc()
177 if (!TraverseTemplateName(TL.getTypePtr()->getTemplateName())) in TraverseTemplateSpecializationTypeLoc()
195 auto *T = TL.getTypePtr(); in VisitDeducedTemplateSpecializationTypeLoc()
210 const DependentNameType *DNT = TL.getTypePtr(); in VisitDependentNameTypeLoc()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/mpi/
H A DBufferDerefCheck.cpp54 const Type *ArgType = ArgExpr->IgnoreImpCasts()->getType().getTypePtr(); in check()
93 BufferType = BufferType->getPointeeType().getTypePtr(); in checkBuffers()
H A DTypeMismatchCheck.cpp155 Complex->getElementType().getTypePtr()->getAs<BuiltinType>(); in isCComplexTypeMatching()
187 Template->getArg(0).getAsType().getTypePtr()->getAs<BuiltinType>(); in isCXXComplexTypeMatching()
232 return QT.getTypePtr()->getPointeeOrArrayElementType(); in argumentType()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenTypes.cpp93 const Type *Ty = Context.getCanonicalType(T).getTypePtr(); in ConvertTypeForMem()
144 const Type *Key = CGT.getContext().getTagDeclType(RD).getTypePtr(); in isSafeToConvert()
290 if (RecordDeclTypes.count(Context.getTagDeclType(RD).getTypePtr())) in UpdateCompletedType()
303 const Type *Ty = T.getTypePtr(); in RefreshTypeCacheForClass()
336 const Type *Ty = QFT.getTypePtr(); in ConvertFunctionTypeInternal()
337 const FunctionType *FT = cast<FunctionType>(QFT.getTypePtr()); in ConvertFunctionTypeInternal()
404 const Type *Ty = T.getTypePtr(); in ConvertType()
847 const Type *Key = Context.getTagDeclType(RD).getTypePtr(); in ConvertRecordDeclType()
909 const Type *Key = Context.getTagDeclType(RD).getTypePtr(); in getCGRecordLayout()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DForwardingReferenceOverloadCheck.cpp33 const Type *BaseType = Node.getTypePtr(); in AST_MATCHER()
36 BaseType = BaseType->getPointeeType().getTypePtr(); in AST_MATCHER()

1234567