[OpenACC] Implement 'device_type' for 'data' construct
[llvm-project.git] / lldb / source / Plugins / LanguageRuntime / ObjC / AppleObjCRuntime / AppleObjCDeclVendor.h
blob3bb0f77f6bde4169590aa999bfbbb7a579263bca
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 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_OBJC_APPLEOBJCRUNTIME_APPLEOBJCDECLVENDOR_H
10 #define LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_OBJC_APPLEOBJCRUNTIME_APPLEOBJCDECLVENDOR_H
12 #include "lldb/lldb-private.h"
14 #include "Plugins/ExpressionParser/Clang/ClangDeclVendor.h"
15 #include "Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h"
16 #include "Plugins/TypeSystem/Clang/TypeSystemClang.h"
18 namespace lldb_private {
20 class AppleObjCExternalASTSource;
22 class AppleObjCDeclVendor : public ClangDeclVendor {
23 public:
24 AppleObjCDeclVendor(ObjCLanguageRuntime &runtime);
26 static bool classof(const DeclVendor *vendor) {
27 return vendor->GetKind() == eAppleObjCDeclVendor;
30 uint32_t FindDecls(ConstString name, bool append, uint32_t max_matches,
31 std::vector<CompilerDecl> &decls) override;
33 friend class AppleObjCExternalASTSource;
35 private:
36 clang::ObjCInterfaceDecl *GetDeclForISA(ObjCLanguageRuntime::ObjCISA isa);
37 bool FinishDecl(clang::ObjCInterfaceDecl *decl);
39 ObjCLanguageRuntime &m_runtime;
40 std::shared_ptr<TypeSystemClang> m_ast_ctx;
41 ObjCLanguageRuntime::EncodingToTypeSP m_type_realizer_sp;
42 AppleObjCExternalASTSource *m_external_source;
44 typedef llvm::DenseMap<ObjCLanguageRuntime::ObjCISA,
45 clang::ObjCInterfaceDecl *>
46 ISAToInterfaceMap;
48 ISAToInterfaceMap m_isa_to_interface;
51 } // namespace lldb_private
53 #endif // LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_OBJC_APPLEOBJCRUNTIME_APPLEOBJCDECLVENDOR_H