| /llvm-project-15.0.7/lldb/unittests/Symbol/ |
| H A D | TestTypeSystemClang.cpp | 37 std::unique_ptr<TypeSystemClang> m_ast; 229 TypeSystemClang ast("some name", llvm::Triple()); in TEST_F() 234 TypeSystemClang ast("", llvm::Triple()); in TEST_F() 281 auto *ed = TypeSystemClang::GetAsEnumDecl(enum_type); in TEST_F() 431 TypeSystemClang::GetAsRecordDecl(empty_derived); in TEST_F() 432 EXPECT_EQ(1u, TypeSystemClang::GetNumBaseClasses( in TEST_F() 455 EXPECT_EQ(1u, TypeSystemClang::GetNumBaseClasses( in TEST_F() 462 TypeSystemClang::TemplateParameterInfos infos; in TEST_F() 593 TypeSystemClang::TemplateParameterInfos infos; in TEST_F() 654 TypeSystemClang::TemplateParameterInfos infos; in TEST_F() [all …]
|
| H A D | TestClangASTImporter.cpp | 45 std::unique_ptr<TypeSystemClang> target_ast = clang_utils::createAST(); in TEST_F() 70 std::unique_ptr<TypeSystemClang> target_ast = clang_utils::createAST(); in TEST_F() 97 std::unique_ptr<TypeSystemClang> fwd_decl_source = clang_utils::createAST(); in TEST_F() 102 std::unique_ptr<TypeSystemClang> target = clang_utils::createAST(); in TEST_F() 122 std::unique_ptr<TypeSystemClang> target_ast = clang_utils::createAST(); in TEST_F() 144 std::unique_ptr<TypeSystemClang> target_ast = clang_utils::createAST(); in TEST_F() 169 std::unique_ptr<TypeSystemClang> target_ast = clang_utils::createAST(); in TEST_F() 191 std::unique_ptr<TypeSystemClang> temporary_ast = clang_utils::createAST(); in TEST_F() 198 std::unique_ptr<TypeSystemClang> target_ast = clang_utils::createAST(); in TEST_F() 215 std::unique_ptr<TypeSystemClang> target_ast = clang_utils::createAST(); in TEST_F()
|
| /llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCTypeEncodingParser.h | 25 CompilerType RealizeType(TypeSystemClang &ast_ctx, const char *name, 38 clang::QualType BuildType(TypeSystemClang &clang_ast_ctx, StringLexer &type, 42 clang::QualType BuildStruct(TypeSystemClang &ast_ctx, StringLexer &type, 45 clang::QualType BuildAggregate(TypeSystemClang &clang_ast_ctx, 49 clang::QualType BuildUnion(TypeSystemClang &ast_ctx, StringLexer &type, 52 clang::QualType BuildArray(TypeSystemClang &ast_ctx, StringLexer &type, 57 StructElement ReadStructElement(TypeSystemClang &ast_ctx, StringLexer &type, 60 clang::QualType BuildObjCObjectPointerType(TypeSystemClang &clang_ast_ctx,
|
| H A D | AppleObjCTypeEncodingParser.cpp | 28 m_scratch_ast_ctx_up = std::make_unique<TypeSystemClang>( in AppleObjCTypeEncodingParser() 65 AppleObjCTypeEncodingParser::ReadStructElement(TypeSystemClang &ast_ctx, in ReadStructElement() 80 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) { in BuildStruct() 86 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) { in BuildUnion() 92 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression, in BuildAggregate() 130 TypeSystemClang::StartTagDeclarationDefinition(union_type); in BuildAggregate() 139 TypeSystemClang::AddFieldToRecordType( in BuildAggregate() 144 TypeSystemClang::CompleteTagDeclarationDefinition(union_type); in BuildAggregate() 150 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) { in BuildArray() 168 TypeSystemClang &clang_ast_ctx, StringLexer &type, bool for_expression) { in BuildObjCObjectPointerType() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/TestingSupport/Symbol/ |
| H A D | ClangTestUtils.h | 18 inline clang::DeclarationName getDeclarationName(TypeSystemClang &ast, in getDeclarationName() 24 inline std::unique_ptr<TypeSystemClang> createAST() { in createAST() 25 return std::make_unique<TypeSystemClang>("test ASTContext", in createAST() 29 inline CompilerType createRecord(TypeSystemClang &ast, llvm::StringRef name) { in createRecord() 38 inline CompilerType createRecordWithField(TypeSystemClang &ast, in createRecordWithField() 44 TypeSystemClang::StartTagDeclarationDefinition(t); in createRecordWithField() 47 TypeSystemClang::CompleteTagDeclarationDefinition(t); in createRecordWithField() 56 std::unique_ptr<TypeSystemClang> ast;
|
| /llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/ |
| H A D | TypeSystemClang.cpp | 357 char TypeSystemClang::ID; 553 TypeSystemClang::TypeSystemClang(llvm::StringRef name, in TypeSystemClang() function in TypeSystemClang 563 TypeSystemClang::TypeSystemClang(llvm::StringRef name, in TypeSystemClang() function in TypeSystemClang 573 TypeSystemClang::~TypeSystemClang() { Finalize(); } in ~TypeSystemClang() 758 TypeSystemClang *TypeSystemClang::GetASTContext(clang::ASTContext *ast) { in GetASTContext() 1171 TypeSystemClang *ast = in AreTypesSame() 7323 TypeSystemClang *ast = in AddFieldToRecordType() 7843 TypeSystemClang *ast = in SetObjCSuperClass() 9778 TypeSystemClang *ast = llvm::cast<TypeSystemClang>(dc.GetTypeSystem()); in DeclContextGetMetaData() 9784 TypeSystemClang *ast = in DeclContextGetTypeSystemClang() [all …]
|
| H A D | TypeSystemClang.h | 105 class TypeSystemClang : public TypeSystem { 132 explicit TypeSystemClang(llvm::StringRef name, 135 ~TypeSystemClang() override; 154 static TypeSystemClang *GetASTContext(clang::ASTContext *ast_ctx); 1100 TypeSystemClang(const TypeSystemClang &); 1101 const TypeSystemClang &operator=(const TypeSystemClang &); 1109 class ScratchTypeSystemClang : public TypeSystemClang { 1157 static TypeSystemClang * 1169 static TypeSystemClang *GetForTarget(Target &target, in GetForTarget() 1201 return ClassID == &ID || TypeSystemClang::isA(ClassID); in isA() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | NameSearchContext.cpp | 22 TypeSystemClang *lldb_ast = in AddVarDecl() 23 llvm::dyn_cast<TypeSystemClang>(type.GetTypeSystem()); in AddVarDecl() 49 TypeSystemClang *lldb_ast = in AddFunDecl() 50 llvm::dyn_cast<TypeSystemClang>(type.GetTypeSystem()); in AddFunDecl() 122 TypeSystemClang::IsOperator(decl_name.getAsString().c_str(), op_kind)) { in AddFunDecl() 123 if (!TypeSystemClang::CheckOverloadedOperatorKindParameterCount( in AddFunDecl()
|
| H A D | ClangExternalASTSourceCallbacks.h | 26 ClangExternalASTSourceCallbacks(TypeSystemClang &ast) : m_ast(ast) {} in ClangExternalASTSourceCallbacks() 48 TypeSystemClang &GetTypeSystem() const { return m_ast; } in GetTypeSystem() 59 TypeSystemClang &m_ast;
|
| H A D | ClangASTImporter.cpp | 32 CompilerType ClangASTImporter::CopyType(TypeSystemClang &dst_ast, in CopyType() 36 TypeSystemClang *src_ast = in CopyType() 37 llvm::dyn_cast_or_null<TypeSystemClang>(src_type.GetTypeSystem()); in CopyType() 261 TypeSystemClang::GetCompleteDecl(m_src_ctx, original_decl); in ~CompleteTagDeclsScope() 304 CompilerType ClangASTImporter::DeportType(TypeSystemClang &dst, in DeportType() 308 TypeSystemClang *src_ctxt = in DeportType() 309 llvm::cast<TypeSystemClang>(src_type.GetTypeSystem()); in DeportType() 714 TypeSystemClang *ast = TypeSystemClang::GetASTContext(decl_origin.ctx); in GetDeclMetadata() 717 TypeSystemClang *ast = TypeSystemClang::GetASTContext(&decl->getASTContext()); in GetDeclMetadata() 1018 TypeSystemClang &to_ts = to_source.GetTypeSystem(); in RemapModule() [all …]
|
| H A D | ClangPersistentVariables.h | 24 class TypeSystemClang; variable 72 TypeSystemClang *ctx); 100 TypeSystemClang *m_context = nullptr;
|
| H A D | ClangExpressionDeclMap.h | 380 TypeSystemClang *GetScratchContext(Target &target) { in GetScratchContext() 654 TypeFromUser DeportType(TypeSystemClang &target, TypeSystemClang &source, 657 TypeSystemClang *GetTypeSystemClang();
|
| H A D | NameSearchContext.h | 28 TypeSystemClang &m_clang_ts; 64 NameSearchContext(TypeSystemClang &clang_ts, in NameSearchContext()
|
| H A D | ClangExpressionDeclMap.cpp | 222 TypeSystemClang *ast = in AddPersistentVariable() 284 TypeSystemClang *context = GetScratchContext(*target); in AddPersistentVariable() 650 TypeSystemClang *ClangExpressionDeclMap::GetTypeSystemClang() { in GetTypeSystemClang() 664 return llvm::dyn_cast_or_null<TypeSystemClang>( in GetTypeSystemClang() 972 if (TypeSystemClang::IsObjCClassType(self_clang_type)) { in LookUpLldbObjCClass() 975 if (!TypeSystemClang::IsObjCObjectPointerType(self_clang_type)) in LookUpLldbObjCClass() 999 TypeSystemClang *frame_ast = llvm::dyn_cast_or_null<TypeSystemClang>( in LookupLocalVarNamespace() 1155 TypeSystemClang *ast = llvm::dyn_cast_or_null<TypeSystemClang>( in SearchFunctionsInSymbolContexts() 1504 TypeSystemClang *clang_ast = llvm::dyn_cast_or_null<TypeSystemClang>( in GetVariableValue() 1624 TypeSystemClang *clang_ast = in AddOneVariable() [all …]
|
| H A D | ClangExpressionParser.h | 34 class TypeSystemClang; variable 180 std::unique_ptr<TypeSystemClang> m_ast_context;
|
| H A D | ClangUtil.cpp | 22 if (llvm::dyn_cast_or_null<TypeSystemClang>(ct.GetTypeSystem()) == nullptr) in IsClangType() 32 assert(llvm::isa<TypeSystemClang>(decl.GetTypeSystem())); in GetDecl()
|
| H A D | ClangASTSource.h | 64 void InstallASTContext(TypeSystemClang &ast_context); 353 TypeSystemClang *GetTypeSystem() const { return m_clang_ast_context; } in GetTypeSystem() 383 TypeSystemClang *m_clang_ast_context;
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/PDB/ |
| H A D | PDBASTParser.cpp | 105 GetBuiltinTypeForPDBEncodingAndBitSize(TypeSystemClang &clang_ast, in GetBuiltinTypeForPDBEncodingAndBitSize() 428 TypeSystemClang::StartTagDeclarationDefinition(clang_type); in CreateLLDBTypeFromPDBType() 506 auto enum_decl = TypeSystemClang::GetAsEnumDecl(ast_enum); in CreateLLDBTypeFromPDBType() 519 if (TypeSystemClang::StartTagDeclarationDefinition(ast_enum)) in CreateLLDBTypeFromPDBType() 684 if (TypeSystemClang::IsCXXClassType(element_ast_type) && in CreateLLDBTypeFromPDBType() 749 pointer_ast_type = TypeSystemClang::CreateMemberPointerType( in CreateLLDBTypeFromPDBType() 1225 TypeSystemClang::BuildIndirectFields(compiler_type); in CompleteTypeFromUDT() 1274 auto decl = TypeSystemClang::AddFieldToRecordType( in AddRecordMembers() 1290 auto decl = TypeSystemClang::AddVariableToRecordType( in AddRecordMembers() 1305 TypeSystemClang::SetIntegerInitializerForVariable( in AddRecordMembers() [all …]
|
| H A D | PDBASTParser.h | 26 class TypeSystemClang; variable 45 PDBASTParser(lldb_private::TypeSystemClang &ast); 106 lldb_private::TypeSystemClang &m_ast;
|
| H A D | SymbolFilePDB.cpp | 321 TypeSystemClang *clang_type_system = in ParseCompileUnitFunctionForPDBFunc() 322 llvm::dyn_cast_or_null<TypeSystemClang>(&type_system_or_err.get()); in ParseCompileUnitFunctionForPDBFunc() 571 TypeSystemClang *clang_type_system = in ResolveTypeUID() 572 llvm::dyn_cast_or_null<TypeSystemClang>(&type_system_or_err.get()); in ResolveTypeUID() 608 TypeSystemClang *clang_ast_ctx = in CompleteType() 609 llvm::dyn_cast_or_null<TypeSystemClang>(&type_system_or_err.get()); in CompleteType() 630 TypeSystemClang *clang_ast_ctx = in GetDeclForUID() 631 llvm::dyn_cast_or_null<TypeSystemClang>(&type_system_or_err.get()); in GetDeclForUID() 660 TypeSystemClang *clang_ast_ctx = in GetDeclContextForUID() 690 TypeSystemClang *clang_ast_ctx = in GetDeclContextContainingUID() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFASTParserClang.cpp | 62 DWARFASTParserClang::DWARFASTParserClang(TypeSystemClang &ast) in DWARFASTParserClang() 224 TypeSystemClang::CompleteTagDeclarationDefinition(type); in ForcefullyCompleteType() 237 if (!TypeSystemClang::IsCXXClassType(type)) in RequireCompleteType() 1364 TypeSystemClang *ast = in ParseInheritance() 1788 TypeSystemClang::GetAsRecordDecl(clang_type); in ParseStructureLikeDIE() 1894 return TypeSystemClang::AddObjCClassProperty( in Finalize() 2111 TypeSystemClang::BuildIndirectFields(clang_type); in CompleteRecordType() 2598 TypeSystemClang &ts = *llvm::cast<TypeSystemClang>(int_type.GetTypeSystem()); in ExtractIntFromFormValue() 2827 TypeSystemClang::AddFieldToRecordType( in ParseSingleMember() 2926 TypeSystemClang *ast = in ParseChildMembers() [all …]
|
| H A D | DWARFASTParserClang.h | 39 DWARFASTParserClang(lldb_private::TypeSystemClang &ast); 103 lldb_private::TypeSystemClang &m_ast; 118 lldb_private::TypeSystemClang::TemplateParameterInfos 122 lldb_private::TypeSystemClang::TemplateParameterInfos
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | UdtRecordCompleter.cpp | 152 auto decl = TypeSystemClang::AddVariableToRecordType( in visitKnownMember() 175 TypeSystemClang::SetIntegerInitializerForVariable( in visitKnownMember() 192 TypeSystemClang::SetFloatingInitializerForVariable( in visitKnownMember() 251 clang::FieldDecl *decl = TypeSystemClang::AddFieldToRecordType( in visitKnownMember() 307 TypeSystemClang &clang = m_ast_builder.clang(); in complete() 311 TypeSystemClang::BuildIndirectFields(m_derived_ct); in complete() 312 TypeSystemClang::CompleteTagDeclarationDefinition(m_derived_ct); in complete()
|
| H A D | PdbAstBuilder.h | 54 PdbAstBuilder(ObjectFile &obj, PdbIndex &index, TypeSystemClang &clang); 85 TypeSystemClang &clang() { return m_clang; } in clang() 140 TypeSystemClang &m_clang;
|
| /llvm-project-15.0.7/lldb/unittests/SymbolFile/PDB/ |
| H A D | SymbolFilePDBTests.cpp | 57 TypeSystemClang::Initialize(); in SetUp() 66 TypeSystemClang::Initialize(); in TearDown() 373 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F() 394 llvm::dyn_cast_or_null<TypeSystemClang>(&clang_ast_ctx_or_err.get()); in TEST_F() 426 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F() 448 llvm::dyn_cast_or_null<TypeSystemClang>(&clang_ast_ctx_or_err.get()); in TEST_F() 470 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F() 494 EXPECT_TRUE(TypeSystemClang::IsEnumType(compiler_type.GetOpaqueQualType())); in TEST_F() 495 clang::EnumDecl *enum_decl = TypeSystemClang::GetAsEnumDecl(compiler_type); in TEST_F() 543 TypeSystemClang *clang_type_system = in TEST_F() [all …]
|