llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.37k stars 12.14k forks source link

[lldb/API] Create a single class in `lldb` public namespace that has all of the abilities to access the private methods of any `lldb::SB` classes. #102271

Open medismailben opened 3 months ago

medismailben commented 3 months ago

We keep friending new classes in all of the lldb::SB header files. I wonder if we should create a single class inside of lldb that has all of the abilities to access the private methods of any lldb::SB classes and then have a bunch of static calls on this one class that everyone internally can use?

_Originally posted by @clayborg in https://github.com/llvm/llvm-project/pull/99814#discussion_r1704942849_

llvmbot commented 3 months ago

@llvm/issue-subscribers-lldb

Author: Med Ismail Bennani (medismailben)

We keep friending new classes in all of the `lldb::SB` header files. I wonder if we should create a single class inside of lldb that has all of the abilities to access the private methods of any `lldb::SB` classes and then have a bunch of static calls on this one class that everyone internally can use? _Originally posted by @clayborg in https://github.com/llvm/llvm-project/pull/99814#discussion_r1704942849_