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 "clang/AST/Type.h"
14#include "llvm/ADT/DenseMap.h"
15#include "llvm/ADT/SmallPtrSet.h"
16#include "llvm/ADT/SmallVector.h"
17
18#include "DWARFASTParser.h"
19#include "DWARFDIE.h"
20#include "DWARFDefines.h"
21#include "DWARFFormValue.h"
22#include "LogChannelDWARF.h"
24
27
28#include <optional>
29#include <vector>
30
31namespace lldb_private {
32class CompileUnit;
33}
34namespace lldb_private::plugin {
35namespace dwarf {
36class DWARFDebugInfoEntry;
37class SymbolFileDWARF;
38} // namespace dwarf
39} // namespace lldb_private::plugin
40
42
44public:
46
48
49 // DWARFASTParser interface.
53 bool *type_is_new_ptr) override;
54
56 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
57
61 const lldb_private::AddressRange &func_range) override;
62
63 bool
66 lldb_private::CompilerType &compiler_type) override;
67
69 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
70
72 lldb_private::CompilerDeclContext decl_context) override;
73
75 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
76
78 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
79
81
82 /// Extracts an value for a given Clang integer type from a DWARFFormValue.
83 ///
84 /// \param int_type The Clang type that defines the bit size and signedness
85 /// of the integer that should be extracted. Has to be either
86 /// an integer type or an enum type. For enum types the
87 /// underlying integer type will be considered as the
88 /// expected integer type that should be extracted.
89 /// \param form_value The DWARFFormValue that contains the integer value.
90 /// \return An APInt containing the same integer value as the given
91 /// DWARFFormValue with the bit width of the given integer type.
92 /// Returns an error if the value in the DWARFFormValue does not fit
93 /// into the given integer type or the integer type isn't supported.
94 llvm::Expected<llvm::APInt> ExtractIntFromFormValue(
95 const lldb_private::CompilerType &int_type,
96 const lldb_private::plugin::dwarf::DWARFFormValue &form_value) const;
97
98 /// Returns the template parameters of a class DWARFDIE as a string.
99 ///
100 /// This is mostly useful for -gsimple-template-names which omits template
101 /// parameters from the DIE name and instead always adds template parameter
102 /// children DIEs.
103 ///
104 /// \param die The struct/class DWARFDIE containing template parameters.
105 /// \return A string, including surrounding '<>', of the template parameters.
106 /// If the DIE's name already has '<>', returns an empty ConstString because
107 /// it's assumed that the caller is using the DIE name anyway.
109 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
110
111protected:
112 /// Protected typedefs and members.
113 /// @{
115 typedef std::vector<DelayedAddObjCClassProperty> DelayedPropertyList;
116
117 typedef llvm::DenseMap<
119 clang::DeclContext *>
121 typedef std::multimap<const clang::DeclContext *,
124 typedef llvm::DenseMap<
128 typedef llvm::DenseMap<
131
137 std::unique_ptr<lldb_private::ClangASTImporter> m_clang_ast_importer_up;
138 /// @}
139
140 clang::DeclContext *
142
143 clang::BlockDecl *
145
146 clang::NamespaceDecl *
148
149 /// Returns the namespace decl that a DW_TAG_imported_declaration imports.
150 ///
151 /// \param[in] die The import declaration to resolve. If the DIE is not a
152 /// DW_TAG_imported_declaration the behaviour is undefined.
153 ///
154 /// \returns The decl corresponding to the namespace that the specified
155 /// 'die' imports. If the imported entity is not a namespace
156 /// or another import declaration, returns nullptr. If an error
157 /// occurs, returns nullptr.
158 clang::NamespaceDecl *ResolveImportedDeclarationDIE(
160
163 &template_param_infos);
164
168 &template_param_infos);
169
170 std::string
172
175 lldb_private::CompilerType &class_compiler_type,
176 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
177 std::vector<lldb_private::plugin::dwarf::DWARFDIE> &member_function_dies,
178 std::vector<lldb_private::plugin::dwarf::DWARFDIE> &contained_type_dies,
179 DelayedPropertyList &delayed_properties,
180 const lldb::AccessType default_accessibility,
182
183 size_t
184 ParseChildParameters(clang::DeclContext *containing_decl_ctx,
186 bool skip_artificial, bool &is_static, bool &is_variadic,
187 bool &has_template_params,
188 std::vector<lldb_private::CompilerType> &function_args,
189 std::vector<clang::ParmVarDecl *> &function_param_decls,
190 unsigned &type_quals);
191
193 lldb_private::CompilerType &compiler_type, bool is_signed,
194 uint32_t enumerator_byte_size,
195 const lldb_private::plugin::dwarf::DWARFDIE &parent_die);
196
197 /// Parse a structure, class, or union type DIE.
202
203 clang::Decl *
205
206 clang::DeclContext *
208
209 clang::DeclContext *GetClangDeclContextContainingDIE(
214
216 const lldb_private::plugin::dwarf::DWARFDIE &src_class_die,
217 const lldb_private::plugin::dwarf::DWARFDIE &dst_class_die,
218 lldb_private::Type *class_type,
219 std::vector<lldb_private::plugin::dwarf::DWARFDIE> &failures);
220
221 clang::DeclContext *GetCachedClangDeclContextForDIE(
223
224 void LinkDeclContextToDIE(clang::DeclContext *decl_ctx,
226
227 void LinkDeclToDIE(clang::Decl *decl,
229
230 /// If \p type_sp is valid, calculate and set its symbol context scope, and
231 /// update the type list for its backing symbol file.
232 ///
233 /// Returns \p type_sp.
237
238 /// Follow Clang Module Skeleton CU references to find a type definition.
242 lldb_private::Log *log);
243
244 // Return true if this type is a declaration to a type in an external
245 // module.
248
249 static bool classof(const DWARFASTParser *Parser) {
250 return Parser->GetKind() == Kind::DWARFASTParserClang;
251 }
252
253private:
254 struct FieldInfo {
255 uint64_t bit_size = 0;
256 uint64_t bit_offset = 0;
257 bool is_bitfield = false;
258 bool is_artificial = false;
259
260 FieldInfo() = default;
261
262 void SetIsBitfield(bool flag) { is_bitfield = flag; }
263 bool IsBitfield() { return is_bitfield; }
264
265 void SetIsArtificial(bool flag) { is_artificial = flag; }
266 bool IsArtificial() const { return is_artificial; }
267
268 bool NextBitfieldOffsetIsValid(const uint64_t next_bit_offset) const {
269 // Any subsequent bitfields must not overlap and must be at a higher
270 // bit offset than any previous bitfield + size.
271 return (bit_size + bit_offset) <= next_bit_offset;
272 }
273 };
274
275 /// Parsed form of all attributes that are relevant for parsing type members.
277 explicit MemberAttributes(
280 lldb::ModuleSP module_sp);
281 const char *name = nullptr;
282 /// Indicates how many bits into the word (according to the host endianness)
283 /// the low-order bit of the field starts. Can be negative.
284 int64_t bit_offset = 0;
285 /// Indicates the size of the field in bits.
286 size_t bit_size = 0;
289 std::optional<uint64_t> byte_size;
290 std::optional<lldb_private::plugin::dwarf::DWARFFormValue> const_value_form;
292 /// Indicates the byte offset of the word from the base address of the
293 /// structure.
295 bool is_artificial = false;
296 bool is_declaration = false;
297 };
298
299 /// Returns 'true' if we should create an unnamed bitfield
300 /// and add it to the parser's current AST.
301 ///
302 /// \param[in] last_field_info FieldInfo of the previous DW_TAG_member
303 /// we parsed.
304 /// \param[in] last_field_end Offset (in bits) where the last parsed field
305 /// ended.
306 /// \param[in] this_field_info FieldInfo of the current DW_TAG_member
307 /// being parsed.
308 /// \param[in] layout_info Layout information of all decls parsed by the
309 /// current parser.
311 FieldInfo const &last_field_info, uint64_t last_field_end,
312 FieldInfo const &this_field_info,
313 lldb_private::ClangASTImporter::LayoutInfo const &layout_info) const;
314
315 /// Parses a DW_TAG_APPLE_property DIE and appends the parsed data to the
316 /// list of delayed Objective-C properties.
317 ///
318 /// Note: The delayed property needs to be finalized to actually create the
319 /// property declarations in the module AST.
320 ///
321 /// \param die The DW_TAG_APPLE_property DIE that will be parsed.
322 /// \param parent_die The parent DIE.
323 /// \param class_clang_type The Objective-C class that will contain the
324 /// created property.
325 /// \param delayed_properties The list of delayed properties that the result
326 /// will be appended to.
327 void
330 const lldb_private::CompilerType &class_clang_type,
331 DelayedPropertyList &delayed_properties);
332
333 void
336 const lldb_private::CompilerType &class_clang_type,
337 lldb::AccessType default_accessibility,
339 FieldInfo &last_field_info);
340
341 /// If the specified 'die' represents a static data member, creates
342 /// a 'clang::VarDecl' for it and attaches it to specified parent
343 /// 'class_clang_type'.
344 ///
345 /// \param[in] die The member declaration we want to create a
346 /// clang::VarDecl for.
347 ///
348 /// \param[in] attrs The parsed attributes for the specified 'die'.
349 ///
350 /// \param[in] class_clang_type The parent RecordType of the static
351 /// member this function will create.
354 const MemberAttributes &attrs,
355 const lldb_private::CompilerType &class_clang_type);
356
358 lldb_private::Type *type,
359 lldb_private::CompilerType &clang_type);
361 lldb_private::Type *type,
362 lldb_private::CompilerType &clang_type);
363
372 const ParsedDWARFTypeAttributes &attrs);
374 const ParsedDWARFTypeAttributes &attrs);
377 const ParsedDWARFTypeAttributes &attrs);
378
379 /// Parses a DW_TAG_inheritance DIE into a base/super class.
380 ///
381 /// \param die The DW_TAG_inheritance DIE to parse.
382 /// \param parent_die The parent DIE of the given DIE.
383 /// \param class_clang_type The C++/Objective-C class representing parent_die.
384 /// For an Objective-C class this method sets the super class on success. For
385 /// a C++ class this will *not* add the result as a base class.
386 /// \param default_accessibility The default accessibility that is given to
387 /// base classes if they don't have an explicit accessibility set.
388 /// \param module_sp The current Module.
389 /// \param base_classes The list of C++ base classes that will be appended
390 /// with the parsed base class on success.
391 /// \param layout_info The layout information that will be updated for C++
392 /// base classes with the base offset.
393 void ParseInheritance(
396 const lldb_private::CompilerType class_clang_type,
397 const lldb::AccessType default_accessibility,
398 const lldb::ModuleSP &module_sp,
399 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
401
402 /// Parses DW_TAG_variant_part DIE into a structure that encodes all variants
403 /// Note that this is currently being emitted by rustc and not Clang
404 /// \param die DW_TAG_variant_part DIE to parse
405 /// \param parent_die The parent DW_TAG_structure_type to parse
406 /// \param class_clang_type The Rust struct representing parent_die.
407 /// \param default_accesibility The default accessibility that is given to
408 /// base classes if they don't have an explicit accessibility set
409 /// \param layout_info The layout information that will be updated for
410 // base classes with the base offset
411 void
414 lldb_private::CompilerType &class_clang_type,
415 const lldb::AccessType default_accesibility,
417};
418
419/// Parsed form of all attributes that are relevant for type reconstruction.
420/// Some attributes are relevant for all kinds of types (declaration), while
421/// others are only meaningful to a specific type (is_virtual)
425
427 bool is_artificial = false;
429 bool is_explicit = false;
431 bool is_inline = false;
432 bool is_scoped_enum = false;
433 bool is_vector = false;
434 bool is_virtual = false;
436 bool exports_symbols = false;
437 clang::StorageClass storage = clang::SC_None;
438 const char *mangled_name = nullptr;
448 std::optional<uint64_t> byte_size;
449 std::optional<uint64_t> alignment;
450 size_t calling_convention = llvm::dwarf::DW_CC_normal;
451 uint32_t bit_stride = 0;
452 uint32_t byte_stride = 0;
453 uint32_t encoding = 0;
454 clang::RefQualifierKind ref_qual =
455 clang::RQ_None; ///< Indicates ref-qualifier of
456 ///< C++ member function if present.
457 ///< Is RQ_None otherwise.
458};
459
460#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERCLANG_H
lldb::TypeSP ParsePointerToMemberType(const lldb_private::plugin::dwarf::DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
clang::NamespaceDecl * ResolveImportedDeclarationDIE(const lldb_private::plugin::dwarf::DWARFDIE &die)
Returns the namespace decl that a DW_TAG_imported_declaration imports.
void CreateStaticMemberVariable(const lldb_private::plugin::dwarf::DWARFDIE &die, const MemberAttributes &attrs, const lldb_private::CompilerType &class_clang_type)
If the specified 'die' represents a static data member, creates a 'clang::VarDecl' for it and attache...
size_t ParseChildParameters(clang::DeclContext *containing_decl_ctx, const lldb_private::plugin::dwarf::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)
std::unique_ptr< lldb_private::ClangASTImporter > m_clang_ast_importer_up
lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
static bool classof(const DWARFASTParser *Parser)
llvm::DenseMap< const lldb_private::plugin::dwarf::DWARFDebugInfoEntry *, clang::Decl * > DIEToDeclMap
lldb::TypeSP UpdateSymbolContextScopeForType(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::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...
lldb_private::TypeSystemClang & m_ast
bool ShouldCreateUnnamedBitfield(FieldInfo const &last_field_info, uint64_t last_field_end, FieldInfo const &this_field_info, lldb_private::ClangASTImporter::LayoutInfo const &layout_info) const
Returns 'true' if we should create an unnamed bitfield and add it to the parser's current AST.
lldb::TypeSP ParseArrayType(const lldb_private::plugin::dwarf::DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
lldb_private::ClangASTImporter & GetClangASTImporter()
clang::BlockDecl * ResolveBlockDIE(const lldb_private::plugin::dwarf::DWARFDIE &die)
lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::DWARFDIE &die, bool *type_is_new_ptr) override
bool CompleteEnumType(const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
bool CompleteTypeFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &compiler_type) override
clang::DeclContext * GetClangDeclContextContainingDIE(const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::plugin::dwarf::DWARFDIE *decl_ctx_die)
clang::DeclContext * GetDeclContextForBlock(const lldb_private::plugin::dwarf::DWARFDIE &die)
void ParseInheritance(const lldb_private::plugin::dwarf::DWARFDIE &die, const lldb_private::plugin::dwarf::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.
lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const lldb_private::plugin::dwarf::DWARFDIE &die, const lldb_private::AddressRange &func_range) override
std::multimap< const clang::DeclContext *, const lldb_private::plugin::dwarf::DWARFDIE > DeclContextToDIEMap
lldb::TypeSP ParseTypeModifier(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
lldb::TypeSP ParseTypeFromClangModule(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::Log *log)
Follow Clang Module Skeleton CU references to find a type definition.
DIEToDeclContextMap m_die_to_decl_ctx
void ParseObjCProperty(const lldb_private::plugin::dwarf::DWARFDIE &die, const lldb_private::plugin::dwarf::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...
void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context) override
clang::NamespaceDecl * ResolveNamespaceDIE(const lldb_private::plugin::dwarf::DWARFDIE &die)
lldb_private::ConstString GetDIEClassTemplateParams(const lldb_private::plugin::dwarf::DWARFDIE &die) override
Returns the template parameters of a class DWARFDIE as a string.
lldb_private::ConstString ConstructDemangledNameFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
lldb::TypeSP ParseStructureLikeDIE(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Parse a structure, class, or union type DIE.
void ParseRustVariantPart(lldb_private::plugin::dwarf::DWARFDIE &die, const lldb_private::plugin::dwarf::DWARFDIE &parent_die, lldb_private::CompilerType &class_clang_type, const lldb::AccessType default_accesibility, lldb_private::ClangASTImporter::LayoutInfo &layout_info)
Parses DW_TAG_variant_part DIE into a structure that encodes all variants Note that this is currently...
~DWARFASTParserClang() override
std::vector< DelayedAddObjCClassProperty > DelayedPropertyList
std::string GetCPlusPlusQualifiedName(const lldb_private::plugin::dwarf::DWARFDIE &die)
lldb::ModuleSP GetModuleForType(const lldb_private::plugin::dwarf::DWARFDIE &die)
bool CopyUniqueClassMethodTypes(const lldb_private::plugin::dwarf::DWARFDIE &src_class_die, const lldb_private::plugin::dwarf::DWARFDIE &dst_class_die, lldb_private::Type *class_type, std::vector< lldb_private::plugin::dwarf::DWARFDIE > &failures)
clang::DeclContext * GetClangDeclContextForDIE(const lldb_private::plugin::dwarf::DWARFDIE &die)
bool ParseTemplateDIE(const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::TypeSystemClang::TemplateParameterInfos &template_param_infos)
lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
llvm::Expected< llvm::APInt > ExtractIntFromFormValue(const lldb_private::CompilerType &int_type, const lldb_private::plugin::dwarf::DWARFFormValue &form_value) const
Extracts an value for a given Clang integer type from a DWARFFormValue.
bool CompleteRecordType(const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
clang::DeclContext * GetCachedClangDeclContextForDIE(const lldb_private::plugin::dwarf::DWARFDIE &die)
bool ParseChildMembers(const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::CompilerType &class_compiler_type, std::vector< std::unique_ptr< clang::CXXBaseSpecifier > > &base_classes, std::vector< lldb_private::plugin::dwarf::DWARFDIE > &member_function_dies, std::vector< lldb_private::plugin::dwarf::DWARFDIE > &contained_type_dies, DelayedPropertyList &delayed_properties, const lldb::AccessType default_accessibility, lldb_private::ClangASTImporter::LayoutInfo &layout_info)
DIEToModuleMap m_die_to_module
void ParseSingleMember(const lldb_private::plugin::dwarf::DWARFDIE &die, const lldb_private::plugin::dwarf::DWARFDIE &parent_die, const lldb_private::CompilerType &class_clang_type, lldb::AccessType default_accessibility, lldb_private::ClangASTImporter::LayoutInfo &layout_info, FieldInfo &last_field_info)
DeclContextToDIEMap m_decl_ctx_to_die
size_t ParseChildEnumerators(lldb_private::CompilerType &compiler_type, bool is_signed, uint32_t enumerator_byte_size, const lldb_private::plugin::dwarf::DWARFDIE &parent_die)
llvm::DenseMap< const lldb_private::plugin::dwarf::DWARFDebugInfoEntry *, clang::DeclContext * > DIEToDeclContextMap
lldb::TypeSP ParseSubroutine(const lldb_private::plugin::dwarf::DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
llvm::DenseMap< const lldb_private::plugin::dwarf::DWARFDebugInfoEntry *, lldb_private::OptionalClangModuleID > DIEToModuleMap
bool ParseTemplateParameterInfos(const lldb_private::plugin::dwarf::DWARFDIE &parent_die, lldb_private::TypeSystemClang::TemplateParameterInfos &template_param_infos)
clang::Decl * GetClangDeclForDIE(const lldb_private::plugin::dwarf::DWARFDIE &die)
void LinkDeclToDIE(clang::Decl *decl, const lldb_private::plugin::dwarf::DWARFDIE &die)
void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const lldb_private::plugin::dwarf::DWARFDIE &die)
lldb_private::OptionalClangModuleID GetOwningClangModule(const lldb_private::plugin::dwarf::DWARFDIE &die)
A section + offset based address range class.
Definition: AddressRange.h:25
Manages and observes all Clang AST node importing in LLDB.
A class that describes a compilation unit.
Definition: CompileUnit.h:41
Represents a generic declaration context in a program.
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28
Generic representation of a type in a programming language.
Definition: CompilerType.h:36
A uniqued constant string class.
Definition: ConstString.h:40
A class that describes the declaration location of a lldb object.
Definition: Declaration.h:24
A class that describes a function.
Definition: Function.h:399
Defines a symbol context baton that can be handed other debug core functions.
Definition: SymbolContext.h:34
A TypeSystem implementation based on Clang.
DWARFDebugInfoEntry objects assume that they are living in one big vector and do pointer arithmetic o...
#define UINT64_MAX
Definition: lldb-defines.h:23
#define UINT32_MAX
Definition: lldb-defines.h:19
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
LanguageType
Programming language type.
@ eLanguageTypeUnknown
Unknown or invalid language value.
std::shared_ptr< lldb_private::Type > TypeSP
Definition: lldb-forward.h:449
std::shared_ptr< lldb_private::Module > ModuleSP
Definition: lldb-forward.h:365
bool NextBitfieldOffsetIsValid(const uint64_t next_bit_offset) const
Parsed form of all attributes that are relevant for parsing type members.
int64_t bit_offset
Indicates how many bits into the word (according to the host endianness) the low-order bit of the fie...
uint32_t member_byte_offset
Indicates the byte offset of the word from the base address of the structure.
lldb_private::plugin::dwarf::DWARFFormValue encoding_form
size_t bit_size
Indicates the size of the field in bits.
std::optional< lldb_private::plugin::dwarf::DWARFFormValue > const_value_form
Parsed form of all attributes that are relevant for type reconstruction.
lldb_private::Declaration decl
lldb_private::ConstString name
std::optional< uint64_t > alignment
lldb::LanguageType class_language
std::optional< uint64_t > byte_size
lldb_private::plugin::dwarf::DWARFFormValue signature
lldb_private::plugin::dwarf::DWARFFormValue type
lldb_private::plugin::dwarf::DWARFDIE object_pointer
clang::RefQualifierKind ref_qual
Indicates ref-qualifier of C++ member function if present.
lldb_private::plugin::dwarf::DWARFFormValue specification
lldb_private::plugin::dwarf::DWARFFormValue abstract_origin
lldb_private::plugin::dwarf::DWARFFormValue containing_type