[llvm] Give a warning when no dwo files are found (PR #94336)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 03:59:01 PDT 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 947b06282324db8fe2784c4054af9de493a876af 673778784c089d0146b293bd5c6c7331d736fb25 -- llvm/tools/llvm-dwp/llvm-dwp.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp
index f0edaeb07f..48303ee534 100644
--- a/llvm/tools/llvm-dwp/llvm-dwp.cpp
+++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp
@@ -189,7 +189,8 @@ int llvm_dwp_main(int argc, char **argv, const llvm::ToolContext &) {
   }
 
   if (DWOFilenames.empty()) {
-    WithColor::defaultWarningHandler(make_error<DWPError>("No dwo files found!\n"));
+    WithColor::defaultWarningHandler(
+        make_error<DWPError>("No dwo files found!\n"));
     return 0;
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/94336


More information about the llvm-commits mailing list