| /llvm-project/lldb/unittests/Symbol/ |
| H A D | TestTypeSystemClang.cpp | 10 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 43 TypeSystemClang *m_ast = nullptr; 173 void VerifyEncodingAndBitSize(TypeSystemClang &clang_context, in VerifyEncodingAndBitSize() 240 TypeSystemClang ast("empty triple AST", llvm::Triple{}); in TEST_F() 259 TypeSystemClang::StartTagDeclarationDefinition(record_type); in TEST_F() 263 TypeSystemClang::CompleteTagDeclarationDefinition(record_type); in TEST_F() 267 TypeSystemClang ast("some name", llvm::Triple()); in TEST_F() 272 TypeSystemClang ast("", llvm::Triple()); in TEST_F() 334 auto *ed = TypeSystemClang::GetAsEnumDecl(enum_type); in TEST_F() 342 auto *rd = TypeSystemClang in TEST_F() [all...] |
| /llvm-project/lldb/unittests/TestingSupport/Symbol/ |
| H A D | ClangTestUtils.h | 18 inline clang::DeclarationName getDeclarationName(TypeSystemClang &ast, in getDeclarationName() 24 inline CompilerType createRecord(TypeSystemClang &ast, llvm::StringRef name) { in createRecord() 33 inline CompilerType createRecordWithField(TypeSystemClang &ast, in createRecordWithField() 39 TypeSystemClang::StartTagDeclarationDefinition(t); in createRecordWithField() 42 TypeSystemClang::CompleteTagDeclarationDefinition(t); in createRecordWithField() 49 std::shared_ptr<TypeSystemClang> m_ast; 52 : m_ast(std::make_shared<TypeSystemClang>(name, in TypeSystemClangHolder() 54 TypeSystemClang *GetAST() const { return m_ast.get(); } in GetAST() 62 TypeSystemClang *ast;
|
| /llvm-project/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 | 32 m_scratch_ast_ctx_sp = std::make_shared<TypeSystemClang>( in AppleObjCTypeEncodingParser() 69 AppleObjCTypeEncodingParser::ReadStructElement(TypeSystemClang &ast_ctx, in ReadStructElement() 84 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) { in BuildStruct() 90 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) { in BuildUnion() 96 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression, in BuildAggregate() 134 TypeSystemClang::StartTagDeclarationDefinition(union_type); in BuildAggregate() 143 TypeSystemClang::AddFieldToRecordType( in BuildAggregate() 148 TypeSystemClang::CompleteTagDeclarationDefinition(union_type); in BuildAggregate() 154 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) { in BuildArray() 173 TypeSystemClang &clang_ast_ctx, StringLexer &type, bool for_expression) { in BuildObjCObjectPointerType() [all …]
|
| /llvm-project/lldb/source/Plugins/TypeSystem/Clang/ |
| H A D | TypeSystemClang.cpp | 1 //===-- TypeSystemClang.cpp -----------------------------------------------===// 9 #include "TypeSystemClang.h" 95 LLDB_PLUGIN_DEFINE(TypeSystemClang) 318 typedef lldb_private::ThreadSafeDenseMap<clang::ASTContext *, TypeSystemClang *> 364 char TypeSystemClang::ID; 366 bool TypeSystemClang::IsOperator(llvm::StringRef name, in IsOperator() 448 TypeSystemClang::ConvertAccessTypeToAccessSpecifier(AccessType access) { in ConvertAccessTypeToAccessSpecifier() 497 TypeSystemClang::TypeSystemClang(llvm::StringRef name, in TypeSystemClang() 503 // TypeSystemClang in TypeSystemClang() 496 TypeSystemClang::TypeSystemClang(llvm::StringRef name, TypeSystemClang() function in TypeSystemClang 508 TypeSystemClang::TypeSystemClang(llvm::StringRef name, TypeSystemClang() function in TypeSystemClang [all...] |
| H A D | TypeSystemClang.h | 1 //===-- TypeSystemClang.h ---------------------------------------*- C++ -*-===// 68 /// The implementation of lldb::Type's m_payload field for TypeSystemClang. 103 /// a single associated TypeSystemClang instance that manages it. 105 /// The clang::ASTContext instance can either be created by TypeSystemClang 109 class TypeSystemClang : public TypeSystem { 122 /// Constructs a TypeSystemClang with an ASTContext using the given triple. 124 /// \param name The name for the TypeSystemClang (for logging purposes) 129 explicit TypeSystemClang(llvm::StringRef name, llvm::Triple triple); 131 /// Constructs a TypeSystemClang that uses an existing ASTContext internally. 134 /// \param name The name for the TypeSystemClang (fo [all...] |
| /llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | UdtRecordCompleter.cpp | 11 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 100 TypeSystemClang::RequireCompleteType(method_ct); in AddMethod() 166 auto decl = TypeSystemClang::AddVariableToRecordType( in visitKnownMember() 189 TypeSystemClang::SetIntegerInitializerForVariable( in visitKnownMember() 206 TypeSystemClang::SetFloatingInitializerForVariable( in visitKnownMember() 261 TypeSystemClang::RequireCompleteType(m_ast_builder.ToCompilerType(member_qt)); in visitKnownMember() 317 TypeSystemClang &clang = m_ast_builder.clang(); in complete() 325 TypeSystemClang::RequireCompleteType( in complete() 334 TypeSystemClang::BuildIndirectFields(m_derived_ct); in complete() 335 TypeSystemClang in complete() [all...] |
| H A D | PdbAstBuilder.h | 56 PdbAstBuilder(TypeSystemClang &clang); 87 TypeSystemClang &clang() { return m_clang; } in clang() 139 TypeSystemClang &m_clang;
|
| /llvm-project/lldb/source/Plugins/SymbolFile/PDB/ |
| H A D | PDBASTParser.cpp | 19 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 106 GetBuiltinTypeForPDBEncodingAndBitSize(TypeSystemClang &clang_ast, in GetBuiltinTypeForPDBEncodingAndBitSize() 365 PDBASTParser::PDBASTParser(lldb_private::TypeSystemClang &ast) : m_ast(ast) {} in PDBASTParser() 435 TypeSystemClang::StartTagDeclarationDefinition(clang_type); in CreateLLDBTypeFromPDBType() 441 TypeSystemClang::CompleteTagDeclarationDefinition(clang_type); in CreateLLDBTypeFromPDBType() 443 TypeSystemClang::SetHasExternalStorage(clang_type.GetOpaqueQualType(), in CreateLLDBTypeFromPDBType() 452 TypeSystemClang::SetHasExternalStorage(clang_type.GetOpaqueQualType(), in CreateLLDBTypeFromPDBType() 512 auto enum_decl = TypeSystemClang::GetAsEnumDecl(ast_enum); in CreateLLDBTypeFromPDBType() 525 if (TypeSystemClang::StartTagDeclarationDefinition(ast_enum)) in CreateLLDBTypeFromPDBType() 526 TypeSystemClang in CreateLLDBTypeFromPDBType() [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 | 16 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 327 TypeSystemClang *clang_type_system = in ParseCompileUnitFunctionForPDBFunc() 328 llvm::dyn_cast_or_null<TypeSystemClang>(ts.get()); in ParseCompileUnitFunctionForPDBFunc() 564 TypeSystemClang *clang_type_system = in ResolveTypeUID() 565 llvm::dyn_cast_or_null<TypeSystemClang>(ts.get()); in ResolveTypeUID() 600 TypeSystemClang *clang_ast_ctx = in GetDynamicArrayInfoForUID() 601 llvm::dyn_cast_or_null<TypeSystemClang>(ts.get()); 622 TypeSystemClang *clang_ast_ctx = in CompleteType() 623 llvm::dyn_cast_or_null<TypeSystemClang>(ts.get()); in CompleteType() 653 TypeSystemClang *clang_ast_ct in GetDeclForUID() [all...] |
| /llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangExternalASTSourceCallbacks.h | 12 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 33 ClangExternalASTSourceCallbacks(TypeSystemClang &ast) : m_ast(ast) {} in ClangExternalASTSourceCallbacks() 57 TypeSystemClang &GetTypeSystem() const { return m_ast; } 68 TypeSystemClang &m_ast;
|
| H A D | NameSearchContext.cpp | 22 auto lldb_ast = type.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>(); in AddVarDecl() 48 auto lldb_ast = type.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>(); in AddFunDecl() 120 TypeSystemClang::IsOperator(decl_name.getAsString().c_str(), op_kind)) { in AddFunDecl() 121 if (!TypeSystemClang::CheckOverloadedOperatorKindParameterCount( in AddFunDecl()
|
| H A D | ClangASTImporter.cpp | 27 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 36 CompilerType ClangASTImporter::CopyType(TypeSystemClang &dst_ast, in CopyType() 40 auto src_ast = src_type.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>(); in CopyType() 263 TypeSystemClang::GetCompleteDecl(m_src_ctx, original_decl); in ~CompleteTagDeclsScope() 306 CompilerType ClangASTImporter::DeportType(TypeSystemClang &dst, 310 auto src_ctxt = src_type.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>(); in DeportType() 513 TypeSystemClang::CompleteTagDeclarationDefinition(compiler_type); in CompleteType() 517 TypeSystemClang::SetHasExternalStorage(compiler_type.GetOpaqueQualType(), in CompleteType() 642 TypeSystemClang::GetASTContext(&dest_ctx)->getDisplayName(), record, in importRecordLayoutFromOrigin() 655 TypeSystemClang in importRecordLayoutFromOrigin() [all...] |
| H A D | NameSearchContext.h | 28 TypeSystemClang &m_clang_ts; 63 NameSearchContext(TypeSystemClang &clang_ts, in NameSearchContext()
|
| H A D | ClangExpressionParser.h | 34 class TypeSystemClang; variable 158 std::shared_ptr<TypeSystemClang> m_ast_context;
|
| H A D | ClangUtil.cpp | 12 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 22 if (!ct.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>()) in IsClangType() 32 assert(llvm::isa<TypeSystemClang>(decl.GetTypeSystem())); in GetDecl()
|
| H A D | ClangExpressionDeclMap.cpp | 19 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 204 TypeFromUser ClangExpressionDeclMap::DeportType(TypeSystemClang &target, in DeportType() 205 TypeSystemClang &source, in DeportType() 221 auto ast = parser_type.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>(); in AddPersistentVariable() 643 TypeSystemClang *ClangExpressionDeclMap::GetTypeSystemClang() { in GetTypeSystemClang() 657 return llvm::dyn_cast_or_null<TypeSystemClang>( in GetTypeSystemClang() 814 TypeSystemClang::DeclContextGetAsCXXMethodDecl(function_decl_ctx); in LookUpLldbClass() 919 TypeSystemClang::DeclContextGetAsObjCMethodDecl(function_decl_ctx); in LookUpLldbObjCClass() 967 if (TypeSystemClang::IsObjCClassType(self_clang_type)) { in LookUpLldbObjCClass() 970 if (!TypeSystemClang in LookUpLldbObjCClass() [all...] |
| H A D | ClangPersistentVariables.h | 25 class TypeSystemClang; variable 73 std::shared_ptr<TypeSystemClang> ctx);
|
| H A D | ClangASTSource.h | 64 void InstallASTContext(TypeSystemClang &ast_context); 310 /// A wrapper for TypeSystemClang::CopyType that sets a flag that 356 TypeSystemClang *GetTypeSystem() const { return m_clang_ast_context; } 390 /// The TypeSystemClang for m_ast_context. 391 TypeSystemClang *m_clang_ast_context;
|
| H A D | ClangExpressionDeclMap.h | 655 TypeFromUser DeportType(TypeSystemClang &target, TypeSystemClang &source, 658 TypeSystemClang *GetTypeSystemClang();
|
| H A D | ClangUserExpression.cpp | 27 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" 153 TypeSystemClang::DeclContextGetAsCXXMethodDecl(decl_context)) { in ScanContext() 182 TypeSystemClang::DeclContextGetAsObjCMethodDecl( in ScanContext() 215 TypeSystemClang::DeclContextGetAsFunctionDecl(decl_context)) { in ScanContext() 223 TypeSystemClang::DeclContextGetMetaData(decl_context, in ScanContext() 292 if (TypeSystemClang::IsObjCClassType(self_clang_type)) { in ScanContext() 294 } else if (TypeSystemClang::IsObjCObjectPointerType( in ScanContext()
|
| /llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFASTParserClang.cpp | 71 DWARFASTParserClang::DWARFASTParserClang(TypeSystemClang &ast) in DWARFASTParserClang() 297 clang::TagDecl *tag_decl = TypeSystemClang::GetAsTagDecl(type); in ParsedDWARFTypeAttributes() 313 static void PrepareContextToReceiveMembers(TypeSystemClang &ast, in ParsedDWARFTypeAttributes() 1014 TypeSystemClang::GetDeclContextForType(clang_type); in ParseCXXMethod() 1023 if (TypeSystemClang::StartTagDeclarationDefinition(clang_type)) { in ParseCXXMethod() 1030 TypeSystemClang::CompleteTagDeclarationDefinition(clang_type); in ParseCXXMethod() 1096 if (!TypeSystemClang::IsObjCObjectOrInterfaceType(type_clang_forward_type)) in ParseCXXMethod() 1197 if (!TypeSystemClang::IsCXXClassType(class_opaque_type)) in ParseSubroutine() 1202 TypeSystemClang::GetDeclContextForType(class_opaque_type), die, in ParseSubroutine() 1383 TypeSystemClang in ParseArrayType() [all...] |
| /llvm-project/lldb/unittests/SymbolFile/PDB/ |
| H A D | SymbolFilePDBTests.cpp | 57 TypeSystemClang::Initialize(); in SetUp() 66 TypeSystemClang::Initialize(); in TearDown() 372 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F() 391 llvm::dyn_cast_or_null<TypeSystemClang>(clang_ast_ctx_or_err->get()); in TEST_F() 427 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F() 446 llvm::dyn_cast_or_null<TypeSystemClang>(clang_ast_ctx_or_err->get()); in TEST_F() 471 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F() 495 EXPECT_TRUE(TypeSystemClang::IsEnumType(compiler_type.GetOpaqueQualType())); in TEST_F() 496 clang::EnumDecl *enum_decl = TypeSystemClang::GetAsEnumDecl(compiler_type); in TEST_F() 543 compiler_type.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>(); in TEST_F()
|
| /llvm-project/lldb/unittests/Expression/ |
| H A D | ClangExpressionDeclMapTest.cpp | 31 TypeSystemClang *m_scratch_context; 70 TypeSystemClang *target_ast;
|