Author: Raphael Isemann
Date: 2026-08-07T15:58:23+01:00
New Revision: 84c67231cc94ea6502c3026914e59e2f9402f75b

URL: 
https://github.com/llvm/llvm-project/commit/84c67231cc94ea6502c3026914e59e2f9402f75b
DIFF: 
https://github.com/llvm/llvm-project/commit/84c67231cc94ea6502c3026914e59e2f9402f75b.diff

LOG: [lldb][NFC] Don't use LLDB.h in multiple-targets/debuggers tests (#210981)

LLDB.h is a header that includes (nearly) every SB API header
indirectly. This patch replaces the use of this header in some .cpp
tests by instead directly including the needed headers. This is mainly
to reduce compilation times of these files as they are recompiled on
each test run.

Added: 
    

Modified: 
    lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp
    lldb/test/API/api/multiple-targets/main.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp 
b/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp
index 68d73f1dee011..5847dc709a771 100644
--- a/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp
+++ b/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp
@@ -19,10 +19,18 @@
 #include <string.h>
 #include <unistd.h>
 
-#include "lldb/API/LLDB.h"
+#include "lldb/API/SBBreakpoint.h"
+#include "lldb/API/SBBroadcaster.h"
 #include "lldb/API/SBCommandInterpreter.h"
-#include "lldb/API/SBCommandReturnObject.h"
 #include "lldb/API/SBDebugger.h"
+#include "lldb/API/SBError.h"
+#include "lldb/API/SBEvent.h"
+#include "lldb/API/SBFrame.h"
+#include "lldb/API/SBLaunchInfo.h"
+#include "lldb/API/SBListener.h"
+#include "lldb/API/SBProcess.h"
+#include "lldb/API/SBTarget.h"
+#include "lldb/API/SBThread.h"
 
 #include <chrono>
 #include <csignal>

diff  --git a/lldb/test/API/api/multiple-targets/main.cpp 
b/lldb/test/API/api/multiple-targets/main.cpp
index 35fb4e0d613ed..3a9dff961a27d 100644
--- a/lldb/test/API/api/multiple-targets/main.cpp
+++ b/lldb/test/API/api/multiple-targets/main.cpp
@@ -1,7 +1,7 @@
 #include <thread>
 
-#include "lldb/API/LLDB.h"
 #include "lldb/API/SBDebugger.h"
+#include "lldb/API/SBError.h"
 #include "lldb/API/SBTarget.h"
 
 using namespace lldb;


        
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to