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 41cece8c86399dd1ffcb6b7a8b50c10083fe5a40 
56d3e301d01cb8ab8f44751d7684378f38b0661e --extensions cpp,h -- 
clang/lib/Interpreter/Wasm.cpp clang/lib/Interpreter/Wasm.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Interpreter/Wasm.cpp b/clang/lib/Interpreter/Wasm.cpp
index ed746beefd..6a59c8961b 100644
--- a/clang/lib/Interpreter/Wasm.cpp
+++ b/clang/lib/Interpreter/Wasm.cpp
@@ -133,7 +133,8 @@ llvm::Error 
WasmIncrementalExecutor::addModule(PartialTranslationUnit &PTU) {
 llvm::Error WasmIncrementalExecutor::removeModule(PartialTranslationUnit &PTU) 
{
   std::string BinaryFileName = PTU.TheModule->getName().str() + ".wasm";
 
-  llvm::errs() << "[DEBUG] Entering removeModule() for: " << BinaryFileName << 
"\n";
+  llvm::errs() << "[DEBUG] Entering removeModule() for: " << BinaryFileName
+               << "\n";
   llvm::errs() << "[DEBUG] Current Loaded Modules:\n";
   for (const auto &entry : LoadedModules) {
     llvm::errs() << "  -> " << entry.first << "\n";
@@ -151,8 +152,8 @@ llvm::Error 
WasmIncrementalExecutor::removeModule(PartialTranslationUnit &PTU) {
 
   if (dlclose(It->second) != 0) {
     llvm::errs() << "Failed to unload module: " << dlerror() << '\n';
-    return llvm::make_error<llvm::StringError>(
-        "Failed to unload module", llvm::inconvertibleErrorCode());
+    return llvm::make_error<llvm::StringError>("Failed to unload module",
+                                               llvm::inconvertibleErrorCode());
   }
 
   // Remove the module from tracking

``````````

</details>


https://github.com/llvm/llvm-project/pull/131558
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to