[Lldb-commits] [lldb] [lldb-dap][NFC] Create a type alias for sourceReference. (PR #219018)

Yao Qi via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 27 04:05:14 PDT 2026


================
@@ -29,12 +29,16 @@
 #include <cstdint>
 #include <optional>
 
-#define LLDB_DAP_INVALID_SRC_REF 0
+#define LLDB_DAP_INVALID_SRC_REF int32_t(0U)
----------------
qiyao wrote:

mixing an unsigned literal (`0U`) with a cast to `int32_t` is unusual.  Since `src_ref_t` is signed, `int32_t(0)` says the same thing more clearly.

https://github.com/llvm/llvm-project/pull/219018


More information about the lldb-commits mailing list