[llvm] [symbolizer] Empty string is not an error (PR #92660)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 02:03:50 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 219476d20fcdb21644944b0c204b4ac6d6ef3760 93b34782ba9bbc406a3b8dd11c496642d4b9edad -- llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp b/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp
index beb70f2d7a..6d7953f310 100644
--- a/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp
+++ b/llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp
@@ -338,8 +338,9 @@ static void symbolizeInput(const opt::InputArgList &Args,
   uint64_t Offset = 0;
   StringRef Symbol;
 
-  // An empty input string may be used to check if the process is alive and responding to input. Do not
-  // emit a message on stderr in this case but respond on stdout.
+  // An empty input string may be used to check if the process is alive and
+  // responding to input. Do not emit a message on stderr in this case but
+  // respond on stdout.
   if (InputString.empty()) {
     printUnknownLineInfo(ModuleName, Printer);
     return;

``````````

</details>


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


More information about the llvm-commits mailing list