| Issue |
114370
|
| Summary |
clang-tidy check modernize-use-std-format should also replace functions taking const wchar_t* as first argument
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
ThomasHuetsch
|
We use our own function based on `swprintf_s` to do formatting of wide character strings.
Since `std::format` is also capable of handling formatting wide strings, it would be nice if the check would be able to replace `StrFormatLikeFunctions `that take a `const wchar_t*` as their first argument.
In general, any function that takes a` const _type_*` as first argument could be replaced by `std::format` as long as `_type_` is valid for `std::basic_format_string`. I.e.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs