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 
49  ConstructDemangledNameFromDWARF(const DWARFDIE &die) override;
50 
53  const DWARFDIE &die,
54  const lldb_private::AddressRange &func_range) override;
55 
56  bool
58  lldb_private::CompilerType &compiler_type) override;
59 
61  GetDeclForUIDFromDWARF(const DWARFDIE &die) override;
62 
64  lldb_private::CompilerDeclContext decl_context) override;
65 
67  GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override;
68 
71 
73 
74  /// Extracts an value for a given Clang integer type from a DWARFFormValue.
75  ///
76  /// \param int_type The Clang type that defines the bit size and signedness
77  /// of the integer that should be extracted. Has to be either
78  /// an integer type or an enum type. For enum types the
79  /// underlying integer type will be considered as the
80  /// expected integer type that should be extracted.
81  /// \param form_value The DWARFFormValue that contains the integer value.
82  /// \return An APInt containing the same integer value as the given
83  /// DWARFFormValue with the bit width of the given integer type.
84  /// Returns an error if the value in the DWARFFormValue does not fit
85  /// into the given integer type or the integer type isn't supported.
86  llvm::Expected<llvm::APInt>
88  const DWARFFormValue &form_value) const;
89 
90 protected:
91  /// Protected typedefs and members.
92  /// @{
94  typedef std::vector<DelayedAddObjCClassProperty> DelayedPropertyList;
95 
96  typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::DeclContext *>
98  typedef std::multimap<const clang::DeclContext *, const DWARFDIE>
100  typedef llvm::DenseMap<const DWARFDebugInfoEntry *,
103  typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::Decl *>
105 
111  std::unique_ptr<lldb_private::ClangASTImporter> m_clang_ast_importer_up;
112  /// @}
113 
114  clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die);
115 
116  clang::BlockDecl *ResolveBlockDIE(const DWARFDIE &die);
117 
118  clang::NamespaceDecl *ResolveNamespaceDIE(const DWARFDIE &die);
119 
120  bool ParseTemplateDIE(const DWARFDIE &die,
122  &template_param_infos);
124  const DWARFDIE &parent_die,
126  &template_param_infos);
127 
128  bool ParseChildMembers(
129  const DWARFDIE &die, lldb_private::CompilerType &class_compiler_type,
130  std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
131  std::vector<DWARFDIE> &member_function_dies,
132  DelayedPropertyList &delayed_properties,
133  const lldb::AccessType default_accessibility,
135 
136  size_t
137  ParseChildParameters(clang::DeclContext *containing_decl_ctx,
138  const DWARFDIE &parent_die, bool skip_artificial,
139  bool &is_static, bool &is_variadic,
140  bool &has_template_params,
141  std::vector<lldb_private::CompilerType> &function_args,
142  std::vector<clang::ParmVarDecl *> &function_param_decls,
143  unsigned &type_quals);
144 
146  bool is_signed, uint32_t enumerator_byte_size,
147  const DWARFDIE &parent_die);
148 
149  /// Parse a structure, class, or union type DIE.
150  lldb::TypeSP ParseStructureLikeDIE(const lldb_private::SymbolContext &sc,
151  const DWARFDIE &die,
153 
155 
156  clang::Decl *GetClangDeclForDIE(const DWARFDIE &die);
157 
158  clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die);
159 
160  clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die,
161  DWARFDIE *decl_ctx_die);
163 
164  bool CopyUniqueClassMethodTypes(const DWARFDIE &src_class_die,
165  const DWARFDIE &dst_class_die,
166  lldb_private::Type *class_type,
167  std::vector<DWARFDIE> &failures);
168 
169  clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die);
170 
171  void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
172 
173  void LinkDeclToDIE(clang::Decl *decl, const DWARFDIE &die);
174 
175  /// If \p type_sp is valid, calculate and set its symbol context scope, and
176  /// update the type list for its backing symbol file.
177  ///
178  /// Returns \p type_sp.
179  lldb::TypeSP
181  const DWARFDIE &die, lldb::TypeSP type_sp);
182 
183  /// Follow Clang Module Skeleton CU references to find a type definition.
185  const DWARFDIE &die,
186  lldb_private::Log *log);
187 
188  // Return true if this type is a declaration to a type in an external
189  // module.
190  lldb::ModuleSP GetModuleForType(const DWARFDIE &die);
191 
192 private:
193  struct FieldInfo {
194  uint64_t bit_size = 0;
195  uint64_t bit_offset = 0;
196  bool is_bitfield = false;
197 
198  FieldInfo() = default;
199 
200  void SetIsBitfield(bool flag) { is_bitfield = flag; }
201  bool IsBitfield() { return is_bitfield; }
202 
203  bool NextBitfieldOffsetIsValid(const uint64_t next_bit_offset) const {
204  // Any subsequent bitfields must not overlap and must be at a higher
205  // bit offset than any previous bitfield + size.
206  return (bit_size + bit_offset) <= next_bit_offset;
207  }
208  };
209 
210  /// Parses a DW_TAG_APPLE_property DIE and appends the parsed data to the
211  /// list of delayed Objective-C properties.
212  ///
213  /// Note: The delayed property needs to be finalized to actually create the
214  /// property declarations in the module AST.
215  ///
216  /// \param die The DW_TAG_APPLE_property DIE that will be parsed.
217  /// \param parent_die The parent DIE.
218  /// \param class_clang_type The Objective-C class that will contain the
219  /// created property.
220  /// \param delayed_properties The list of delayed properties that the result
221  /// will be appended to.
222  void ParseObjCProperty(const DWARFDIE &die, const DWARFDIE &parent_die,
223  const lldb_private::CompilerType &class_clang_type,
224  DelayedPropertyList &delayed_properties);
225 
226  void
227  ParseSingleMember(const DWARFDIE &die, const DWARFDIE &parent_die,
228  const lldb_private::CompilerType &class_clang_type,
229  lldb::AccessType default_accessibility,
231  FieldInfo &last_field_info);
232 
233  bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type,
234  lldb_private::CompilerType &clang_type);
235  bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type,
236  lldb_private::CompilerType &clang_type);
237 
238  lldb::TypeSP ParseTypeModifier(const lldb_private::SymbolContext &sc,
239  const DWARFDIE &die,
241  lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc,
242  const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs);
243  lldb::TypeSP ParseSubroutine(const DWARFDIE &die,
245  lldb::TypeSP ParseArrayType(const DWARFDIE &die,
246  const ParsedDWARFTypeAttributes &attrs);
247  lldb::TypeSP ParsePointerToMemberType(const DWARFDIE &die,
248  const ParsedDWARFTypeAttributes &attrs);
249 
250  /// Parses a DW_TAG_inheritance DIE into a base/super class.
251  ///
252  /// \param die The DW_TAG_inheritance DIE to parse.
253  /// \param parent_die The parent DIE of the given DIE.
254  /// \param class_clang_type The C++/Objective-C class representing parent_die.
255  /// For an Objective-C class this method sets the super class on success. For
256  /// a C++ class this will *not* add the result as a base class.
257  /// \param default_accessibility The default accessibility that is given to
258  /// base classes if they don't have an explicit accessibility set.
259  /// \param module_sp The current Module.
260  /// \param base_classes The list of C++ base classes that will be appended
261  /// with the parsed base class on success.
262  /// \param layout_info The layout information that will be updated for C++
263  /// base classes with the base offset.
264  void ParseInheritance(
265  const DWARFDIE &die, const DWARFDIE &parent_die,
266  const lldb_private::CompilerType class_clang_type,
267  const lldb::AccessType default_accessibility,
268  const lldb::ModuleSP &module_sp,
269  std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
271 };
272 
273 /// Parsed form of all attributes that are relevant for type reconstruction.
274 /// Some attributes are relevant for all kinds of types (declaration), while
275 /// others are only meaningful to a specific type (is_virtual)
277  explicit ParsedDWARFTypeAttributes(const DWARFDIE &die);
278 
280  bool is_artificial = false;
282  bool is_explicit = false;
284  bool is_inline = false;
285  bool is_scoped_enum = false;
286  bool is_vector = false;
287  bool is_virtual = false;
288  bool is_objc_direct_call = false;
289  bool exports_symbols = false;
290  clang::StorageClass storage = clang::SC_None;
291  const char *mangled_name = nullptr;
301  llvm::Optional<uint64_t> byte_size;
302  size_t calling_convention = llvm::dwarf::DW_CC_normal;
306 };
307 
308 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERCLANG_H
ParsedDWARFTypeAttributes::is_vector
bool is_vector
Definition: DWARFASTParserClang.h:286
DWARFASTParserClang::DelayedAddObjCClassProperty
Definition: DWARFASTParserClang.cpp:1855
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:3426
DWARFASTParserClang::GetTypeForDIE
lldb_private::Type * GetTypeForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3091
ParsedDWARFTypeAttributes::name
lldb_private::ConstString name
Definition: DWARFASTParserClang.h:292
ParsedDWARFTypeAttributes
Parsed form of all attributes that are relevant for type reconstruction.
Definition: DWARFASTParserClang.h:276
DWARFDIE.h
DWARFASTParserClang::GetCachedClangDeclContextForDIE
clang::DeclContext * GetCachedClangDeclContextForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3409
ParsedDWARFTypeAttributes::type
DWARFFormValue type
Definition: DWARFASTParserClang.h:299
ParsedDWARFTypeAttributes::is_forward_declaration
bool is_forward_declaration
Definition: DWARFASTParserClang.h:283
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:2920
DWARFASTParserClang::DelayedPropertyList
std::vector< DelayedAddObjCClassProperty > DelayedPropertyList
Definition: DWARFASTParserClang.h:93
ParsedDWARFTypeAttributes::class_language
lldb::LanguageType class_language
Definition: DWARFASTParserClang.h:300
DWARFASTParserClang::ResolveNamespaceDIE
clang::NamespaceDecl * ResolveNamespaceDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3363
DWARFASTParserClang::ParseArrayType
lldb::TypeSP ParseArrayType(const DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:1282
ParsedDWARFTypeAttributes::signature
DWARFFormValue signature
Definition: DWARFASTParserClang.h:297
DWARFASTParserClang::GetDeclForUIDFromDWARF
lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2193
SymbolFileDWARF
Definition: SymbolFileDWARF.h:60
lldb::LanguageType
LanguageType
Programming language type.
Definition: lldb-enumerations.h:436
ParsedDWARFTypeAttributes::byte_stride
uint32_t byte_stride
Definition: DWARFASTParserClang.h:304
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:2020
DWARFASTParserClang::DIEToDeclMap
llvm::DenseMap< const DWARFDebugInfoEntry *, clang::Decl * > DIEToDeclMap
Definition: DWARFASTParserClang.h:104
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:1506
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:2317
DWARFDefines.h
DWARFASTParserClang::DIEToDeclContextMap
llvm::DenseMap< const DWARFDebugInfoEntry *, clang::DeclContext * > DIEToDeclContextMap
Definition: DWARFASTParserClang.h:97
lldb_private::CompileUnit
Definition: CompileUnit.h:38
DWARFDIE
Definition: DWARFDIE.h:16
DWARFASTParserClang::GetClangDeclForDIE
clang::Decl * GetClangDeclForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3112
DWARFASTParserClang::LinkDeclContextToDIE
void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3418
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:2969
DWARFASTParserClang::GetClangDeclContextContainingDIE
clang::DeclContext * GetClangDeclContextContainingDIE(const DWARFDIE &die, DWARFDIE *decl_ctx_die)
Definition: DWARFASTParserClang.cpp:3390
lldb_private::Function
Definition: Function.h:409
DWARFASTParserClang::ExtractIntFromFormValue
llvm::Expected< llvm::APInt > ExtractIntFromFormValue(const lldb_private::CompilerType &int_type, const DWARFFormValue &form_value) const
Extracts an value for a given Clang integer type from a DWARFFormValue.
Definition: DWARFASTParserClang.cpp:2601
DWARFASTParserClang::ConstructDemangledNameFromDWARF
lldb_private::ConstString ConstructDemangledNameFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2284
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:1476
DWARFASTParserClang::GetClangDeclContextForDIE
clang::DeclContext * GetClangDeclContextForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3210
ParsedDWARFTypeAttributes::storage
clang::StorageClass storage
Definition: DWARFASTParserClang.h:290
ParsedDWARFTypeAttributes::is_inline
bool is_inline
Definition: DWARFASTParserClang.h:284
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:203
DWARFASTParserClang::m_die_to_module
DIEToModuleMap m_die_to_module
Definition: DWARFASTParserClang.h:110
DWARFASTParserClang::GetDeclContextContainingUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2209
DWARFASTParserClang::CompleteRecordType
bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
Definition: DWARFASTParserClang.cpp:2045
DWARFASTParserClang::ParseTypeFromDWARF
lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new_ptr) override
Definition: DWARFASTParserClang.cpp:425
ParsedDWARFTypeAttributes::accessibility
lldb::AccessType accessibility
Definition: DWARFASTParserClang.h:279
DWARFASTParserClang::FieldInfo::bit_offset
uint64_t bit_offset
Definition: DWARFASTParserClang.h:195
lldb::eAccessNone
@ eAccessNone
Definition: lldb-enumerations.h:508
DWARFASTParserClang::FieldInfo::SetIsBitfield
void SetIsBitfield(bool flag)
Definition: DWARFASTParserClang.h:200
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:99
ParsedDWARFTypeAttributes::abstract_origin
DWARFFormValue abstract_origin
Definition: DWARFASTParserClang.h:295
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:1359
LogChannelDWARF.h
DWARFASTParserClang::m_die_to_decl_ctx
DIEToDeclContextMap m_die_to_decl_ctx
Definition: DWARFASTParserClang.h:108
ParsedDWARFTypeAttributes::is_explicit
bool is_explicit
Definition: DWARFASTParserClang.h:282
ParsedDWARFTypeAttributes::is_objc_direct_call
bool is_objc_direct_call
Definition: DWARFASTParserClang.h:288
DWARFASTParserClang::FieldInfo::FieldInfo
FieldInfo()=default
ParsedDWARFTypeAttributes::bit_stride
uint32_t bit_stride
Definition: DWARFASTParserClang.h:303
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition: CompilerDeclContext.h:30
DWARFASTParserClang::FieldInfo
Definition: DWARFASTParserClang.h:193
DWARFASTParserClang::FieldInfo::is_bitfield
bool is_bitfield
Definition: DWARFASTParserClang.h:196
DWARFASTParserClang::GetClangASTImporter
lldb_private::ClangASTImporter & GetClangASTImporter()
Definition: DWARFASTParserClang.cpp:79
ParsedDWARFTypeAttributes::calling_convention
size_t calling_convention
Definition: DWARFASTParserClang.h:302
DWARFASTParserClang::FieldInfo::IsBitfield
bool IsBitfield()
Definition: DWARFASTParserClang.h:201
ParsedDWARFTypeAttributes::encoding
uint32_t encoding
Definition: DWARFASTParserClang.h:305
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:281
lldb_private::OptionalClangModuleID
A Clang module ID.
Definition: TypeSystemClang.h:56
lldb::eLanguageTypeUnknown
@ eLanguageTypeUnknown
Unknown or invalid language value.
Definition: lldb-enumerations.h:437
uint32_t
DWARFASTParser
Definition: DWARFASTParser.h:26
DWARFASTParserClang::DIEToModuleMap
llvm::DenseMap< const DWARFDebugInfoEntry *, lldb_private::OptionalClangModuleID > DIEToModuleMap
Definition: DWARFASTParserClang.h:102
DWARFASTParserClang::FieldInfo::bit_size
uint64_t bit_size
Definition: DWARFASTParserClang.h:194
DWARFASTParserClang::ParseTypeModifier
lldb::TypeSP ParseTypeModifier(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:535
ParsedDWARFTypeAttributes::mangled_name
const char * mangled_name
Definition: DWARFASTParserClang.h:291
DWARFASTParserClang::GetDeclContextForUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2201
ParsedDWARFTypeAttributes::byte_size
llvm::Optional< uint64_t > byte_size
Definition: DWARFASTParserClang.h:301
DWARFASTParserClang::m_die_to_decl
DIEToDeclMap m_die_to_decl
Definition: DWARFASTParserClang.h:107
DWARFASTParserClang::EnsureAllDIEsInDeclContextHaveBeenParsed
void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context) override
Definition: DWARFASTParserClang.cpp:2182
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:2148
DWARFASTParserClang::m_ast
lldb_private::TypeSystemClang & m_ast
Definition: DWARFASTParserClang.h:106
DWARFASTParserClang::ParseEnum
lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:757
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:2565
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:298
ParsedDWARFTypeAttributes::decl
lldb_private::Declaration decl
Definition: DWARFASTParserClang.h:293
DWARFASTParserClang::ResolveBlockDIE
clang::BlockDecl * ResolveBlockDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3341
ParsedDWARFTypeAttributes::containing_type
DWARFFormValue containing_type
Definition: DWARFASTParserClang.h:296
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:895
lldb_private::TypeSystemClang
A TypeSystem implementation based on Clang.
Definition: TypeSystemClang.h:105
DWARFASTParserClang::ParseTemplateDIE
bool ParseTemplateDIE(const DWARFDIE &die, lldb_private::TypeSystemClang::TemplateParameterInfos &template_param_infos)
Definition: DWARFASTParserClang.cpp:1912
ClangASTImporter.h
ParsedDWARFTypeAttributes::is_scoped_enum
bool is_scoped_enum
Definition: DWARFASTParserClang.h:285
DWARFASTParserClang::GetOwningClangModule
lldb_private::OptionalClangModuleID GetOwningClangModule(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3253
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:132
lldb_private::TypeSystemClang::TemplateParameterInfos
Definition: TypeSystemClang.h:322
lldb_private::Log
Definition: Log.h:115
DWARFASTParserClang::GetDeclContextForBlock
clang::DeclContext * GetDeclContextForBlock(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3327
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:2653
ParsedDWARFTypeAttributes::is_artificial
bool is_artificial
Definition: DWARFASTParserClang.h:280
ParsedDWARFTypeAttributes::object_pointer
DWARFDIE object_pointer
Definition: DWARFASTParserClang.h:294
DWARFASTParserClang::m_decl_ctx_to_die
DeclContextToDIEMap m_decl_ctx_to_die
Definition: DWARFASTParserClang.h:109
DWARFASTParserClang::DWARFASTParserClang
DWARFASTParserClang(lldb_private::TypeSystemClang &ast)
Definition: DWARFASTParserClang.cpp:62
ParsedDWARFTypeAttributes::ParsedDWARFTypeAttributes
ParsedDWARFTypeAttributes(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:290
lldb_private::Declaration
Definition: Declaration.h:24
ParsedDWARFTypeAttributes::exports_symbols
bool exports_symbols
Definition: DWARFASTParserClang.h:289
DWARFASTParserClang::CompleteEnumType
bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
Definition: DWARFASTParserClang.cpp:2133
lldb::AccessType
AccessType
Definition: lldb-enumerations.h:507
DWARFASTParserClang::ParsePointerToMemberType
lldb::TypeSP ParsePointerToMemberType(const DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:1336
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:2217
DWARFASTParserClang::m_clang_ast_importer_up
std::unique_ptr< lldb_private::ClangASTImporter > m_clang_ast_importer_up
Definition: DWARFASTParserClang.h:111
ParsedDWARFTypeAttributes::is_virtual
bool is_virtual
Definition: DWARFASTParserClang.h:287