LLDB  mainline
AppleObjCDeclVendor.h
Go to the documentation of this file.
1 //===-- AppleObjCDeclVendor.h -----------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_OBJC_APPLEOBJCRUNTIME_APPLEOBJCDECLVENDOR_H
10 #define LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_OBJC_APPLEOBJCRUNTIME_APPLEOBJCDECLVENDOR_H
11 
12 #include "lldb/lldb-private.h"
13 
17 
18 namespace lldb_private {
19 
20 class AppleObjCExternalASTSource;
21 
23 public:
25 
26  static bool classof(const DeclVendor *vendor) {
27  return vendor->GetKind() == eAppleObjCDeclVendor;
28  }
29 
30  uint32_t FindDecls(ConstString name, bool append, uint32_t max_matches,
31  std::vector<CompilerDecl> &decls) override;
32 
34 
35 private:
36  clang::ObjCInterfaceDecl *GetDeclForISA(ObjCLanguageRuntime::ObjCISA isa);
37  bool FinishDecl(clang::ObjCInterfaceDecl *decl);
38 
43 
44  typedef llvm::DenseMap<ObjCLanguageRuntime::ObjCISA,
45  clang::ObjCInterfaceDecl *>
47 
49 };
50 
51 } // namespace lldb_private
52 
53 #endif // LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_OBJC_APPLEOBJCRUNTIME_APPLEOBJCDECLVENDOR_H
lldb_private::AppleObjCDeclVendor::GetDeclForISA
clang::ObjCInterfaceDecl * GetDeclForISA(ObjCLanguageRuntime::ObjCISA isa)
Definition: AppleObjCDeclVendor.cpp:147
lldb_private::ClangDeclVendor
Definition: ClangDeclVendor.h:21
lldb_private::ObjCLanguageRuntime
Definition: ObjCLanguageRuntime.h:34
lldb_private::AppleObjCDeclVendor::classof
static bool classof(const DeclVendor *vendor)
Definition: AppleObjCDeclVendor.h:26
lldb_private::ObjCLanguageRuntime::EncodingToTypeSP
std::shared_ptr< EncodingToType > EncodingToTypeSP
Definition: ObjCLanguageRuntime.h:220
lldb_private::AppleObjCDeclVendor::AppleObjCDeclVendor
AppleObjCDeclVendor(ObjCLanguageRuntime &runtime)
Definition: AppleObjCDeclVendor.cpp:134
lldb_private::AppleObjCDeclVendor::m_runtime
ObjCLanguageRuntime & m_runtime
Definition: AppleObjCDeclVendor.h:39
lldb_private::AppleObjCDeclVendor::FindDecls
uint32_t FindDecls(ConstString name, bool append, uint32_t max_matches, std::vector< CompilerDecl > &decls) override
Look up the set of Decls that the DeclVendor currently knows about matching a given name.
Definition: AppleObjCDeclVendor.cpp:527
lldb_private::AppleObjCDeclVendor
Definition: AppleObjCDeclVendor.h:22
TypeSystemClang.h
lldb_private::AppleObjCExternalASTSource
Definition: AppleObjCDeclVendor.cpp:25
lldb_private::DeclVendor::GetKind
DeclVendorKind GetKind() const
Definition: DeclVendor.h:33
lldb_private::AppleObjCDeclVendor::m_ast_ctx
TypeSystemClang m_ast_ctx
Definition: AppleObjCDeclVendor.h:40
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::AppleObjCDeclVendor::m_type_realizer_sp
ObjCLanguageRuntime::EncodingToTypeSP m_type_realizer_sp
Definition: AppleObjCDeclVendor.h:41
lldb_private::AppleObjCDeclVendor::m_isa_to_interface
ISAToInterfaceMap m_isa_to_interface
Definition: AppleObjCDeclVendor.h:48
lldb_private::AppleObjCDeclVendor::FinishDecl
bool FinishDecl(clang::ObjCInterfaceDecl *decl)
Definition: AppleObjCDeclVendor.cpp:399
ClangDeclVendor.h
lldb-private.h
uint32_t
lldb_private::DeclVendor
Definition: DeclVendor.h:20
lldb_private::ObjCLanguageRuntime::ObjCISA
lldb::addr_t ObjCISA
Definition: ObjCLanguageRuntime.h:42
ObjCLanguageRuntime.h
lldb_private::DeclVendor::eAppleObjCDeclVendor
@ eAppleObjCDeclVendor
Definition: DeclVendor.h:25
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::AppleObjCDeclVendor::ISAToInterfaceMap
llvm::DenseMap< ObjCLanguageRuntime::ObjCISA, clang::ObjCInterfaceDecl * > ISAToInterfaceMap
Definition: AppleObjCDeclVendor.h:46
lldb_private::TypeSystemClang
A TypeSystem implementation based on Clang.
Definition: TypeSystemClang.h:106
lldb_private::AppleObjCDeclVendor::m_external_source
AppleObjCExternalASTSource * m_external_source
Definition: AppleObjCDeclVendor.h:42