https://github.com/da-viper created 
https://github.com/llvm/llvm-project/pull/174556

Follow the LLVM coding standard

>From 9eb8870501fd572f8c0a044eb3ef83c36194d56e Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <[email protected]>
Date: Tue, 6 Jan 2026 09:34:09 +0000
Subject: [PATCH] [lldb][NFC] use parenthesis constructor

Follow the LLVM coding standard
---
 lldb/source/API/SBCommandReturnObject.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/source/API/SBCommandReturnObject.cpp 
b/lldb/source/API/SBCommandReturnObject.cpp
index 61bd06eadbbf9..62cc7a1f05573 100644
--- a/lldb/source/API/SBCommandReturnObject.cpp
+++ b/lldb/source/API/SBCommandReturnObject.cpp
@@ -315,7 +315,7 @@ void SBCommandReturnObject::PutCString(const char *string, 
int len) {
   if (len == 0 || string == nullptr || *string == 0) {
     return;
   } else if (len > 0) {
-    const llvm::StringRef buffer{string, static_cast<size_t>(len)};
+    const llvm::StringRef buffer(string, static_cast<size_t>(len));
     ref().AppendMessage(buffer);
   } else
     ref().AppendMessage(string);

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

Reply via email to