llvm-project/lldb/unittests/Target
Michał Górny 9b031d5e3a [lldb] Make Process and subclass constructors protected
Make constructors of the Process and its subclasses class protected,
to prevent accidentally constructing Process on stack when it could be
afterwards accessed via a shared_ptr (since it uses
std::enable_shared_from_this<>).

The only place where a stack allocation was used were unittests,
and fixing them via declaring an explicit public constructor
in the respective mock classes is trivial.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D131275
2022-08-08 17:34:27 +02:00
..
Inputs
ABITest.cpp
CMakeLists.txt [lldb] Add MemoryTagMap class 2022-01-26 13:55:48 +00:00
DynamicRegisterInfoTest.cpp [lldb] [DynamicRegisterInfo] Remove AddRegister() and make Finalize() protected 2021-10-25 20:05:30 +02:00
ExecutionContextTest.cpp [lldb] Make Process and subclass constructors protected 2022-08-08 17:34:27 +02:00
FindFileTest.cpp [NFC] Improve FileSpec internal APIs and usage in preparation for adding caching of resolved/absolute. 2022-07-28 13:28:26 -07:00
MemoryRegionInfoTest.cpp
MemoryTagMapTest.cpp [lldb] Add MemoryTagMap class 2022-01-26 13:55:48 +00:00
ModuleCacheTest.cpp [NFC] Improve FileSpec internal APIs and usage in preparation for adding caching of resolved/absolute. 2022-07-28 13:28:26 -07:00
PathMappingListTest.cpp [lldb][NFC] avoid unnecessary roundtrips between different string types 2021-11-01 22:15:01 -07:00
RemoteAwarePlatformTest.cpp [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
StackFrameRecognizerTest.cpp [lldb] Store StackFrameRecognizers in the target instead of a global list 2020-07-17 09:26:27 +02:00