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
50
51 // DWARFASTParser interface.
53 const DWARFDIE &die,
54 bool *type_is_new_ptr) override;
55
57 ConstructDemangledNameFromDWARF(const DWARFDIE &die) override;
58
61 const DWARFDIE &die,
62 const lldb_private::AddressRange &func_range) override;
63
64 bool
66 lldb_private::CompilerType &compiler_type) override;
67
69 GetDeclForUIDFromDWARF(const DWARFDIE &die) override;
70
72 lldb_private::CompilerDeclContext decl_context) override;
73
75 GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override;
76
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 GetDIEClassTemplateParams(const DWARFDIE &die) override;
110
111 // Searching for definition DIE for the given DIE and return the type
112 // associated with the definition DIE, or nullptr if definition DIE is not
113 // found.
115
116protected:
117 /// Protected typedefs and members.
118 /// @{
120 typedef std::vector<DelayedAddObjCClassProperty> DelayedPropertyList;
121
122 typedef llvm::DenseMap<
124 clang::DeclContext *>
126 typedef std::multimap<const clang::DeclContext *, const DWARFDIE>
128 typedef llvm::DenseMap<
132 typedef llvm::DenseMap<
135
141 std::unique_ptr<lldb_private::ClangASTImporter> m_clang_ast_importer_up;
142 /// @}
143
144 clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die);
145
146 clang::BlockDecl *ResolveBlockDIE(const DWARFDIE &die);
147
148 clang::NamespaceDecl *ResolveNamespaceDIE(const DWARFDIE &die);
149
150 /// Returns the namespace decl that a DW_TAG_imported_declaration imports.
151 ///
152 /// \param[in] die The import declaration to resolve. If the DIE is not a
153 /// DW_TAG_imported_declaration the behaviour is undefined.
154 ///
155 /// \returns The decl corresponding to the namespace that the specified
156 /// 'die' imports. If the imported entity is not a namespace
157 /// or another import declaration, returns nullptr. If an error
158 /// occurs, returns nullptr.
159 clang::NamespaceDecl *ResolveImportedDeclarationDIE(const DWARFDIE &die);
160
161 bool ParseTemplateDIE(const DWARFDIE &die,
163 &template_param_infos);
164
166 const DWARFDIE &parent_die,
168 &template_param_infos);
169
170 std::string GetCPlusPlusQualifiedName(const DWARFDIE &die);
171
173 const DWARFDIE &die, lldb_private::CompilerType &class_compiler_type,
174 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
175 std::vector<DWARFDIE> &member_function_dies,
176 std::vector<DWARFDIE> &contained_type_dies,
177 DelayedPropertyList &delayed_properties,
178 const lldb::AccessType default_accessibility,
180
181 size_t
182 ParseChildParameters(clang::DeclContext *containing_decl_ctx,
183 const DWARFDIE &parent_die, bool skip_artificial,
184 bool &is_static, bool &is_variadic,
185 bool &has_template_params,
186 std::vector<lldb_private::CompilerType> &function_args,
187 std::vector<clang::ParmVarDecl *> &function_param_decls,
188 unsigned &type_quals);
189
191 bool is_signed, uint32_t enumerator_byte_size,
192 const DWARFDIE &parent_die);
193
194 /// Parse a structure, class, or union type DIE.
196 const DWARFDIE &die,
198
199 clang::Decl *GetClangDeclForDIE(const DWARFDIE &die);
200
201 clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die);
202
203 clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die,
204 DWARFDIE *decl_ctx_die);
206
207 bool CopyUniqueClassMethodTypes(const DWARFDIE &src_class_die,
208 const DWARFDIE &dst_class_die,
209 lldb_private::Type *class_type,
210 std::vector<DWARFDIE> &failures);
211
212 clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die);
213
214 void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
215
216 void LinkDeclToDIE(clang::Decl *decl, const DWARFDIE &die);
217
218 /// If \p type_sp is valid, calculate and set its symbol context scope, and
219 /// update the type list for its backing symbol file.
220 ///
221 /// Returns \p type_sp.
224 const DWARFDIE &die, lldb::TypeSP type_sp);
225
226 /// Follow Clang Module Skeleton CU references to find a type definition.
228 const DWARFDIE &die,
229 lldb_private::Log *log);
230
231 // Return true if this type is a declaration to a type in an external
232 // module.
234
235 void PrepareContextToReceiveMembers(clang::DeclContext *decl_ctx,
236 const DWARFDIE &decl_ctx_die,
237 const DWARFDIE &die,
238 const char *type_name_cstr);
239
240 static bool classof(const DWARFASTParser *Parser) {
241 return Parser->GetKind() == Kind::DWARFASTParserClang;
242 }
243
244private:
245 struct FieldInfo {
246 uint64_t bit_size = 0;
247 uint64_t bit_offset = 0;
248 bool is_bitfield = false;
249 bool is_artificial = false;
250
251 FieldInfo() = default;
252
253 void SetIsBitfield(bool flag) { is_bitfield = flag; }
254 bool IsBitfield() { return is_bitfield; }
255
256 void SetIsArtificial(bool flag) { is_artificial = flag; }
257 bool IsArtificial() const { return is_artificial; }
258
259 bool NextBitfieldOffsetIsValid(const uint64_t next_bit_offset) const {
260 // Any subsequent bitfields must not overlap and must be at a higher
261 // bit offset than any previous bitfield + size.
262 return (bit_size + bit_offset) <= next_bit_offset;
263 }
264 };
265
266 /// Parsed form of all attributes that are relevant for parsing type members.
268 explicit MemberAttributes(const DWARFDIE &die, const DWARFDIE &parent_die,
269 lldb::ModuleSP module_sp);
270 const char *name = nullptr;
271 /// Indicates how many bits into the word (according to the host endianness)
272 /// the low-order bit of the field starts. Can be negative.
273 int64_t bit_offset = 0;
274 /// Indicates the size of the field in bits.
275 size_t bit_size = 0;
278 std::optional<uint64_t> byte_size;
279 std::optional<lldb_private::plugin::dwarf::DWARFFormValue> const_value_form;
281 /// Indicates the byte offset of the word from the base address of the
282 /// structure.
284 bool is_artificial = false;
285 bool is_declaration = false;
286 };
287
288 /// Returns 'true' if we should create an unnamed bitfield
289 /// and add it to the parser's current AST.
290 ///
291 /// \param[in] last_field_info FieldInfo of the previous DW_TAG_member
292 /// we parsed.
293 /// \param[in] last_field_end Offset (in bits) where the last parsed field
294 /// ended.
295 /// \param[in] this_field_info FieldInfo of the current DW_TAG_member
296 /// being parsed.
297 /// \param[in] layout_info Layout information of all decls parsed by the
298 /// current parser.
300 FieldInfo const &last_field_info, uint64_t last_field_end,
301 FieldInfo const &this_field_info,
302 lldb_private::ClangASTImporter::LayoutInfo const &layout_info) const;
303
304 /// Parses a DW_TAG_APPLE_property DIE and appends the parsed data to the
305 /// list of delayed Objective-C properties.
306 ///
307 /// Note: The delayed property needs to be finalized to actually create the
308 /// property declarations in the module AST.
309 ///
310 /// \param die The DW_TAG_APPLE_property DIE that will be parsed.
311 /// \param parent_die The parent DIE.
312 /// \param class_clang_type The Objective-C class that will contain the
313 /// created property.
314 /// \param delayed_properties The list of delayed properties that the result
315 /// will be appended to.
316 void ParseObjCProperty(const DWARFDIE &die, const DWARFDIE &parent_die,
317 const lldb_private::CompilerType &class_clang_type,
318 DelayedPropertyList &delayed_properties);
319
320 void
321 ParseSingleMember(const DWARFDIE &die, const DWARFDIE &parent_die,
322 const lldb_private::CompilerType &class_clang_type,
323 lldb::AccessType default_accessibility,
325 FieldInfo &last_field_info);
326
327 /// If the specified 'die' represents a static data member, creates
328 /// a 'clang::VarDecl' for it and attaches it to specified parent
329 /// 'class_clang_type'.
330 ///
331 /// \param[in] die The member declaration we want to create a
332 /// clang::VarDecl for.
333 ///
334 /// \param[in] attrs The parsed attributes for the specified 'die'.
335 ///
336 /// \param[in] class_clang_type The parent RecordType of the static
337 /// member this function will create.
339 const DWARFDIE &die, const MemberAttributes &attrs,
340 const lldb_private::CompilerType &class_clang_type);
341
342 bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type,
343 lldb_private::CompilerType &clang_type);
344 bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type,
345 lldb_private::CompilerType &clang_type);
346
348 const DWARFDIE &die,
351 const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs);
353 const ParsedDWARFTypeAttributes &attrs);
355 const ParsedDWARFTypeAttributes &attrs);
357 const ParsedDWARFTypeAttributes &attrs);
358
359 /// Parses a DW_TAG_inheritance DIE into a base/super class.
360 ///
361 /// \param die The DW_TAG_inheritance DIE to parse.
362 /// \param parent_die The parent DIE of the given DIE.
363 /// \param class_clang_type The C++/Objective-C class representing parent_die.
364 /// For an Objective-C class this method sets the super class on success. For
365 /// a C++ class this will *not* add the result as a base class.
366 /// \param default_accessibility The default accessibility that is given to
367 /// base classes if they don't have an explicit accessibility set.
368 /// \param module_sp The current Module.
369 /// \param base_classes The list of C++ base classes that will be appended
370 /// with the parsed base class on success.
371 /// \param layout_info The layout information that will be updated for C++
372 /// base classes with the base offset.
373 void ParseInheritance(
374 const DWARFDIE &die, const DWARFDIE &parent_die,
375 const lldb_private::CompilerType class_clang_type,
376 const lldb::AccessType default_accessibility,
377 const lldb::ModuleSP &module_sp,
378 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
380
381 /// Parses DW_TAG_variant_part DIE into a structure that encodes all variants
382 /// Note that this is currently being emitted by rustc and not Clang
383 /// \param die DW_TAG_variant_part DIE to parse
384 /// \param parent_die The parent DW_TAG_structure_type to parse
385 /// \param class_clang_type The Rust struct representing parent_die.
386 /// \param default_accesibility The default accessibility that is given to
387 /// base classes if they don't have an explicit accessibility set
388 /// \param layout_info The layout information that will be updated for
389 // base classes with the base offset
390 void
391 ParseRustVariantPart(DWARFDIE &die, const DWARFDIE &parent_die,
392 lldb_private::CompilerType &class_clang_type,
393 const lldb::AccessType default_accesibility,
395};
396
397/// Parsed form of all attributes that are relevant for type reconstruction.
398/// Some attributes are relevant for all kinds of types (declaration), while
399/// others are only meaningful to a specific type (is_virtual)
402
403 explicit ParsedDWARFTypeAttributes(const DWARFDIE &die);
404
406 bool is_artificial = false;
408 bool is_explicit = false;
410 bool is_inline = false;
411 bool is_scoped_enum = false;
412 bool is_vector = false;
413 bool is_virtual = false;
415 bool exports_symbols = false;
416 clang::StorageClass storage = clang::SC_None;
417 const char *mangled_name = nullptr;
427 std::optional<uint64_t> byte_size;
428 std::optional<uint64_t> alignment;
429 size_t calling_convention = llvm::dwarf::DW_CC_normal;
430 uint32_t bit_stride = 0;
431 uint32_t byte_stride = 0;
432 uint32_t encoding = 0;
433 clang::RefQualifierKind ref_qual =
434 clang::RQ_None; ///< Indicates ref-qualifier of
435 ///< C++ member function if present.
436 ///< Is RQ_None otherwise.
437};
438
439#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERCLANG_H
bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
lldb::TypeSP ParsePointerToMemberType(const DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
std::multimap< const clang::DeclContext *, const DWARFDIE > DeclContextToDIEMap
void CreateStaticMemberVariable(const 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...
bool ParseTemplateDIE(const DWARFDIE &die, lldb_private::TypeSystemClang::TemplateParameterInfos &template_param_infos)
lldb::TypeSP ParseSubroutine(const DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
std::unique_ptr< lldb_private::ClangASTImporter > m_clang_ast_importer_up
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)
static bool classof(const DWARFASTParser *Parser)
llvm::DenseMap< const lldb_private::plugin::dwarf::DWARFDebugInfoEntry *, clang::Decl * > DIEToDeclMap
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_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const DWARFDIE &die, const lldb_private::AddressRange &func_range) override
void LinkDeclToDIE(clang::Decl *decl, const DWARFDIE &die)
void ParseRustVariantPart(DWARFDIE &die, const 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...
lldb_private::ClangASTImporter & GetClangASTImporter()
clang::NamespaceDecl * ResolveNamespaceDIE(const DWARFDIE &die)
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, std::vector< DWARFDIE > &contained_type_dies, DelayedPropertyList &delayed_properties, const lldb::AccessType default_accessibility, lldb_private::ClangASTImporter::LayoutInfo &layout_info)
lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override
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...
lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) override
DIEToDeclContextMap m_die_to_decl_ctx
std::string GetCPlusPlusQualifiedName(const DWARFDIE &die)
void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context) override
lldb::TypeSP ParseArrayType(const DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
size_t ParseChildEnumerators(lldb_private::CompilerType &compiler_type, bool is_signed, uint32_t enumerator_byte_size, const DWARFDIE &parent_die)
clang::DeclContext * GetCachedClangDeclContextForDIE(const DWARFDIE &die)
clang::NamespaceDecl * ResolveImportedDeclarationDIE(const DWARFDIE &die)
Returns the namespace decl that a DW_TAG_imported_declaration imports.
bool CopyUniqueClassMethodTypes(const DWARFDIE &src_class_die, const DWARFDIE &dst_class_die, lldb_private::Type *class_type, std::vector< DWARFDIE > &failures)
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...
lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new_ptr) override
clang::DeclContext * GetClangDeclContextContainingDIE(const DWARFDIE &die, DWARFDIE *decl_ctx_die)
lldb::TypeSP ParseTypeModifier(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
~DWARFASTParserClang() override
bool CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &compiler_type) override
std::vector< DelayedAddObjCClassProperty > DelayedPropertyList
void PrepareContextToReceiveMembers(clang::DeclContext *decl_ctx, const DWARFDIE &decl_ctx_die, const DWARFDIE &die, const char *type_name_cstr)
This function serves a similar purpose as RequireCompleteType above, but it avoids completing the typ...
lldb::ModuleSP GetModuleForType(const DWARFDIE &die)
clang::BlockDecl * ResolveBlockDIE(const DWARFDIE &die)
lldb::TypeSP ParseStructureLikeDIE(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Parse a structure, class, or union type DIE.
lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
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.
clang::DeclContext * GetDeclContextForBlock(const DWARFDIE &die)
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.
DIEToModuleMap m_die_to_module
DeclContextToDIEMap m_decl_ctx_to_die
llvm::DenseMap< const lldb_private::plugin::dwarf::DWARFDebugInfoEntry *, clang::DeclContext * > DIEToDeclContextMap
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.
lldb_private::OptionalClangModuleID GetOwningClangModule(const DWARFDIE &die)
llvm::DenseMap< const lldb_private::plugin::dwarf::DWARFDebugInfoEntry *, lldb_private::OptionalClangModuleID > DIEToModuleMap
lldb_private::ConstString GetDIEClassTemplateParams(const DWARFDIE &die) override
Returns the template parameters of a class DWARFDIE as a string.
void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die)
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)
lldb_private::ConstString ConstructDemangledNameFromDWARF(const DWARFDIE &die) override
bool ParseTemplateParameterInfos(const DWARFDIE &parent_die, lldb_private::TypeSystemClang::TemplateParameterInfos &template_param_infos)
clang::DeclContext * GetClangDeclContextForDIE(const DWARFDIE &die)
lldb_private::plugin::dwarf::DWARFDIE DWARFDIE
clang::Decl * GetClangDeclForDIE(const DWARFDIE &die)
lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die) override
lldb_private::Type * FindDefinitionTypeForDIE(const DWARFDIE &die) override
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.
LanguageType
Programming language type.
@ eLanguageTypeUnknown
Unknown or invalid language value.
std::shared_ptr< lldb_private::Type > TypeSP
Definition: lldb-forward.h:452
std::shared_ptr< lldb_private::Module > ModuleSP
Definition: lldb-forward.h:368
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
clang::RefQualifierKind ref_qual
Indicates ref-qualifier of C++ member function if present.
lldb_private::plugin::dwarf::DWARFDIE DWARFDIE
lldb_private::plugin::dwarf::DWARFFormValue specification
lldb_private::plugin::dwarf::DWARFFormValue abstract_origin
lldb_private::plugin::dwarf::DWARFFormValue containing_type