Home
last modified time | relevance | path

Searched refs:TypeSystemClang (Results 1 – 25 of 67) sorted by relevance

123

/external/llvm-project/lldb/unittests/Symbol/
DTestTypeSystemClang.cpp31 new TypeSystemClang("test ASTContext", HostInfo::GetTargetTriple())); in SetUp()
37 std::unique_ptr<TypeSystemClang> m_ast;
163 void VerifyEncodingAndBitSize(TypeSystemClang &clang_context, in VerifyEncodingAndBitSize()
226 TypeSystemClang ast("some name", llvm::Triple()); in TEST_F()
231 TypeSystemClang ast("", llvm::Triple()); in TEST_F()
257 TypeSystemClang ast("enum_ast", HostInfo::GetTargetTriple()); in TEST_F()
273 TypeSystemClang ast("module_ast", HostInfo::GetTargetTriple()); in TEST_F()
278 auto *ed = TypeSystemClang::GetAsEnumDecl(enum_type); in TEST_F()
285 auto *rd = TypeSystemClang::GetAsRecordDecl(record_type); in TEST_F()
292 auto *cd = TypeSystemClang::GetAsObjCInterfaceDecl(class_type); in TEST_F()
[all …]
DTestClangASTImporter.cpp45 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()
/external/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
DAppleObjCTypeEncodingParser.h25 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,
DAppleObjCTypeEncodingParser.cpp28 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 …]
/external/llvm-project/lldb/unittests/TestingSupport/Symbol/
DClangTestUtils.h18 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;
/external/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
DTypeSystemClang.cpp87 LLDB_PLUGIN_DEFINE(TypeSystemClang)
313 typedef lldb_private::ThreadSafeDenseMap<clang::ASTContext *, TypeSystemClang *>
359 char TypeSystemClang::ID;
361 bool TypeSystemClang::IsOperator(llvm::StringRef name, in IsOperator()
442 TypeSystemClang::ConvertAccessTypeToAccessSpecifier(AccessType access) { in ConvertAccessTypeToAccessSpecifier()
550 TypeSystemClang::TypeSystemClang(llvm::StringRef name, in TypeSystemClang() function in TypeSystemClang
560 TypeSystemClang::TypeSystemClang(llvm::StringRef name, in TypeSystemClang() function in TypeSystemClang
570 TypeSystemClang::~TypeSystemClang() { Finalize(); } in ~TypeSystemClang()
572 ConstString TypeSystemClang::GetPluginNameStatic() { in GetPluginNameStatic()
576 ConstString TypeSystemClang::GetPluginName() { in GetPluginName()
[all …]
DTypeSystemClang.h106 class TypeSystemClang : public TypeSystem {
126 explicit TypeSystemClang(llvm::StringRef name, llvm::Triple triple);
133 explicit TypeSystemClang(llvm::StringRef name,
136 ~TypeSystemClang() override;
157 static TypeSystemClang *GetASTContext(clang::ASTContext *ast_ctx);
181 return TypeSystemClang::GetCompleteDecl(&getASTContext(), decl); in GetCompleteDecl()
1007 const TypeSystemClang::TemplateParameterInfos &template_param_infos);
1103 TypeSystemClang(const TypeSystemClang &);
1104 const TypeSystemClang &operator=(const TypeSystemClang &);
1112 class ScratchTypeSystemClang : public TypeSystemClang {
[all …]
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DNameSearchContext.cpp21 TypeSystemClang *lldb_ast = in AddVarDecl()
22 llvm::dyn_cast<TypeSystemClang>(type.GetTypeSystem()); in AddVarDecl()
48 TypeSystemClang *lldb_ast = in AddFunDecl()
49 llvm::dyn_cast<TypeSystemClang>(type.GetTypeSystem()); in AddFunDecl()
120 TypeSystemClang::IsOperator(decl_name.getAsString().c_str(), op_kind)) { in AddFunDecl()
121 if (!TypeSystemClang::CheckOverloadedOperatorKindParameterCount( in AddFunDecl()
DClangExternalASTSourceCallbacks.h26 ClangExternalASTSourceCallbacks(TypeSystemClang &ast) : m_ast(ast) {} in ClangExternalASTSourceCallbacks()
48 TypeSystemClang &GetTypeSystem() const { return m_ast; } in GetTypeSystem()
59 TypeSystemClang &m_ast;
DClangPersistentVariables.h22 class TypeSystemClang; variable
69 TypeSystemClang *ctx);
97 TypeSystemClang *m_context = nullptr;
DClangASTImporter.cpp31 CompilerType ClangASTImporter::CopyType(TypeSystemClang &dst_ast, in CopyType()
35 TypeSystemClang *src_ast = in CopyType()
36 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()
515 TypeSystemClang::CompleteTagDeclarationDefinition(compiler_type); in CompleteType()
519 TypeSystemClang::SetHasExternalStorage(compiler_type.GetOpaqueQualType(), in CompleteType()
564 if (!TypeSystemClang::GetCompleteDecl(decl_origin.ctx, decl_origin.decl)) in CompleteTagDecl()
[all …]
DNameSearchContext.h28 TypeSystemClang &m_clang_ts;
64 NameSearchContext(TypeSystemClang &clang_ts, in NameSearchContext()
DClangExpressionDeclMap.cpp184 TypeFromUser ClangExpressionDeclMap::DeportType(TypeSystemClang &target, in DeportType()
185 TypeSystemClang &source, in DeportType()
201 TypeSystemClang *ast = in AddPersistentVariable()
202 llvm::dyn_cast_or_null<TypeSystemClang>(parser_type.GetTypeSystem()); in AddPersistentVariable()
263 TypeSystemClang *context = ScratchTypeSystemClang::GetForTarget(*target); in AddPersistentVariable()
625 TypeSystemClang *ClangExpressionDeclMap::GetTypeSystemClang() { in GetTypeSystemClang()
639 return llvm::dyn_cast_or_null<TypeSystemClang>( in GetTypeSystemClang()
800 TypeSystemClang::DeclContextGetAsCXXMethodDecl(function_decl_ctx); in LookUpLldbClass()
900 TypeSystemClang::DeclContextGetAsObjCMethodDecl(function_decl_ctx); in LookUpLldbObjCClass()
969 if (TypeSystemClang::IsObjCClassType(self_clang_type)) { in LookUpLldbObjCClass()
[all …]
DClangExpressionParser.h34 class TypeSystemClang; variable
180 std::unique_ptr<TypeSystemClang> m_ast_context;
DClangUtil.cpp22 if (llvm::dyn_cast_or_null<TypeSystemClang>(ct.GetTypeSystem()) == nullptr) in IsClangType()
32 assert(llvm::isa<TypeSystemClang>(decl.GetTypeSystem())); in GetDecl()
DClangASTSource.h64 void InstallASTContext(TypeSystemClang &ast_context);
351 TypeSystemClang *GetTypeSystem() const { return m_clang_ast_context; } in GetTypeSystem()
381 TypeSystemClang *m_clang_ast_context;
DClangExpressionDeclMap.h621 TypeFromUser DeportType(TypeSystemClang &target, TypeSystemClang &source,
624 TypeSystemClang *GetTypeSystemClang();
/external/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
DPDBASTParser.cpp103 GetBuiltinTypeForPDBEncodingAndBitSize(TypeSystemClang &clang_ast, in GetBuiltinTypeForPDBEncodingAndBitSize()
356 PDBASTParser::PDBASTParser(lldb_private::TypeSystemClang &ast) : m_ast(ast) {} in PDBASTParser()
426 TypeSystemClang::StartTagDeclarationDefinition(clang_type); in CreateLLDBTypeFromPDBType()
432 TypeSystemClang::CompleteTagDeclarationDefinition(clang_type); in CreateLLDBTypeFromPDBType()
434 TypeSystemClang::SetHasExternalStorage(clang_type.GetOpaqueQualType(), in CreateLLDBTypeFromPDBType()
443 TypeSystemClang::SetHasExternalStorage(clang_type.GetOpaqueQualType(), in CreateLLDBTypeFromPDBType()
504 auto enum_decl = TypeSystemClang::GetAsEnumDecl(ast_enum); in CreateLLDBTypeFromPDBType()
517 if (TypeSystemClang::StartTagDeclarationDefinition(ast_enum)) in CreateLLDBTypeFromPDBType()
518 TypeSystemClang::CompleteTagDeclarationDefinition(ast_enum); in CreateLLDBTypeFromPDBType()
558 auto typedef_decl = TypeSystemClang::GetAsTypedefDecl(ast_typedef); in CreateLLDBTypeFromPDBType()
[all …]
DPDBASTParser.h26 class TypeSystemClang; variable
45 PDBASTParser(lldb_private::TypeSystemClang &ast);
106 lldb_private::TypeSystemClang &m_ast;
/external/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
DUdtRecordCompleter.cpp134 auto decl = TypeSystemClang::AddVariableToRecordType( in visitKnownMember()
157 TypeSystemClang::SetIntegerInitializerForVariable( in visitKnownMember()
174 TypeSystemClang::SetFloatingInitializerForVariable( in visitKnownMember()
231 clang::FieldDecl *decl = TypeSystemClang::AddFieldToRecordType( in visitKnownMember()
290 TypeSystemClang &clang = m_ast_builder.clang(); in complete()
294 TypeSystemClang::BuildIndirectFields(m_derived_ct); in complete()
295 TypeSystemClang::CompleteTagDeclarationDefinition(m_derived_ct); in complete()
DPdbAstBuilder.h54 PdbAstBuilder(ObjectFile &obj, PdbIndex &index, TypeSystemClang &clang);
83 TypeSystemClang &clang() { return m_clang; } in clang()
132 TypeSystemClang &m_clang;
/external/llvm-project/lldb/unittests/SymbolFile/PDB/
DSymbolFilePDBTests.cpp57 TypeSystemClang::Initialize(); in SetUp()
66 TypeSystemClang::Initialize(); in TearDown()
364 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F()
385 llvm::dyn_cast_or_null<TypeSystemClang>(&clang_ast_ctx_or_err.get()); in TEST_F()
417 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F()
439 llvm::dyn_cast_or_null<TypeSystemClang>(&clang_ast_ctx_or_err.get()); in TEST_F()
461 EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); in TEST_F()
485 EXPECT_TRUE(TypeSystemClang::IsEnumType(compiler_type.GetOpaqueQualType())); in TEST_F()
486 clang::EnumDecl *enum_decl = TypeSystemClang::GetAsEnumDecl(compiler_type); in TEST_F()
534 TypeSystemClang *clang_type_system = in TEST_F()
[all …]
/external/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
DDWARFASTParserClang.cpp60 DWARFASTParserClang::DWARFASTParserClang(TypeSystemClang &ast) in DWARFASTParserClang()
221 clang::TagDecl *tag_decl = TypeSystemClang::GetAsTagDecl(type); in ParseTypeFromClangModule()
234 bool started = TypeSystemClang::StartTagDeclarationDefinition(type); in ForcefullyCompleteType()
236 TypeSystemClang::CompleteTagDeclarationDefinition(type); in ForcefullyCompleteType()
238 auto &ts = llvm::cast<TypeSystemClang>(*type.GetTypeSystem()); in ForcefullyCompleteType()
249 if (!TypeSystemClang::IsCXXClassType(type)) in RequireCompleteType()
267 static void PrepareContextToReceiveMembers(TypeSystemClang &ast, in PrepareContextToReceiveMembers()
854 LinkDeclContextToDIE(TypeSystemClang::GetDeclContextForType(clang_type), die); in ParseEnum()
862 if (TypeSystemClang::StartTagDeclarationDefinition(clang_type)) { in ParseEnum()
869 TypeSystemClang::CompleteTagDeclarationDefinition(clang_type); in ParseEnum()
[all …]
DDWARFASTParserClang.h39 DWARFASTParserClang(lldb_private::TypeSystemClang &ast);
88 lldb_private::TypeSystemClang &m_ast;
104 lldb_private::TypeSystemClang::TemplateParameterInfos
108 lldb_private::TypeSystemClang::TemplateParameterInfos
/external/llvm-project/lldb/unittests/Expression/
DClangExpressionDeclMapTest.cpp29 std::unique_ptr<TypeSystemClang> m_scratch_context;
66 std::unique_ptr<TypeSystemClang> target_ast;

123