| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | ExpandAutoType.cpp | 117 llvm::Optional<clang::QualType> DeducedType = in apply() local 121 if (DeducedType == llvm::None || (*DeducedType)->isUndeducedAutoType()) in apply() 125 if (isa<RecordType>(*DeducedType) && in apply() 126 cast<RecordType>(*DeducedType)->getDecl()->isLambda()) { in apply() 133 if (DeducedType->getTypePtr()->isFunctionPointerType()) { in apply() 137 std::string PrettyTypeName = printType(*DeducedType, in apply()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | ASTTests.cpp | 38 const char *DeducedType; in TEST() member 246 auto DeducedType = getDeducedType(AST.getASTContext(), *Location); in TEST() local 247 if (T.DeducedType == nullptr) { in TEST() 248 EXPECT_FALSE(DeducedType); in TEST() 250 ASSERT_TRUE(DeducedType); in TEST() 251 EXPECT_EQ(DeducedType->getAsString(), T.DeducedType); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | AST.cpp | 454 DeducedType = AT->desugar(); in VisitDeclaratorDecl() 481 DeducedType = AT->getDeducedType(); in VisitFunctionDecl() 486 DeducedType = DT->getUnderlyingType(); in VisitFunctionDecl() 488 DeducedType = D->getReturnType(); in VisitFunctionDecl() 506 DeducedType = DT->getUnderlyingType(); in VisitDecltypeTypeLoc() 507 DT = dyn_cast<DecltypeType>(DeducedType.getTypePtr()); in VisitDecltypeTypeLoc() 545 DeducedType = Args->get(ParamIndex).getAsType(); in VisitParmVarDecl() 559 QualType DeducedType; member in clang::clangd::__anona65afd330211::DeducedTypeVisitor 569 if (V.DeducedType.isNull()) in getDeducedType() 571 return V.DeducedType; in getDeducedType()
|
| H A D | DumpAST.cpp | 260 if (const auto *DT = dyn_cast<DeducedType>(TL.getTypePtr())) in getDetail()
|
| H A D | FindTarget.cpp | 379 void VisitDeducedType(const DeducedType *DT) { in add()
|
| H A D | XRefs.cpp | 1805 if (llvm::isa<DeducedType>(TL->getTypePtr())) in typeForNode()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | TypeNodes.td | 99 def DeducedType : TypeNode<Type, 1>; 100 def AutoType : TypeNode<DeducedType>; 101 def DeducedTemplateSpecializationType : TypeNode<DeducedType>;
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | mangle-ms-cxx11.cpp | 59 auto DeducedType = 30; variable
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplateDeduction.cpp | 1475 QualType DeducedType = A; in DeduceTemplateArgumentsByTypeMatch() local 1479 Qualifiers DeducedQs = DeducedType.getQualifiers(); in DeduceTemplateArgumentsByTypeMatch() 1492 if (ParamQs.hasObjCLifetime() && !DeducedType->isObjCLifetimeType() && in DeduceTemplateArgumentsByTypeMatch() 1493 !DeducedType->isDependentType()) { in DeduceTemplateArgumentsByTypeMatch() 1507 DeducedType = in DeduceTemplateArgumentsByTypeMatch() 1510 DeducedTemplateArgument NewDeduced(DeducedType, DeducedFromArrayBound); in DeduceTemplateArgumentsByTypeMatch() 4764 QualType DeducedType = Deduced[0].getAsType(); in DeduceAutoType() local 4767 DeducedType = BuildStdInitializerList(DeducedType, Loc); in DeduceAutoType() 4768 if (DeducedType.isNull()) in DeduceAutoType() 4778 *this, *AT, Type.getContainedAutoTypeLoc(), DeducedType); in DeduceAutoType() [all …]
|
| H A D | SemaLambda.cpp | 821 QualType DeducedType = deduceVarTypeFromInitializer( in buildLambdaInitCaptureInitialization() local 824 if (DeducedType.isNull()) in buildLambdaInitCaptureInitialization() 833 InitializedEntity::InitializeLambdaCapture(Id, DeducedType, Loc); in buildLambdaInitCaptureInitialization() 853 return DeducedType; in buildLambdaInitCaptureInitialization()
|
| H A D | SemaExprCXX.cpp | 1476 DeducedType *Deduced = Ty->getContainedDeducedType(); in BuildCXXTypeConstructExpr() 1508 QualType DeducedType; in BuildCXXTypeConstructExpr() local 1509 if (DeduceAutoType(TInfo, Deduce, DeducedType) == DAR_Failed) in BuildCXXTypeConstructExpr() 1513 if (DeducedType.isNull()) in BuildCXXTypeConstructExpr() 1516 Ty = DeducedType; in BuildCXXTypeConstructExpr() 2047 QualType DeducedType; in BuildCXXNew() local 2048 if (DeduceAutoType(AllocTypeInfo, Deduce, DeducedType) == DAR_Failed) in BuildCXXNew() 2052 if (DeducedType.isNull()) in BuildCXXNew() 2054 AllocType = DeducedType; in BuildCXXNew()
|
| H A D | SemaTemplate.cpp | 2150 QualType DeducedType = SemaRef.Context.getTypeDeclType(Primary); member 2251 QualType Result = SemaRef.BuildFunctionType(DeducedType, ParamTypes, Loc, in buildSimpleDeductionGuide() 2349 QualType ReturnType = DeducedType; in transformFunctionProtoType() 2483 if (!isCompleteType(Loc, Transform.DeducedType)) in DeclareImplicitDeductionGuides() 2544 Transform.buildSimpleDeductionGuide(Transform.DeducedType)) in DeclareImplicitDeductionGuides() 6862 DeducedType *DeducedT = ParamType->getContainedDeducedType(); in CheckTemplateArgument()
|
| H A D | SemaDecl.cpp | 12208 DeducedType *Deduced = Type->getContainedDeducedType(); in deduceVarTypeFromInitializer() 12300 QualType DeducedType; in deduceVarTypeFromInitializer() local 12301 if (DeduceAutoType(TSI, DeduceInit, DeducedType) == DAR_Failed) { in deduceVarTypeFromInitializer() 12325 !DeducedType.isNull() && DeducedType->isObjCIdType()) { in deduceVarTypeFromInitializer() 12330 return DeducedType; in deduceVarTypeFromInitializer() 12336 QualType DeducedType = deduceVarTypeFromInitializer( in DeduceVariableDeclarationType() local 12339 if (DeducedType.isNull()) { in DeduceVariableDeclarationType() 12344 VDecl->setType(DeducedType); in DeduceVariableDeclarationType() 14103 DeducedType *DT = D->getType()->getContainedDeducedType(); in BuildDeclaratorGroup()
|
| H A D | SemaInit.cpp | 10282 QualType DeducedType = in DeduceTemplateSpecializationFromInitializer() local 10286 << TSInfo->getTypeLoc().getSourceRange() << 1 << DeducedType; in DeduceTemplateSpecializationFromInitializer() 10297 return DeducedType; in DeduceTemplateSpecializationFromInitializer()
|
| H A D | SemaType.cpp | 3438 DeducedType *Deduced = T->getContainedDeducedType(); in GetDeclSpecTypeForDeclarator() 4553 if (auto *DT = T->getAs<DeducedType>()) { in GetFullTypeForDeclarator()
|
| H A D | SemaExpr.cpp | 4579 T = cast<DeducedType>(Ty)->getDeducedType(); in captureVariablyModifiedType()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXType.cpp | 476 TP = cast<DeducedType>(TP)->getDeducedType().getTypePtrOrNull(); in clang_getPointeeType() 524 TP = cast<DeducedType>(TP)->getDeducedType().getTypePtrOrNull(); in clang_getTypeDeclaration() 922 if (const auto *Deduced = dyn_cast<DeducedType>(QT)) in clang_Type_getAlignOf() 962 if (const auto *Deduced = dyn_cast<DeducedType>(QT)) in clang_Type_getSizeOf()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Type.cpp | 1805 Type *VisitDeducedType(const DeducedType *AT) { in VisitDeducedType() 1806 return const_cast<DeducedType*>(AT); in VisitDeducedType() 1888 DeducedType *Type::getContainedDeducedType() const { in getContainedDeducedType() 1889 return cast_or_null<DeducedType>( in getContainedDeducedType() 4463 : DeducedType(Auto, DeducedAsType, ExtraDependence, Canon) { in AutoType()
|
| H A D | ASTContext.cpp | 2350 const auto *A = cast<DeducedType>(T); in getTypeInfoImpl() 5703 QualType DeducedType, AutoTypeKeyword Keyword, bool IsDependent, in getAutoTypeInternal() argument 5706 if (DeducedType.isNull() && Keyword == AutoTypeKeyword::Auto && in getAutoTypeInternal() 5716 AutoType::Profile(ID, *this, DeducedType, Keyword, IsDependent, in getAutoTypeInternal() 5723 if (DeducedType.isNull()) { in getAutoTypeInternal() 5734 Canon = DeducedType.getCanonicalType(); in getAutoTypeInternal() 5742 DeducedType, Keyword, in getAutoTypeInternal() 5756 ASTContext::getAutoType(QualType DeducedType, AutoTypeKeyword Keyword, in getAutoType() argument 5761 assert((!IsDependent || DeducedType.isNull()) && in getAutoType() 5763 return getAutoTypeInternal(DeducedType, Keyword, IsDependent, IsPack, in getAutoType() [all …]
|
| H A D | ODRHash.cpp | 854 void VisitDeducedType(const DeducedType *T) { in VisitDeducedType()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTContext.h | 1570 getAutoTypeInternal(QualType DeducedType, AutoTypeKeyword Keyword, 1727 QualType getAutoType(QualType DeducedType, AutoTypeKeyword Keyword, 1740 QualType DeducedType,
|
| H A D | Type.h | 2344 DeducedType *getContainedDeducedType() const; 5073 class DeducedType : public Type { 5077 DeducedType(TypeClass TC, QualType DeducedAsType, 5107 class alignas(8) AutoType : public DeducedType, public llvm::FoldingSetNode { 5177 class DeducedTemplateSpecializationType : public DeducedType, 5187 : DeducedType(DeducedTemplateSpecialization, DeducedAsType,
|
| H A D | TypeLoc.h | 2098 DeducedType> {};
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchersInternal.h | 1021 if (const auto *S = dyn_cast<DeducedType>(&Node)) {
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.cpp | 3319 QualType DT = cast<DeducedType>(T)->getDeducedType(); in UnwrapTypeForDebugInfo()
|