[Lldb-commits] [lldb] [lldb][NFC] use parenthesis constructor (PR #174556)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 6 01:46:44 PST 2026
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 <yerimyah1 at gmail.com>
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);
More information about the lldb-commits
mailing list