<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/114370>114370</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy check modernize-use-std-format should also replace functions taking const wchar_t* as first argument
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ThomasHuetsch
      </td>
    </tr>
</table>

<pre>
    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. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kkGP4jgQhX-NcykROQ4EOOTAbgttS3vrlfaIHLuSeDA2clUaMb9-5IRupmc0l1iRVd-r9_w0kRsCYis2f4nNS6EnHmNq_xvjRdM_EzKZseiivbf_I0yEEKcE8Ragn4JhFwN0mtBCDCAaSbdrcoH7E4lGAkewEfqYLprZhQFiDzdnEcyokzaMCYiTCwOVIOSLkIc3FwzOILaiPoj6sExnmiPQniIYfdWdxwwbdbA-g3_SmAUeWKH-Bsdwi5O30CEEZxBcDzzmHdCcn1czkiMkvHq97PDG6Thz_3VnPD7sUr7hUTOwPiPo_GtiIIZbdnVioQ55W01ZxSXoXSIGnYbpgoHLxefyfQ0wYMCkfV5Uh_sz1E8FAp1xi8SJ71c8PRW-ssF8mHmYsNDd_xCmJvAxDPkUjXxwl5DftXc2J_pltNPkzGkBnJZ4RSNLeC2xhMK2td3Xe11gW21rWW_29a4qxrY367q23dbopuqbvmtkp1S17rHar6v9ripcq6RaV7Ku5FbVsipxs6s3ptv3O1VtGinFWuJFO196_34pYxoKRzRhW1XreisLrzv0NJdXKeN1GFbs7F0olcuc2jy16qaBxFp6R0xPDjv22D5nHo24RIspuO-4mghXxHa1mAYa53jnDn60pP9sBetzbt-vVfj9lYop-XZkvlIOVh2FOg6Ox6krTbwIdcz7PY7VNcVvaFio42yahDo-fL-36kcAAAD__zMTP4U">