[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 17 03:32:30 PDT 2025
================
@@ -0,0 +1,15 @@
+RUN: mkdir -p %t/server
+RUN: mkdir -p %t/lib
+RUN: %lldb-rpc-gen --output-dir=%t %S/../../Inputs/CheckSBPointer.h
+
+RUN: cat %t/lib/CheckSBPointer.cpp | FileCheck %s
+
+# Pointers to SB objects must be checked to
+# see if they're null. If so, then a new object of the given
+# class must be created and encoded. Otherwise, the original
+# parameter will be encoded.
+CHECK: lldb_rpc::SBRPC_CHECKSBPTR::CheckSBPtr
+CHECK: if (debugger_ptr)
----------------
DavidSpickett wrote:
Use CHECK-NEXT wherever you know that the lines will follow each other.
https://github.com/llvm/llvm-project/pull/147655
More information about the lldb-commits
mailing list