LLDB  mainline
DWARFASTParserClang.h
Go to the documentation of this file.
1 //===-- DWARFASTParserClang.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_SYMBOLFILE_DWARF_DWARFASTPARSERCLANG_H
10 #define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERCLANG_H
11 
12 #include "clang/AST/CharUnits.h"
13 #include "llvm/ADT/DenseMap.h"
14 #include "llvm/ADT/SmallPtrSet.h"
15 #include "llvm/ADT/SmallVector.h"
16 
17 #include "DWARFASTParser.h"
18 #include "DWARFDIE.h"
19 #include "DWARFDefines.h"
20 #include "DWARFFormValue.h"
21 #include "LogChannelDWARF.h"
23 
26 
27 #include <vector>
28 
29 namespace lldb_private {
30 class CompileUnit;
31 }
33 class SymbolFileDWARF;
34 
36 
38 public:
40 
41  ~DWARFASTParserClang() override;
42 
43  // DWARFASTParser interface.
44  lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc,
45  const DWARFDIE &die,
46  bool *type_is_new_ptr) override;
47 
50  const DWARFDIE &die,
51  const lldb_private::AddressRange &func_range) override;
52 
53  bool
55  lldb_private::CompilerType &compiler_type) override;
56 
58  GetDeclForUIDFromDWARF(const DWARFDIE &die) override;
59 
61  lldb_private::CompilerDeclContext decl_context) override;
62 
64  GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override;
65 
68 
70 
71 protected:
72  /// Protected typedefs and members.
73  /// @{
75  typedef std::vector<DelayedAddObjCClassProperty> DelayedPropertyList;
76 
77  typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::DeclContext *>
79  typedef std::multimap<const clang::DeclContext *, const DWARFDIE>
81  typedef llvm::DenseMap<const DWARFDebugInfoEntry *,
84  typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::Decl *>
86 
92  std::unique_ptr<lldb_private::ClangASTImporter> m_clang_ast_importer_up;
93  /// @}
94 
95  clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die);
96 
97  clang::BlockDecl *ResolveBlockDIE(const DWARFDIE &die);
98 
99  clang::NamespaceDecl *ResolveNamespaceDIE(const DWARFDIE &die);
100 
101  bool ParseTemplateDIE(const DWARFDIE &die,
103  &template_param_infos);
105  const DWARFDIE &parent_die,
107  &template_param_infos);
108 
109  bool ParseChildMembers(
110  const DWARFDIE &die, lldb_private::CompilerType &class_compiler_type,
111  std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
112  std::vector<DWARFDIE> &member_function_dies,
113  DelayedPropertyList &delayed_properties,
114  const lldb::AccessType default_accessibility,
116 
117  size_t
118  ParseChildParameters(clang::DeclContext *containing_decl_ctx,
119  const DWARFDIE &parent_die, bool skip_artificial,
120  bool &is_static, bool &is_variadic,
121  bool &has_template_params,
122  std::vector<lldb_private::CompilerType> &function_args,
123  std::vector<clang::ParmVarDecl *> &function_param_decls,
124  unsigned &type_quals);
125 
127  bool is_signed, uint32_t enumerator_byte_size,
128  const DWARFDIE &parent_die);
129 
130  /// Parse a structure, class, or union type DIE.
131  lldb::TypeSP ParseStructureLikeDIE(const lldb_private::SymbolContext &sc,
132  const DWARFDIE &die,
134 
136 
137  clang::Decl *GetClangDeclForDIE(const DWARFDIE &die);
138 
139  clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die);
140 
141  clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die,
142  DWARFDIE *decl_ctx_die);
144 
145  bool CopyUniqueClassMethodTypes(const DWARFDIE &src_class_die,
146  const DWARFDIE &dst_class_die,
147  lldb_private::Type *class_type,
148  std::vector<DWARFDIE> &failures);
149 
150  clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die);
151 
152  void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
153 
154  void LinkDeclToDIE(clang::Decl *decl, const DWARFDIE &die);
155 
156  /// If \p type_sp is valid, calculate and set its symbol context scope, and
157  /// update the type list for its backing symbol file.
158  ///
159  /// Returns \p type_sp.
160  lldb::TypeSP
162  const DWARFDIE &die, lldb::TypeSP type_sp);
163 
164  /// Follow Clang Module Skeleton CU references to find a type definition.
166  const DWARFDIE &die,
167  lldb_private::Log *log);
168 
169  // Return true if this type is a declaration to a type in an external
170  // module.
171  lldb::ModuleSP GetModuleForType(const DWARFDIE &die);
172 
173 private:
174  struct FieldInfo {
175  uint64_t bit_size = 0;
176  uint64_t bit_offset = 0;
177  bool is_bitfield = false;
178 
179  FieldInfo() = default;
180 
181  void SetIsBitfield(bool flag) { is_bitfield = flag; }
182  bool IsBitfield() { return is_bitfield; }
183 
184  bool NextBitfieldOffsetIsValid(const uint64_t next_bit_offset) const {
185  // Any subsequent bitfields must not overlap and must be at a higher
186  // bit offset than any previous bitfield + size.
187  return (bit_size + bit_offset) <= next_bit_offset;
188  }
189  };
190 
191  /// Parses a DW_TAG_APPLE_property DIE and appends the parsed data to the
192  /// list of delayed Objective-C properties.
193  ///
194  /// Note: The delayed property needs to be finalized to actually create the
195  /// property declarations in the module AST.
196  ///
197  /// \param die The DW_TAG_APPLE_property DIE that will be parsed.
198  /// \param parent_die The parent DIE.
199  /// \param class_clang_type The Objective-C class that will contain the
200  /// created property.
201  /// \param delayed_properties The list of delayed properties that the result
202  /// will be appended to.
203  void ParseObjCProperty(const DWARFDIE &die, const DWARFDIE &parent_die,
204  const lldb_private::CompilerType &class_clang_type,
205  DelayedPropertyList &delayed_properties);
206 
207  void
208  ParseSingleMember(const DWARFDIE &die, const DWARFDIE &parent_die,
209  const lldb_private::CompilerType &class_clang_type,
210  lldb::AccessType default_accessibility,
212  FieldInfo &last_field_info);
213 
214  bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type,
215  lldb_private::CompilerType &clang_type);
216  bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type,
217  lldb_private::CompilerType &clang_type);
218 
219  lldb::TypeSP ParseTypeModifier(const lldb_private::SymbolContext &sc,
220  const DWARFDIE &die,
222  lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc,
223  const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs);
224  lldb::TypeSP ParseSubroutine(const DWARFDIE &die,
226  // FIXME: attrs should be passed as a const reference.
227  lldb::TypeSP ParseArrayType(const DWARFDIE &die,
229  lldb::TypeSP ParsePointerToMemberType(const DWARFDIE &die,
230  const ParsedDWARFTypeAttributes &attrs);
231 
232  /// Parses a DW_TAG_inheritance DIE into a base/super class.
233  ///
234  /// \param die The DW_TAG_inheritance DIE to parse.
235  /// \param parent_die The parent DIE of the given DIE.
236  /// \param class_clang_type The C++/Objective-C class representing parent_die.
237  /// For an Objective-C class this method sets the super class on success. For
238  /// a C++ class this will *not* add the result as a base class.
239  /// \param default_accessibility The default accessibility that is given to
240  /// base classes if they don't have an explicit accessibility set.
241  /// \param module_sp The current Module.
242  /// \param base_classes The list of C++ base classes that will be appended
243  /// with the parsed base class on success.
244  /// \param layout_info The layout information that will be updated for C++
245  /// base classes with the base offset.
246  void ParseInheritance(
247  const DWARFDIE &die, const DWARFDIE &parent_die,
248  const lldb_private::CompilerType class_clang_type,
249  const lldb::AccessType default_accessibility,
250  const lldb::ModuleSP &module_sp,
251  std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
253 };
254 
255 /// Parsed form of all attributes that are relevant for type reconstruction.
256 /// Some attributes are relevant for all kinds of types (declaration), while
257 /// others are only meaningful to a specific type (is_virtual)
259  explicit ParsedDWARFTypeAttributes(const DWARFDIE &die);
260 
262  bool is_artificial = false;
264  bool is_explicit = false;
266  bool is_inline = false;
267  bool is_scoped_enum = false;
268  bool is_vector = false;
269  bool is_virtual = false;
270  bool is_objc_direct_call = false;
271  bool exports_symbols = false;
272  clang::StorageClass storage = clang::SC_None;
273  const char *mangled_name = nullptr;
283  llvm::Optional<uint64_t> byte_size;
284  size_t calling_convention = llvm::dwarf::DW_CC_normal;
288 };
289 
290 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERCLANG_H
ParsedDWARFTypeAttributes::is_vector
bool is_vector
Definition: DWARFASTParserClang.h:268
DWARFASTParserClang::DelayedAddObjCClassProperty
Definition: DWARFASTParserClang.cpp:1907
DWARFFormValue.h
DWARFASTParserClang::CopyUniqueClassMethodTypes
bool CopyUniqueClassMethodTypes(const DWARFDIE &src_class_die, const DWARFDIE &dst_class_die, lldb_private::Type *class_type, std::vector< DWARFDIE > &failures)
Definition: DWARFASTParserClang.cpp:3524
DWARFASTParserClang::GetTypeForDIE
lldb_private::Type * GetTypeForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3165
ParsedDWARFTypeAttributes::name
lldb_private::ConstString name
Definition: DWARFASTParserClang.h:274
ParsedDWARFTypeAttributes
Parsed form of all attributes that are relevant for type reconstruction.
Definition: DWARFASTParserClang.h:258
DWARFDIE.h
DWARFASTParserClang::GetCachedClangDeclContextForDIE
clang::DeclContext * GetCachedClangDeclContextForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3507
ParsedDWARFTypeAttributes::type
DWARFFormValue type
Definition: DWARFASTParserClang.h:281
ParsedDWARFTypeAttributes::is_forward_declaration
bool is_forward_declaration
Definition: DWARFASTParserClang.h:265
DWARFASTParserClang::ParseChildMembers
bool ParseChildMembers(const DWARFDIE &die, lldb_private::CompilerType &class_compiler_type, std::vector< std::unique_ptr< clang::CXXBaseSpecifier >> &base_classes, std::vector< DWARFDIE > &member_function_dies, DelayedPropertyList &delayed_properties, const lldb::AccessType default_accessibility, lldb_private::ClangASTImporter::LayoutInfo &layout_info)
Definition: DWARFASTParserClang.cpp:2901
DWARFASTParserClang::DelayedPropertyList
std::vector< DelayedAddObjCClassProperty > DelayedPropertyList
Definition: DWARFASTParserClang.h:74
ParsedDWARFTypeAttributes::class_language
lldb::LanguageType class_language
Definition: DWARFASTParserClang.h:282
DWARFASTParserClang::ResolveNamespaceDIE
clang::NamespaceDecl * ResolveNamespaceDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3437
ParsedDWARFTypeAttributes::signature
DWARFFormValue signature
Definition: DWARFASTParserClang.h:279
DWARFASTParserClang::GetDeclForUIDFromDWARF
lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2251
SymbolFileDWARF
Definition: SymbolFileDWARF.h:59
lldb::LanguageType
LanguageType
Programming language type.
Definition: lldb-enumerations.h:436
ParsedDWARFTypeAttributes::byte_stride
uint32_t byte_stride
Definition: DWARFASTParserClang.h:286
lldb_private::ClangASTImporter::LayoutInfo
Definition: ClangASTImporter.h:66
lldb_private::CompilerDecl
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28
DWARFASTParserClang::ParseTemplateParameterInfos
bool ParseTemplateParameterInfos(const DWARFDIE &parent_die, lldb_private::TypeSystemClang::TemplateParameterInfos &template_param_infos)
Definition: DWARFASTParserClang.cpp:2072
DWARFASTParserClang::DIEToDeclMap
llvm::DenseMap< const DWARFDebugInfoEntry *, clang::Decl * > DIEToDeclMap
Definition: DWARFASTParserClang.h:85
DWARFASTParserClang::ParseStructureLikeDIE
lldb::TypeSP ParseStructureLikeDIE(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Parse a structure, class, or union type DIE.
Definition: DWARFASTParserClang.cpp:1557
DWARFDebugInfoEntry
DWARFDebugInfoEntry objects assume that they are living in one big vector and do pointer arithmetic o...
Definition: DWARFDebugInfoEntry.h:31
lldb_private::SymbolContext
Definition: SymbolContext.h:33
DWARFASTParserClang::ParseFunctionFromDWARF
lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const DWARFDIE &die, const lldb_private::AddressRange &func_range) override
Definition: DWARFASTParserClang.cpp:2342
DWARFDefines.h
DWARFASTParserClang::DIEToDeclContextMap
llvm::DenseMap< const DWARFDebugInfoEntry *, clang::DeclContext * > DIEToDeclContextMap
Definition: DWARFASTParserClang.h:78
lldb_private::CompileUnit
Definition: CompileUnit.h:38
DWARFDIE
Definition: DWARFDIE.h:16
DWARFASTParserClang::GetClangDeclForDIE
clang::Decl * GetClangDeclForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3186
DWARFASTParserClang::LinkDeclContextToDIE
void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3516
DWARFASTParserClang::ParseChildParameters
size_t ParseChildParameters(clang::DeclContext *containing_decl_ctx, const DWARFDIE &parent_die, bool skip_artificial, bool &is_static, bool &is_variadic, bool &has_template_params, std::vector< lldb_private::CompilerType > &function_args, std::vector< clang::ParmVarDecl * > &function_param_decls, unsigned &type_quals)
Definition: DWARFASTParserClang.cpp:2950
DWARFASTParserClang::GetClangDeclContextContainingDIE
clang::DeclContext * GetClangDeclContextContainingDIE(const DWARFDIE &die, DWARFDIE *decl_ctx_die)
Definition: DWARFASTParserClang.cpp:3488
lldb_private::Function
Definition: Function.h:413
DWARFASTParserClang::UpdateSymbolContextScopeForType
lldb::TypeSP UpdateSymbolContextScopeForType(const lldb_private::SymbolContext &sc, const DWARFDIE &die, lldb::TypeSP type_sp)
If type_sp is valid, calculate and set its symbol context scope, and update the type list for its bac...
Definition: DWARFASTParserClang.cpp:1527
DWARFASTParserClang::GetClangDeclContextForDIE
clang::DeclContext * GetClangDeclContextForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3284
ParsedDWARFTypeAttributes::storage
clang::StorageClass storage
Definition: DWARFASTParserClang.h:272
ParsedDWARFTypeAttributes::is_inline
bool is_inline
Definition: DWARFASTParserClang.h:266
TypeSystemClang.h
DWARFASTParserClang::LinkDeclToDIE
void LinkDeclToDIE(clang::Decl *decl, const DWARFDIE &die)
DWARFASTParserClang::FieldInfo::NextBitfieldOffsetIsValid
bool NextBitfieldOffsetIsValid(const uint64_t next_bit_offset) const
Definition: DWARFASTParserClang.h:184
DWARFASTParserClang::m_die_to_module
DIEToModuleMap m_die_to_module
Definition: DWARFASTParserClang.h:91
DWARFASTParserClang::GetDeclContextContainingUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2267
DWARFASTParserClang::CompleteRecordType
bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
Definition: DWARFASTParserClang.cpp:2097
DWARFASTParserClang::ParseTypeFromDWARF
lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new_ptr) override
Definition: DWARFASTParserClang.cpp:437
ParsedDWARFTypeAttributes::accessibility
lldb::AccessType accessibility
Definition: DWARFASTParserClang.h:261
DWARFASTParserClang::FieldInfo::bit_offset
uint64_t bit_offset
Definition: DWARFASTParserClang.h:176
lldb::eAccessNone
@ eAccessNone
Definition: lldb-enumerations.h:508
DWARFASTParserClang::FieldInfo::SetIsBitfield
void SetIsBitfield(bool flag)
Definition: DWARFASTParserClang.h:181
DWARFASTParser.h
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::AddressRange
Definition: AddressRange.h:25
DWARFASTParserClang::DeclContextToDIEMap
std::multimap< const clang::DeclContext *, const DWARFDIE > DeclContextToDIEMap
Definition: DWARFASTParserClang.h:80
ParsedDWARFTypeAttributes::abstract_origin
DWARFFormValue abstract_origin
Definition: DWARFASTParserClang.h:277
DWARFFormValue
Definition: DWARFFormValue.h:20
PluginInterface.h
DWARFASTParserClang::ParseInheritance
void ParseInheritance(const DWARFDIE &die, const DWARFDIE &parent_die, const lldb_private::CompilerType class_clang_type, const lldb::AccessType default_accessibility, const lldb::ModuleSP &module_sp, std::vector< std::unique_ptr< clang::CXXBaseSpecifier >> &base_classes, lldb_private::ClangASTImporter::LayoutInfo &layout_info)
Parses a DW_TAG_inheritance DIE into a base/super class.
Definition: DWARFASTParserClang.cpp:1410
LogChannelDWARF.h
DWARFASTParserClang::m_die_to_decl_ctx
DIEToDeclContextMap m_die_to_decl_ctx
Definition: DWARFASTParserClang.h:89
ParsedDWARFTypeAttributes::is_explicit
bool is_explicit
Definition: DWARFASTParserClang.h:264
ParsedDWARFTypeAttributes::is_objc_direct_call
bool is_objc_direct_call
Definition: DWARFASTParserClang.h:270
DWARFASTParserClang::FieldInfo::FieldInfo
FieldInfo()=default
ParsedDWARFTypeAttributes::bit_stride
uint32_t bit_stride
Definition: DWARFASTParserClang.h:285
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition: CompilerDeclContext.h:30
DWARFASTParserClang::FieldInfo
Definition: DWARFASTParserClang.h:174
DWARFASTParserClang::FieldInfo::is_bitfield
bool is_bitfield
Definition: DWARFASTParserClang.h:177
DWARFASTParserClang::GetClangASTImporter
lldb_private::ClangASTImporter & GetClangASTImporter()
Definition: DWARFASTParserClang.cpp:91
ParsedDWARFTypeAttributes::calling_convention
size_t calling_convention
Definition: DWARFASTParserClang.h:284
DWARFASTParserClang::FieldInfo::IsBitfield
bool IsBitfield()
Definition: DWARFASTParserClang.h:182
ParsedDWARFTypeAttributes::encoding
uint32_t encoding
Definition: DWARFASTParserClang.h:287
DWARFASTParserClang::~DWARFASTParserClang
~DWARFASTParserClang() override
DWARFASTParserClang
Definition: DWARFASTParserClang.h:37
DWARFASTParserClang::GetModuleForType
lldb::ModuleSP GetModuleForType(const DWARFDIE &die)
ParsedDWARFTypeAttributes::is_complete_objc_class
bool is_complete_objc_class
Definition: DWARFASTParserClang.h:263
lldb_private::OptionalClangModuleID
A Clang module ID.
Definition: TypeSystemClang.h:57
lldb::eLanguageTypeUnknown
@ eLanguageTypeUnknown
Unknown or invalid language value.
Definition: lldb-enumerations.h:437
uint32_t
DWARFASTParser
Definition: DWARFASTParser.h:25
DWARFASTParserClang::DIEToModuleMap
llvm::DenseMap< const DWARFDebugInfoEntry *, lldb_private::OptionalClangModuleID > DIEToModuleMap
Definition: DWARFASTParserClang.h:83
DWARFASTParserClang::FieldInfo::bit_size
uint64_t bit_size
Definition: DWARFASTParserClang.h:175
DWARFASTParserClang::ParseTypeModifier
lldb::TypeSP ParseTypeModifier(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:548
ParsedDWARFTypeAttributes::mangled_name
const char * mangled_name
Definition: DWARFASTParserClang.h:273
DWARFASTParserClang::GetDeclContextForUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2259
ParsedDWARFTypeAttributes::byte_size
llvm::Optional< uint64_t > byte_size
Definition: DWARFASTParserClang.h:283
DWARFASTParserClang::m_die_to_decl
DIEToDeclMap m_die_to_decl
Definition: DWARFASTParserClang.h:88
DWARFASTParserClang::EnsureAllDIEsInDeclContextHaveBeenParsed
void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context) override
Definition: DWARFASTParserClang.cpp:2240
lldb_private::Type
Definition: Type.h:66
DWARFASTParserClang::CompleteTypeFromDWARF
bool CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &compiler_type) override
Definition: DWARFASTParserClang.cpp:2200
DWARFASTParserClang::m_ast
lldb_private::TypeSystemClang & m_ast
Definition: DWARFASTParserClang.h:87
DWARFASTParserClang::ParseEnum
lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:771
DWARFASTParserClang::ParseObjCProperty
void ParseObjCProperty(const DWARFDIE &die, const DWARFDIE &parent_die, const lldb_private::CompilerType &class_clang_type, DelayedPropertyList &delayed_properties)
Parses a DW_TAG_APPLE_property DIE and appends the parsed data to the list of delayed Objective-C pro...
Definition: DWARFASTParserClang.cpp:2619
DWARFASTParserClang::ParseArrayType
lldb::TypeSP ParseArrayType(const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:1334
lldb_private::ClangASTImporter
Manages and observes all Clang AST node importing in LLDB.
Definition: ClangASTImporter.h:64
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:33
ParsedDWARFTypeAttributes::specification
DWARFFormValue specification
Definition: DWARFASTParserClang.h:280
ParsedDWARFTypeAttributes::decl
lldb_private::Declaration decl
Definition: DWARFASTParserClang.h:275
DWARFASTParserClang::ResolveBlockDIE
clang::BlockDecl * ResolveBlockDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3415
ParsedDWARFTypeAttributes::containing_type
DWARFFormValue containing_type
Definition: DWARFASTParserClang.h:278
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
DWARFASTParserClang::ParseSubroutine
lldb::TypeSP ParseSubroutine(const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:911
lldb_private::TypeSystemClang
A TypeSystem implementation based on Clang.
Definition: TypeSystemClang.h:106
DWARFASTParserClang::ParseTemplateDIE
bool ParseTemplateDIE(const DWARFDIE &die, lldb_private::TypeSystemClang::TemplateParameterInfos &template_param_infos)
Definition: DWARFASTParserClang.cpp:1964
ClangASTImporter.h
ParsedDWARFTypeAttributes::is_scoped_enum
bool is_scoped_enum
Definition: DWARFASTParserClang.h:267
DWARFASTParserClang::GetOwningClangModule
lldb_private::OptionalClangModuleID GetOwningClangModule(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3327
DWARFASTParserClang::ParseTypeFromClangModule
lldb::TypeSP ParseTypeFromClangModule(const lldb_private::SymbolContext &sc, const DWARFDIE &die, lldb_private::Log *log)
Follow Clang Module Skeleton CU references to find a type definition.
Definition: DWARFASTParserClang.cpp:144
lldb_private::TypeSystemClang::TemplateParameterInfos
Definition: TypeSystemClang.h:323
lldb_private::Log
Definition: Log.h:49
DWARFASTParserClang::GetDeclContextForBlock
clang::DeclContext * GetDeclContextForBlock(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3401
DWARFASTParserClang::ParseSingleMember
void ParseSingleMember(const DWARFDIE &die, const DWARFDIE &parent_die, const lldb_private::CompilerType &class_clang_type, lldb::AccessType default_accessibility, lldb_private::ClangASTImporter::LayoutInfo &layout_info, FieldInfo &last_field_info)
Definition: DWARFASTParserClang.cpp:2655
ParsedDWARFTypeAttributes::is_artificial
bool is_artificial
Definition: DWARFASTParserClang.h:262
ParsedDWARFTypeAttributes::object_pointer
DWARFDIE object_pointer
Definition: DWARFASTParserClang.h:276
DWARFASTParserClang::m_decl_ctx_to_die
DeclContextToDIEMap m_decl_ctx_to_die
Definition: DWARFASTParserClang.h:90
DWARFASTParserClang::DWARFASTParserClang
DWARFASTParserClang(lldb_private::TypeSystemClang &ast)
Definition: DWARFASTParserClang.cpp:60
ParsedDWARFTypeAttributes::ParsedDWARFTypeAttributes
ParsedDWARFTypeAttributes(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:302
lldb_private::Declaration
Definition: Declaration.h:24
ParsedDWARFTypeAttributes::exports_symbols
bool exports_symbols
Definition: DWARFASTParserClang.h:271
DWARFASTParserClang::CompleteEnumType
bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
Definition: DWARFASTParserClang.cpp:2185
lldb::AccessType
AccessType
Definition: lldb-enumerations.h:507
DWARFASTParserClang::ParsePointerToMemberType
lldb::TypeSP ParsePointerToMemberType(const DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:1387
DWARFASTParserClang::ParseChildEnumerators
size_t ParseChildEnumerators(lldb_private::CompilerType &compiler_type, bool is_signed, uint32_t enumerator_byte_size, const DWARFDIE &parent_die)
Definition: DWARFASTParserClang.cpp:2275
DWARFASTParserClang::m_clang_ast_importer_up
std::unique_ptr< lldb_private::ClangASTImporter > m_clang_ast_importer_up
Definition: DWARFASTParserClang.h:92
ParsedDWARFTypeAttributes::is_virtual
bool is_virtual
Definition: DWARFASTParserClang.h:269