[libc-commits] [libc] [libc][stdio] Add support for the %m modifier (PR #218312)
via libc-commits
libc-commits at lists.llvm.org
Fri Sep 4 14:04:11 PDT 2026
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 origin/main HEAD --extensions h -- libc/src/stdio/scanf_core/parser.h libc/src/stdio/scanf_core/string_converter.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/stdio/scanf_core/string_converter.h b/libc/src/stdio/scanf_core/string_converter.h
index 79d39b55e..180bbd95e 100644
--- a/libc/src/stdio/scanf_core/string_converter.h
+++ b/libc/src/stdio/scanf_core/string_converter.h
@@ -47,7 +47,7 @@ int convert_string(Reader<T> *reader, const FormatSection &to_conv) {
}
char *output;
- AllocChecker ac;
+ AllocChecker ac;
#ifndef LIBC_COPT_SCANF_DISABLE_ALLOCATION
size_t alloc_size;
if ((to_conv.flags & NO_WRITE) == 0 && (to_conv.flags & ALLOCATE) != 0) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/218312
More information about the libc-commits
mailing list