Home
last modified time | relevance | path

Searched refs:TypeDecl (Results 1 – 25 of 71) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp23 const NamedDecl *TypeDecl = nullptr; in getUnderlyingTypeDecl() local
27 TypeDecl = TypedefTy->getDecl(); in getUnderlyingTypeDecl()
29 TypeDecl = TagTy->getDecl(); in getUnderlyingTypeDecl()
32 TypeDecl = ObjCITy->getDecl(); in getUnderlyingTypeDecl()
35 if (TypeDecl && TypedefTy) { in getUnderlyingTypeDecl()
41 TypeDecl = TypedefDecl; in getUnderlyingTypeDecl()
44 return TypeDecl; in getUnderlyingTypeDecl()
57 if (TypeDecl) { in getSymbolReferenceForType()
59 TypeName = TypeDecl->getName().str(); in getSymbolReferenceForType()
61 clang::index::generateUSRForDecl(TypeDecl, TypeUSR); in getSymbolReferenceForType()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DForwardingReferenceOverloadCheck.cpp27 const NamedDecl *TypeDecl = in AST_MATCHER() local
29 return TypeDecl->isInStdNamespace() && in AST_MATCHER()
30 (TypeDecl->getName().equals("enable_if") || in AST_MATCHER()
31 TypeDecl->getName().equals("enable_if_t")); in AST_MATCHER()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DExceptionBaseclassCheck.cpp57 if (const auto *TypeDecl = Result.Nodes.getNodeAs<NamedDecl>("decl")) in check() local
58 diag(TypeDecl->getBeginLoc(), "type defined here", DiagnosticIDs::Note); in check()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.h20 class TypeDecl; variable
146 void MaybeRecordPersistentType(clang::TypeDecl *D);
H A DClangPersistentVariables.cpp79 if (clang::TypeDecl *tdecl = llvm::dyn_cast<clang::TypeDecl>(p.m_decl)) { in GetCompilerTypeFromPersistentDecl()
H A DASTResultSynthesizer.cpp418 typedef DeclContext::specific_decl_iterator<TypeDecl> TypeDeclIterator; in RecordPersistentTypes()
427 void ASTResultSynthesizer::MaybeRecordPersistentType(TypeDecl *D) { in MaybeRecordPersistentType()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp339 if (!isa<TypeDecl>(SD)) in isAcceptableNestedNameSpecifier()
344 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD)); in isAcceptableNestedNameSpecifier()
697 (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) || in BuildCXXNestedNameSpecifier()
699 Context.getTypeDeclType(cast<TypeDecl>(OuterDecl)), in BuildCXXNestedNameSpecifier()
700 Context.getTypeDeclType(cast<TypeDecl>(SD))))) { in BuildCXXNestedNameSpecifier()
738 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl())); in BuildCXXNestedNameSpecifier()
831 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) { in BuildCXXNestedNameSpecifier()
H A DSemaLookup.cpp387 assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying)); in isPreferredLookupResult()
533 if (TypeDecl *TD = dyn_cast<TypeDecl>(D)) { in resolveKind()
2554 if (const TypeDecl *TD = dyn_cast<TypeDecl>(ND->getUnderlyingDecl())) { in LookupQualifiedName()
2821 else if (const auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in DiagnoseAmbiguousLookup()
5544 if (!isa<TypeDecl>(D)) in ValidateCandidate()
5594 : isa<TypeDecl>(ND)) && in ValidateCandidate()
H A DSemaStmtAsm.cpp848 } else if (TypeDecl *TD = dyn_cast<TypeDecl>(FoundDecl)) in LookupInlineAsmField()
/llvm-project-15.0.7/clang/unittests/AST/
H A DSizelessTypesTest.cpp26 TypeDecl *Foo = cast<TypeDecl>(TU.lookup(&Ctx.Idents.get("foo")).front());
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXCursor.h42 class TypeDecl; variable
88 CXCursor MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc,
93 std::pair<const TypeDecl *, SourceLocation> getCursorTypeRef(CXCursor C);
H A DCXType.cpp240 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in clang_getCursorType()
1130 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in clang_getDeclObjCTypeEncoding()
H A DCXCursor.cpp921 CXCursor cxcursor::MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc, in MakeCursorTypeRef()
929 std::pair<const TypeDecl *, SourceLocation>
932 return std::make_pair(static_cast<const TypeDecl *>(C.data[0]), in getCursorTypeRef()
/llvm-project-15.0.7/clang/unittests/Interpreter/
H A DInterpreterTest.cpp220 static void *AllocateObject(TypeDecl *TD, Interpreter &Interp) {
284 TypeDecl *TD = cast<TypeDecl>(LookupSingleName(*Interp, "A"));
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHeuristicResolver.cpp27 const auto TypeFilter = [](const NamedDecl *D) { return isa<TypeDecl>(D); }; in __anon51be05cd0502()
188 if (const auto *TD = dyn_cast<TypeDecl>(Decls[0])) { in resolveDeclsToType()
H A DAST.h149 QualType declaredType(const TypeDecl *D);
H A DHover.cpp80 auto GetName = [](const TypeDecl *D) { in getLocalScope()
91 if (const TypeDecl *TD = dyn_cast<TypeDecl>(DC)) in getLocalScope()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DASTTests.cpp518 const TypeDecl *TargetDecl = nullptr; in TEST()
521 if (const auto *TD = llvm::dyn_cast<TypeDecl>(&ND)) { in TEST()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTContext.h422 TypeDecl *FILEDecl = nullptr;
425 TypeDecl *jmp_bufDecl = nullptr;
428 TypeDecl *sigjmp_bufDecl = nullptr;
431 TypeDecl *ucontext_tDecl = nullptr;
1238 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
1579 QualType getTypeDeclType(const TypeDecl *Decl,
1580 const TypeDecl *PrevDecl = nullptr) const {
1932 void setFILEDecl(TypeDecl *FILEDecl) { this->FILEDecl = FILEDecl; } in setFILEDecl()
1942 void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { in setjmp_bufDecl()
1954 void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { in setsigjmp_bufDecl()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DQualTypeNames.cpp46 const ASTContext &Ctx, const TypeDecl *TD,
360 const TypeDecl *TD, in createNestedNameSpecifier()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DASTConsumers.cpp110 if (auto *TD = dyn_cast<TypeDecl>(InnerD)) in print()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp230 Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); }); in VisitDependentNameTypeLoc()
H A DIndexDecl.cpp218 bool TypeOverride = isa<TypeDecl>(D); in gatherTemplatePseudoOverrides()
228 } else if (!isa<TypeDecl>(ND)) in gatherTemplatePseudoOverrides()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp78 bool VisitTypeDecl(TypeDecl *D) { in VisitTypeDecl()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp432 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()

123