This is an archive of the discontinued LLVM Phabricator instance.

Support member functions construction and lookup in PdbAstBuilder
Needs ReviewPublic

Authored by zloyrobot on May 14 2019, 3:15 AM.

Details

Summary

This path implements member function support in PdbAstBuilder::GetOrCreateFunctionDecl. It allows to lookup and evaluate struct fields inside struct members

Diff Detail

Repository
rLLDB LLDB

Event Timeline

zloyrobot created this revision.May 14 2019, 3:15 AM

Is this still an active review or has this been abandoned?

lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
1047

It looks like CreateFunctionDeclaration can fail (returning a null pointer). Should this bail out if function_decl remains null pointer here (rather than crashing several lines later, after creating some bad mappings)? Should we assert here to make debugging easier?

Also, nit, check the indentation here.