[Lldb-commits] [PATCH] D18848: Add PDBASTParser and parse type information from PDB
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 7 12:34:17 PDT 2016
clayborg added a comment.
> One oddity of PDB is that the debug info does not maintain enough information to accurately reconstruct the DeclContext hierarchy. If you have this:
> namespace Foo
> class Bar
> class Baz
> then that will appear in the PDB as a type with the name Foo::Bar::Baz, and there's no information about whether Foo and Bar are namespaces or classes. It is possible to give a best effort attempt, but it's going to be outside the scope of this patch. So, for now, I intend to put every single type under the master translation unit decl with fully scoped names. This isn't perfect, but we can iterate on it in the future.
> Again, this is a work in progress, mostly just want to make sure this looks like the right approach.
Couldn't you always just lookup "Foo::Bar" and see if you find a class? And then lookup "Foo" and find a namespace?
More information about the lldb-commits