[compiler-rt] [dfsan] Support glibc 2.38 __isoc23_* functions (PR #79958)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 23:54:37 PST 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 a12390e6202eaf1e5d7810109756e10079b9144b 5659e7392da4987dd2e62ab66f7b9f49682c15b4 -- compiler-rt/lib/dfsan/dfsan_custom.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/dfsan/dfsan_custom.cpp b/compiler-rt/lib/dfsan/dfsan_custom.cpp
index db55958922..14173b2b96 100644
--- a/compiler-rt/lib/dfsan/dfsan_custom.cpp
+++ b/compiler-rt/lib/dfsan/dfsan_custom.cpp
@@ -1204,9 +1204,10 @@ char *__dfso_strcpy(char *dest, const char *src, dfsan_label dst_label,
}
template <typename Fn>
-static ALWAYS_INLINE auto dfsan_strtol_impl(
- Fn real, const char *nptr, char **endptr, int base,
- char **tmp_endptr) -> decltype(real(nullptr, nullptr, 0)) {
+static ALWAYS_INLINE auto dfsan_strtol_impl(Fn real, const char *nptr,
+ char **endptr, int base,
+ char **tmp_endptr)
+ -> decltype(real(nullptr, nullptr, 0)) {
assert(tmp_endptr);
auto ret = real(nptr, tmp_endptr, base);
if (endptr)
@@ -2147,7 +2148,7 @@ SANITIZER_INTERFACE_ATTRIBUTE int __dfso_write(
*ret_label = 0;
return write(fd, buf, count);
}
-} // namespace __dfsan
+} // namespace __dfsan
// Type used to extract a dfsan_label with va_arg()
typedef int dfsan_label_va;
``````````
</details>
https://github.com/llvm/llvm-project/pull/79958
More information about the llvm-commits
mailing list