[Lldb-commits] [PATCH] D150157: [lldb] Mark most SBAPI methods involving private types as protected or private

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 9 14:16:47 PDT 2023


jingham added a comment.

This seems like a pretty non-intrusive way of protecting the lldb_private side of the SB API construction.

Looking at the patch makes it seem like we've been semi-randomly assorting members of the SB classes to "protected" and "private".  We have NO intentions of ever subclassing these classes, so protected vrs. private is a meaningless distinction (thus the seeming randomness of the assignment, maybe?)  It would be cleaner to go make them all private, since we don't intend to offer these for subclassing...  But this patch is getting big already, probably don't want to fold that into this one.



================
Comment at: lldb/unittests/API/SBCommandInterpreterTest.cpp:24
     SBDebugger::Initialize();
     m_dbg = SBDebugger::Create(/*source_init_files=*/false);
   }
----------------
It isn't clear to me how the changes in this file fit in with your overall goal?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150157/new/

https://reviews.llvm.org/D150157



More information about the lldb-commits mailing list