llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.92k stars 11.52k 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 1 month ago

medismailben commented 1 month 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 1 month 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_