| /llvm-project-15.0.7/clang/lib/ExtractAPI/ |
| H A D | TypedefUnderlyingTypeResolver.cpp | 23 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 D | ForwardingReferenceOverloadCheck.cpp | 27 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 D | ExceptionBaseclassCheck.cpp | 57 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 D | ASTResultSynthesizer.h | 20 class TypeDecl; variable 146 void MaybeRecordPersistentType(clang::TypeDecl *D);
|
| H A D | ClangPersistentVariables.cpp | 79 if (clang::TypeDecl *tdecl = llvm::dyn_cast<clang::TypeDecl>(p.m_decl)) { in GetCompilerTypeFromPersistentDecl()
|
| H A D | ASTResultSynthesizer.cpp | 418 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 D | SemaCXXScopeSpec.cpp | 339 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 D | SemaLookup.cpp | 387 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 D | SemaStmtAsm.cpp | 848 } else if (TypeDecl *TD = dyn_cast<TypeDecl>(FoundDecl)) in LookupInlineAsmField()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | SizelessTypesTest.cpp | 26 TypeDecl *Foo = cast<TypeDecl>(TU.lookup(&Ctx.Idents.get("foo")).front());
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXCursor.h | 42 class TypeDecl; variable 88 CXCursor MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc, 93 std::pair<const TypeDecl *, SourceLocation> getCursorTypeRef(CXCursor C);
|
| H A D | CXType.cpp | 240 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 D | CXCursor.cpp | 921 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 D | InterpreterTest.cpp | 220 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 D | HeuristicResolver.cpp | 27 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 D | AST.h | 149 QualType declaredType(const TypeDecl *D);
|
| H A D | Hover.cpp | 80 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 D | ASTTests.cpp | 518 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 D | ASTContext.h | 422 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 D | QualTypeNames.cpp | 46 const ASTContext &Ctx, const TypeDecl *TD, 360 const TypeDecl *TD, in createNestedNameSpecifier()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ASTConsumers.cpp | 110 if (auto *TD = dyn_cast<TypeDecl>(InnerD)) in print()
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexTypeSourceInfo.cpp | 230 Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); }); in VisitDependentNameTypeLoc()
|
| H A D | IndexDecl.cpp | 218 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 D | ObjectFilePCHContainerOperations.cpp | 78 bool VisitTypeDecl(TypeDecl *D) { in VisitTypeDecl()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelection.cpp | 432 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()
|