Author: Ebuka Ezike Date: 2026-01-06T10:46:57Z New Revision: 371903cc9ee625a3662dad6ea179350b09db3074
URL: https://github.com/llvm/llvm-project/commit/371903cc9ee625a3662dad6ea179350b09db3074 DIFF: https://github.com/llvm/llvm-project/commit/371903cc9ee625a3662dad6ea179350b09db3074.diff LOG: [lldb][NFC] use parenthesis constructor (#174556) Follow the LLVM coding standard Added: Modified: lldb/source/API/SBCommandReturnObject.cpp Removed: ################################################################################ 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
