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) override;
51 
52  bool
54  lldb_private::CompilerType &compiler_type) override;
55 
57  GetDeclForUIDFromDWARF(const DWARFDIE &die) override;
58 
60  lldb_private::CompilerDeclContext decl_context) override;
61 
63  GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override;
64 
67 
69 
70 protected:
71  /// Protected typedefs and members.
72  /// @{
74  typedef std::vector<DelayedAddObjCClassProperty> DelayedPropertyList;
75 
76  typedef llvm::SmallPtrSet<const DWARFDebugInfoEntry *, 4> DIEPointerSet;
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  typedef llvm::DenseMap<const clang::Decl *, DIEPointerSet> DeclToDIEMap;
87 
94  std::unique_ptr<lldb_private::ClangASTImporter> m_clang_ast_importer_up;
95  /// @}
96 
97  clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die);
98 
99  clang::BlockDecl *ResolveBlockDIE(const DWARFDIE &die);
100 
101  clang::NamespaceDecl *ResolveNamespaceDIE(const DWARFDIE &die);
102 
103  bool ParseTemplateDIE(const DWARFDIE &die,
105  &template_param_infos);
107  const DWARFDIE &parent_die,
109  &template_param_infos);
110 
111  bool ParseChildMembers(
112  const DWARFDIE &die, lldb_private::CompilerType &class_compiler_type,
113  std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
114  std::vector<int> &member_accessibilities,
115  std::vector<DWARFDIE> &member_function_dies,
116  DelayedPropertyList &delayed_properties,
117  lldb::AccessType &default_accessibility, bool &is_a_class,
119 
120  size_t
121  ParseChildParameters(clang::DeclContext *containing_decl_ctx,
122  const DWARFDIE &parent_die, bool skip_artificial,
123  bool &is_static, bool &is_variadic,
124  bool &has_template_params,
125  std::vector<lldb_private::CompilerType> &function_args,
126  std::vector<clang::ParmVarDecl *> &function_param_decls,
127  unsigned &type_quals);
128 
130  bool is_signed, uint32_t enumerator_byte_size,
131  const DWARFDIE &parent_die);
132 
133  /// Parse a structure, class, or union type DIE.
134  lldb::TypeSP ParseStructureLikeDIE(const lldb_private::SymbolContext &sc,
135  const DWARFDIE &die,
137 
139 
140  clang::Decl *GetClangDeclForDIE(const DWARFDIE &die);
141 
142  clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die);
143 
144  clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die,
145  DWARFDIE *decl_ctx_die);
147 
148  bool CopyUniqueClassMethodTypes(const DWARFDIE &src_class_die,
149  const DWARFDIE &dst_class_die,
150  lldb_private::Type *class_type,
151  std::vector<DWARFDIE> &failures);
152 
153  clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die);
154 
155  void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
156 
157  void LinkDeclToDIE(clang::Decl *decl, const DWARFDIE &die);
158 
159  /// If \p type_sp is valid, calculate and set its symbol context scope, and
160  /// update the type list for its backing symbol file.
161  ///
162  /// Returns \p type_sp.
163  lldb::TypeSP
165  const DWARFDIE &die, lldb::TypeSP type_sp);
166 
167  /// Follow Clang Module Skeleton CU references to find a type definition.
169  const DWARFDIE &die,
170  lldb_private::Log *log);
171 
172  // Return true if this type is a declaration to a type in an external
173  // module.
174  lldb::ModuleSP GetModuleForType(const DWARFDIE &die);
175 
176 private:
177  struct FieldInfo {
178  uint64_t bit_size = 0;
179  uint64_t bit_offset = 0;
180  bool is_bitfield = false;
181 
182  FieldInfo() = default;
183 
184  void SetIsBitfield(bool flag) { is_bitfield = flag; }
185  bool IsBitfield() { return is_bitfield; }
186 
187  bool NextBitfieldOffsetIsValid(const uint64_t next_bit_offset) const {
188  // Any subsequent bitfields must not overlap and must be at a higher
189  // bit offset than any previous bitfield + size.
190  return (bit_size + bit_offset) <= next_bit_offset;
191  }
192  };
193 
194  void
195  ParseSingleMember(const DWARFDIE &die, const DWARFDIE &parent_die,
196  const lldb_private::CompilerType &class_clang_type,
197  std::vector<int> &member_accessibilities,
198  lldb::AccessType default_accessibility,
199  DelayedPropertyList &delayed_properties,
201  FieldInfo &last_field_info);
202 
203  bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type,
204  lldb_private::CompilerType &clang_type);
205  bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type,
206  lldb_private::CompilerType &clang_type);
207 
208  lldb::TypeSP ParseTypeModifier(const lldb_private::SymbolContext &sc,
209  const DWARFDIE &die,
211  lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc,
212  const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs);
213  lldb::TypeSP ParseSubroutine(const DWARFDIE &die,
215  // FIXME: attrs should be passed as a const reference.
216  lldb::TypeSP ParseArrayType(const DWARFDIE &die,
218  lldb::TypeSP ParsePointerToMemberType(const DWARFDIE &die,
219  const ParsedDWARFTypeAttributes &attrs);
220 };
221 
222 /// Parsed form of all attributes that are relevant for type reconstruction.
223 /// Some attributes are relevant for all kinds of types (declaration), while
224 /// others are only meaningful to a specific type (is_virtual)
226  explicit ParsedDWARFTypeAttributes(const DWARFDIE &die);
227 
229  bool is_artificial = false;
231  bool is_explicit = false;
233  bool is_inline = false;
234  bool is_scoped_enum = false;
235  bool is_vector = false;
236  bool is_virtual = false;
237  bool is_objc_direct_call = false;
238  bool exports_symbols = false;
239  clang::StorageClass storage = clang::SC_None;
240  const char *mangled_name = nullptr;
250  llvm::Optional<uint64_t> byte_size;
251  size_t calling_convention = llvm::dwarf::DW_CC_normal;
255 };
256 
257 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERCLANG_H
ParsedDWARFTypeAttributes::is_vector
bool is_vector
Definition: DWARFASTParserClang.h:235
DWARFASTParserClang::DelayedAddObjCClassProperty
Definition: DWARFASTParserClang.cpp:1759
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:3503
DWARFASTParserClang::GetTypeForDIE
lldb_private::Type * GetTypeForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3141
ParsedDWARFTypeAttributes::name
lldb_private::ConstString name
Definition: DWARFASTParserClang.h:241
ParsedDWARFTypeAttributes
Parsed form of all attributes that are relevant for type reconstruction.
Definition: DWARFASTParserClang.h:225
DWARFDIE.h
DWARFASTParserClang::GetCachedClangDeclContextForDIE
clang::DeclContext * GetCachedClangDeclContextForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3486
ParsedDWARFTypeAttributes::type
DWARFFormValue type
Definition: DWARFASTParserClang.h:248
ParsedDWARFTypeAttributes::is_forward_declaration
bool is_forward_declaration
Definition: DWARFASTParserClang.h:232
DWARFASTParserClang::DelayedPropertyList
std::vector< DelayedAddObjCClassProperty > DelayedPropertyList
Definition: DWARFASTParserClang.h:73
ParsedDWARFTypeAttributes::class_language
lldb::LanguageType class_language
Definition: DWARFASTParserClang.h:249
DWARFASTParserClang::ResolveNamespaceDIE
clang::NamespaceDecl * ResolveNamespaceDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3416
ParsedDWARFTypeAttributes::signature
DWARFFormValue signature
Definition: DWARFASTParserClang.h:246
DWARFASTParserClang::GetDeclForUIDFromDWARF
lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2143
SymbolFileDWARF
Definition: SymbolFileDWARF.h:58
lldb::LanguageType
LanguageType
Programming language type.
Definition: lldb-enumerations.h:436
ParsedDWARFTypeAttributes::byte_stride
uint32_t byte_stride
Definition: DWARFASTParserClang.h:253
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:1928
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:1414
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
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:15
DWARFASTParserClang::GetClangDeclForDIE
clang::Decl * GetClangDeclForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3162
DWARFASTParserClang::LinkDeclContextToDIE
void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3495
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:2924
DWARFASTParserClang::GetClangDeclContextContainingDIE
clang::DeclContext * GetClangDeclContextContainingDIE(const DWARFDIE &die, DWARFDIE *decl_ctx_die)
Definition: DWARFASTParserClang.cpp:3467
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:1379
DWARFASTParserClang::GetClangDeclContextForDIE
clang::DeclContext * GetClangDeclContextForDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3263
DWARFASTParserClang::ParseFunctionFromDWARF
lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2234
ParsedDWARFTypeAttributes::storage
clang::StorageClass storage
Definition: DWARFASTParserClang.h:239
ParsedDWARFTypeAttributes::is_inline
bool is_inline
Definition: DWARFASTParserClang.h:233
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:187
DWARFASTParserClang::m_die_to_module
DIEToModuleMap m_die_to_module
Definition: DWARFASTParserClang.h:93
DWARFASTParserClang::GetDeclContextContainingUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2159
DWARFASTParserClang::CompleteRecordType
bool CompleteRecordType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
Definition: DWARFASTParserClang.cpp:1954
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:228
DWARFASTParserClang::FieldInfo::bit_offset
uint64_t bit_offset
Definition: DWARFASTParserClang.h:179
lldb::eAccessNone
@ eAccessNone
Definition: lldb-enumerations.h:508
DWARFASTParserClang::FieldInfo::SetIsBitfield
void SetIsBitfield(bool flag)
Definition: DWARFASTParserClang.h:184
DWARFASTParser.h
lldb_private::ConstString
Definition: ConstString.h:40
DWARFASTParserClang::DeclContextToDIEMap
std::multimap< const clang::DeclContext *, const DWARFDIE > DeclContextToDIEMap
Definition: DWARFASTParserClang.h:80
ParsedDWARFTypeAttributes::abstract_origin
DWARFFormValue abstract_origin
Definition: DWARFASTParserClang.h:244
DWARFFormValue
Definition: DWARFFormValue.h:20
PluginInterface.h
DWARFASTParserClang::ParseChildMembers
bool ParseChildMembers(const DWARFDIE &die, lldb_private::CompilerType &class_compiler_type, std::vector< std::unique_ptr< clang::CXXBaseSpecifier >> &base_classes, std::vector< int > &member_accessibilities, std::vector< DWARFDIE > &member_function_dies, DelayedPropertyList &delayed_properties, lldb::AccessType &default_accessibility, bool &is_a_class, lldb_private::ClangASTImporter::LayoutInfo &layout_info)
Definition: DWARFASTParserClang.cpp:2766
LogChannelDWARF.h
DWARFASTParserClang::m_die_to_decl_ctx
DIEToDeclContextMap m_die_to_decl_ctx
Definition: DWARFASTParserClang.h:91
ParsedDWARFTypeAttributes::is_explicit
bool is_explicit
Definition: DWARFASTParserClang.h:231
ParsedDWARFTypeAttributes::is_objc_direct_call
bool is_objc_direct_call
Definition: DWARFASTParserClang.h:237
DWARFASTParserClang::FieldInfo::FieldInfo
FieldInfo()=default
ParsedDWARFTypeAttributes::bit_stride
uint32_t bit_stride
Definition: DWARFASTParserClang.h:252
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition: CompilerDeclContext.h:30
DWARFASTParserClang::FieldInfo
Definition: DWARFASTParserClang.h:177
DWARFASTParserClang::FieldInfo::is_bitfield
bool is_bitfield
Definition: DWARFASTParserClang.h:180
DWARFASTParserClang::GetClangASTImporter
lldb_private::ClangASTImporter & GetClangASTImporter()
Definition: DWARFASTParserClang.cpp:91
ParsedDWARFTypeAttributes::calling_convention
size_t calling_convention
Definition: DWARFASTParserClang.h:251
DWARFASTParserClang::FieldInfo::IsBitfield
bool IsBitfield()
Definition: DWARFASTParserClang.h:185
ParsedDWARFTypeAttributes::encoding
uint32_t encoding
Definition: DWARFASTParserClang.h:254
DWARFASTParserClang::m_decl_to_die
DeclToDIEMap m_decl_to_die
Definition: DWARFASTParserClang.h:90
DWARFASTParserClang::~DWARFASTParserClang
~DWARFASTParserClang() override
Definition: DWARFASTParserClang.cpp:63
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:230
lldb_private::OptionalClangModuleID
A Clang module ID.
Definition: TypeSystemClang.h:57
lldb::eLanguageTypeUnknown
@ eLanguageTypeUnknown
Unknown or invalid language value.
Definition: lldb-enumerations.h:437
DWARFASTParserClang::DIEPointerSet
llvm::SmallPtrSet< const DWARFDebugInfoEntry *, 4 > DIEPointerSet
Definition: DWARFASTParserClang.h:76
uint32_t
DWARFASTParser
Definition: DWARFASTParser.h:25
DWARFASTParserClang::DIEToModuleMap
llvm::DenseMap< const DWARFDebugInfoEntry *, lldb_private::OptionalClangModuleID > DIEToModuleMap
Definition: DWARFASTParserClang.h:83
DWARFASTParserClang::ParseSingleMember
void ParseSingleMember(const DWARFDIE &die, const DWARFDIE &parent_die, const lldb_private::CompilerType &class_clang_type, std::vector< int > &member_accessibilities, lldb::AccessType default_accessibility, DelayedPropertyList &delayed_properties, lldb_private::ClangASTImporter::LayoutInfo &layout_info, FieldInfo &last_field_info)
Definition: DWARFASTParserClang.cpp:2348
DWARFASTParserClang::FieldInfo::bit_size
uint64_t bit_size
Definition: DWARFASTParserClang.h:178
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:240
DWARFASTParserClang::GetDeclContextForUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override
Definition: DWARFASTParserClang.cpp:2151
ParsedDWARFTypeAttributes::byte_size
llvm::Optional< uint64_t > byte_size
Definition: DWARFASTParserClang.h:250
DWARFASTParserClang::m_die_to_decl
DIEToDeclMap m_die_to_decl
Definition: DWARFASTParserClang.h:89
DWARFASTParserClang::EnsureAllDIEsInDeclContextHaveBeenParsed
void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context) override
Definition: DWARFASTParserClang.cpp:2131
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:2091
DWARFASTParserClang::m_ast
lldb_private::TypeSystemClang & m_ast
Definition: DWARFASTParserClang.h:88
DWARFASTParserClang::DeclToDIEMap
llvm::DenseMap< const clang::Decl *, DIEPointerSet > DeclToDIEMap
Definition: DWARFASTParserClang.h:86
DWARFASTParserClang::ParseEnum
lldb::TypeSP ParseEnum(const lldb_private::SymbolContext &sc, const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:772
DWARFASTParserClang::ParseArrayType
lldb::TypeSP ParseArrayType(const DWARFDIE &die, ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:1303
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:247
ParsedDWARFTypeAttributes::decl
lldb_private::Declaration decl
Definition: DWARFASTParserClang.h:242
DWARFASTParserClang::ResolveBlockDIE
clang::BlockDecl * ResolveBlockDIE(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3394
ParsedDWARFTypeAttributes::containing_type
DWARFFormValue containing_type
Definition: DWARFASTParserClang.h:245
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:880
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:1819
ClangASTImporter.h
ParsedDWARFTypeAttributes::is_scoped_enum
bool is_scoped_enum
Definition: DWARFASTParserClang.h:234
DWARFASTParserClang::GetOwningClangModule
lldb_private::OptionalClangModuleID GetOwningClangModule(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3306
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:320
lldb_private::Log
Definition: Log.h:49
DWARFASTParserClang::GetDeclContextForBlock
clang::DeclContext * GetDeclContextForBlock(const DWARFDIE &die)
Definition: DWARFASTParserClang.cpp:3380
ParsedDWARFTypeAttributes::is_artificial
bool is_artificial
Definition: DWARFASTParserClang.h:229
ParsedDWARFTypeAttributes::object_pointer
DWARFDIE object_pointer
Definition: DWARFASTParserClang.h:243
DWARFASTParserClang::m_decl_ctx_to_die
DeclContextToDIEMap m_decl_ctx_to_die
Definition: DWARFASTParserClang.h:92
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:238
DWARFASTParserClang::CompleteEnumType
bool CompleteEnumType(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &clang_type)
Definition: DWARFASTParserClang.cpp:2076
lldb::AccessType
AccessType
Definition: lldb-enumerations.h:507
DWARFASTParserClang::ParsePointerToMemberType
lldb::TypeSP ParsePointerToMemberType(const DWARFDIE &die, const ParsedDWARFTypeAttributes &attrs)
Definition: DWARFASTParserClang.cpp:1356
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:2167
DWARFASTParserClang::m_clang_ast_importer_up
std::unique_ptr< lldb_private::ClangASTImporter > m_clang_ast_importer_up
Definition: DWARFASTParserClang.h:94
ParsedDWARFTypeAttributes::is_virtual
bool is_virtual
Definition: DWARFASTParserClang.h:236