[Lldb-commits] [lldb] [lldb] Streamline ConstString -> std::string conversion (NFC) (PR #79649)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 26 13:23:12 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 84be954cb26ebde58d4ddd2255dfd99904d9ae1b fd1938e02a4e0394190d90792933e81fce7fc329 -- lldb/include/lldb/Utility/ConstString.h lldb/unittests/Utility/ConstStringTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/include/lldb/Utility/ConstString.h b/lldb/include/lldb/Utility/ConstString.h
index 0ee3f0184b..470a554ca0 100644
--- a/lldb/include/lldb/Utility/ConstString.h
+++ b/lldb/include/lldb/Utility/ConstString.h
@@ -199,9 +199,7 @@ public:
}
/// Get the string value as a std::string
- std::string GetString() const {
- return std::string(m_string, GetLength());
- }
+ std::string GetString() const { return std::string(m_string, GetLength()); }
/// Get the string value as a C string.
///
``````````
</details>
https://github.com/llvm/llvm-project/pull/79649
More information about the lldb-commits
mailing list