[Lldb-commits] [lldb] [llvm] Revert "[Support] Move HTTP client/server to new LLVMSupportHTTP lib (NFC)" (PR #185372)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 01:21:01 PDT 2026
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 origin/main HEAD --extensions cpp,h -- lldb/source/Plugins/SymbolLocator/Debuginfod/SymbolLocatorDebuginfod.cpp llvm/include/llvm/Debuginfod/Debuginfod.h llvm/lib/Debuginfod/Debuginfod.cpp llvm/tools/llvm-cov/CodeCoverage.cpp llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp llvm/tools/llvm-objdump/llvm-objdump.cpp llvm/tools/llvm-profdata/llvm-profdata.cpp llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp llvm/unittests/Debuginfod/DebuginfodTests.cpp llvm/include/llvm/Debuginfod/HTTPClient.h llvm/include/llvm/Debuginfod/HTTPServer.h llvm/lib/Debuginfod/HTTPClient.cpp llvm/lib/Debuginfod/HTTPServer.cpp llvm/unittests/Debuginfod/HTTPServerTests.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Debuginfod/HTTPServer.cpp b/llvm/lib/Debuginfod/HTTPServer.cpp
index 1264353ce..8aa10a74a 100644
--- a/llvm/lib/Debuginfod/HTTPServer.cpp
+++ b/llvm/lib/Debuginfod/HTTPServer.cpp
@@ -187,12 +187,8 @@ Expected<unsigned> HTTPServer::bind(const char *HostInterface) {
return make_error<HTTPServerError>("no httplib");
}
-Error HTTPServer::listen() {
- return make_error<HTTPServerError>("no httplib");
-}
+Error HTTPServer::listen() { return make_error<HTTPServerError>("no httplib"); }
-void HTTPServer::stop() {
- llvm_unreachable("no httplib");
-}
+void HTTPServer::stop() { llvm_unreachable("no httplib"); }
#endif // LLVM_ENABLE_HTTPLIB
diff --git a/llvm/unittests/Debuginfod/HTTPServerTests.cpp b/llvm/unittests/Debuginfod/HTTPServerTests.cpp
index cd1d5f2d9..697baa565 100644
--- a/llvm/unittests/Debuginfod/HTTPServerTests.cpp
+++ b/llvm/unittests/Debuginfod/HTTPServerTests.cpp
@@ -237,15 +237,15 @@ TEST_F(HTTPClientServerTest, ClientTimeout) {
TEST_F(HTTPClientServerTest, PathMatching) {
HTTPServer Server;
- EXPECT_THAT_ERROR(
- Server.get(R"(/abc/(.*)/(.*))",
- [&](HTTPServerRequest &Request) {
- EXPECT_EQ(Request.UrlPath, "/abc/1/2");
- ASSERT_THAT(Request.UrlPathMatches,
- testing::ElementsAre("1", "2"));
- Request.setResponse({200u, "text/plain", Request.UrlPath});
- }),
- Succeeded());
+ EXPECT_THAT_ERROR(Server.get(R"(/abc/(.*)/(.*))",
+ [&](HTTPServerRequest &Request) {
+ EXPECT_EQ(Request.UrlPath, "/abc/1/2");
+ ASSERT_THAT(Request.UrlPathMatches,
+ testing::ElementsAre("1", "2"));
+ Request.setResponse(
+ {200u, "text/plain", Request.UrlPath});
+ }),
+ Succeeded());
EXPECT_THAT_ERROR(Server.get(UrlPathPattern,
[&](HTTPServerRequest &Request) {
llvm_unreachable(
``````````
</details>
https://github.com/llvm/llvm-project/pull/185372
More information about the lldb-commits
mailing list