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

    <tr>
        <th>Summary</th>
        <td>
            Clang tidy warning modernize-use-std-print does not work on sample 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>
    The following minimal code sample from [documentation](https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-std-print.html)

```
std::string getDescription(const std::string &description, int value)
{
 fprintf(stderr, "The %s is %3d\n", description.c_str(), value);

 return absl::StrFormat("The %s is %3d", description.c_str(), value);
}
```
There is no warning with suggestion to change fprintf to std::println.

Environment: Clang tidy 19, OS X, compile flags: -m64 -stdlib=libc++ -g -std=gnu++20 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU0tvpDgQ_jXFxaLllJsGDhy6m-Wys5pDcpjbyNjV4I2xW7bpTPbXr0wek0R7WQmpRNmux_eQMZrJEXVQnaDqC7mm2YduJOvH4G-ldDrQczF6_dw9zMQu3lr_ZNzEFuPMIi1TXhOLcrlaYpfgFwbVSXu1LuSSTMY7qHrAZk7pGkEcAQfAQVnppp21t2XnwwQ40K8U5NtBmYx-zj8zqccIOCxeU3DmHwIc1khlTLq8BuPSbk6LBWyBH_N34K8fP8akczdxjCnkcSdKPUUVzHWbCRvlXUzs6zXAg_547cyMS-wm7UqvbeoT8CO7bO0vgE1MmkLINwExQwRYRWZijkJDdXaAmI8_1N2pnzEFwCbXxPPv-uL0sgkLlNbgmByjfZnvPoXBh0Wm7dV_NPq_Ter-C2IPMwXK9ZxnTzK4DMeTSTOL6zRRzCVZ8kzN0k30BkDOvGO4pazbvezwh7uZ4F3WAYgjO2dmWWaW3W3zfL9nP3JUfrmaLB4rp6wQVi6HPcscWzOC6K0ZFeAJ8MTKacuD6Ce3vuSQs1IGNbNfzeFnfmficwzeJwY4fDNjkCFLqacbWX-lADic_bJIp78ZRw_e2yyw-_7PHP6S6vv9j13Uj6zQndCtaGVB3V29523LsRXF3GkudF1X2F6k0JWgZtRKjgfBeVNjIy6F6ZBjxQUXvMF9JXaiqbmqDigOdasvTQt7Tos09l3_hYlxpe4O2327L6wcycbNkIibHzK3VV-ELj8ox3WKsOfWxBR_l0gmWeo-gPxG4bt3yk_OYdpTpjqxJx8emXdvHt78vBn5k4uLNdjus4knk-Z13Cm_AA55kNdQXoP_m1QCHLbFMrKvu906_DcAAP__JCFr4w">