[llvm] [LLVM][Support] check for error return from dladdr. (PR #138369)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 2 17:28:17 PDT 2025
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 HEAD~1 HEAD --extensions inc -- llvm/lib/Support/Unix/Signals.inc
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index b2bc76a11..983c1a014 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -853,7 +853,8 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) {
} else {
const char *name = strrchr(dlinfo.dli_fname, '/');
if (!name)
- OS << format(" %-*s", width, static_cast<const char *>(dlinfo.dli_fname));
+ OS << format(" %-*s", width,
+ static_cast<const char *>(dlinfo.dli_fname));
else
OS << format(" %-*s", width, name + 1);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/138369
More information about the llvm-commits
mailing list