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

    <tr>
        <th>Summary</th>
        <td>
            modernize-use-std-format clang tidy warning not working on example code from documentation
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          belobrov-andrey
      </td>
    </tr>
</table>

<pre>
    After upgrading project to ะก++20 and enabling modernize-use-std-format warning there is modernize-use-std-format clang tidy warning:
Unable to use 'std::format' instead of 'StrFormat' because first argument is not a narrow string literal [modernize-use-std-format]
The minimal code sample to reproduce problem (sample from [documentation:](https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-std-format.html)
```
#include <absl/strings/str_format.h>

#include <string>

std::string getDescription(const std::string& description, int value)
{
    return absl::StrFormat("The %s is %3d", description.c_str(), value);
}
```
Compile options: -g -stdlib=libc++ -std=c++20
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVF2PqzgM_TXmxWoFTmnhgQc6LH9gd5-vAjE0e0NSJWHmzv76VejHzow0D1eq1KQ-xzk-titD0LNlbqA8Q9llco0X55uBjRu8e91Jqzy_Z4NT7007Rfa4XmcvlbYzXr37h8eI0SF0ObQF0BnoTDlKq5CtHEyCLU6xt_pf3q2BdyGq3eT8IiO-SW8TIF7YM-rwPXI0MuG0en-QQLSQt3-nNzgJWAMj0ClElSKivRGBTqhtiCwVuikB_oy-f4YGHmUiTtqHiNLP68I2JiXWRZRopffuDUP0SabRkb00COX5O6FQdpC3f10YF231Ig2OTjEGuVxvMj1fvVPryMm8wfCCQNU9PHm3pOTKjZsOGbWzqZqyA6ouMV5DulEP1G-G7I15XfbOz0A9_4pePgK75FS6XHj8GYD6p16g_rPi_SUuBqiGvIVjfv_kLZDQdjSrYgTxIodggPqbD-F2-vHgg_gjEb5ybuBn8NmYu5kzx47D6PV1q5Kq0dkQ8QsM6IjqI-wFtY34Ks3Kd9GnM-QtIqLnuHqLm9YtxYdWV0CUugJUhtReoFIoIEoJP-Tfjz9C9Bu8TqHnO-K8PdV9cenFLVdtGN3GTt3B3YzJXaMHEJ3Rw3jbie1HEN34WJFMNULVopYZN8XpkNfVkao6uzRqmo71aShORSVrRceDOAwFc8XTaRTFQWS6oZzKXOQiPxVVXu_VWEyCynKqc55kyXDIeZHaPMcj0yGs3BRUH6pDZuTAJmz7TrSNSzKi7DLfJMJuWOcAh9zoEMP_KaKOhpvfWNBthd6c_5nOziL_uk35thDbqH-a82z1pvk847OOl3XYj24B6pOQ-9fu_r8D1G-FpYG81_ba0H8BAAD__y34lCM">