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 liblldb_AppleObjCDeclVendor_h_
10 #define liblldb_AppleObjCDeclVendor_h_
11 
13 #include "lldb/Symbol/DeclVendor.h"
15 #include "lldb/lldb-private.h"
16 
17 namespace lldb_private {
18 
19 class AppleObjCExternalASTSource;
20 
22 public:
24 
25  uint32_t FindDecls(ConstString name, bool append, uint32_t max_matches,
26  std::vector<clang::NamedDecl *> &decls) override;
27 
28  clang::ExternalASTMerger::ImporterSource GetImporterSource() override;
29 
31 
32 private:
33  clang::ObjCInterfaceDecl *GetDeclForISA(ObjCLanguageRuntime::ObjCISA isa);
34  bool FinishDecl(clang::ObjCInterfaceDecl *decl);
35 
36  ObjCLanguageRuntime &m_runtime;
37  ClangASTContext m_ast_ctx;
38  ObjCLanguageRuntime::EncodingToTypeSP m_type_realizer_sp;
39  AppleObjCExternalASTSource *m_external_source;
40 
41  typedef llvm::DenseMap<ObjCLanguageRuntime::ObjCISA,
42  clang::ObjCInterfaceDecl *>
43  ISAToInterfaceMap;
44 
45  ISAToInterfaceMap m_isa_to_interface;
46 };
47 
48 } // namespace lldb_private
49 
50 #endif // liblldb_AppleObjCDeclVendor_h_
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
AppleObjCDeclVendor(ObjCLanguageRuntime &runtime)
uint32_t FindDecls(ConstString name, bool append, uint32_t max_matches, std::vector< clang::NamedDecl *> &decls) override
Look up the set of Decls that the DeclVendor currently knows about matching a given name...
A uniqued constant string class.
Definition: ConstString.h:38
clang::ExternalASTMerger::ImporterSource GetImporterSource() override
Interface for ExternalASTMerger.
std::shared_ptr< EncodingToType > EncodingToTypeSP