[Lldb-commits] [lldb] [lldb][[DWARFDeclContext] Add function to extract qualified names as vector (PR #77349)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 9 12:23:49 PST 2024
================
@@ -68,6 +68,11 @@ class DWARFDeclContext {
const char *GetQualifiedName() const;
+ /// Returns a vector of string, one string per entry in the fully qualified
+ /// name. For example, for the DeclContext `A::B::C`, this methods returns
+ /// `{"C", "B", "A"}`
+ llvm::SmallVector<llvm::StringRef> GetQualifiedNameAsVector() const;
----------------
adrian-prantl wrote:
FWIW, I have no problem changing CompilerContext to use other strings if that is beneficial.
https://github.com/llvm/llvm-project/pull/77349
More information about the lldb-commits
mailing list