[Lldb-commits] [PATCH] D49410: [PDB] Parse UDT symbols and pointers to members
Hui Huang via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 20 01:04:56 PDT 2018
Hui added inline comments.
================
Comment at: source/Plugins/SymbolFile/PDB/PDBASTParser.cpp:696
+ base_ast_type.GetOpaqueQualType(), access,
+ pdb_base_class->isVirtualBaseClass(), /*base_of_class*/ true);
+ base_classes.push_back(base_spec);
----------------
aleksandr.urakov wrote:
> Hui wrote:
> > aleksandr.urakov wrote:
> > > If I understand correctly, `base_of_class` must be `false` for structs. May be check the kind of `pdb_udt` here?
> > Struct/Union can't have base class. Only class udt is handled. I think it is safe to set it ture.
> I think that it must be `false` for following code:
> ```
> class B {
> char _b;
> };
>
> struct S : B {
> int _s;
> };
> ```
Agree.
https://reviews.llvm.org/D49410
More information about the lldb-commits
mailing list