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

    <tr>
        <th>Summary</th>
        <td>
            modernize-use-transparent-functors not being fixed
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The `modernize-use-transparent-functors` check [offers a fix](https://clang.llvm.org/extra/clang-tidy/checks/list.html), and while clang-tidy correctly warns about this check, it does not actually appear to be fixing it for me.

As you can see in the example below, only the `modernize-use-trailing-return-type` check is actually being fixed. Why isn't `modernize-use-transparent-functors` being fixed as well?

```
$ clang-tidy-15 --version
Ubuntu LLVM version 15.0.0

  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: skylake
```
```
$ cat test.cpp
#include <functional>
int main() {
  std::plus<int>{}(1, 1);
}
```
```
$ clang-tidy-15 -checks=modernize-* -fix test.cpp
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "test.cpp"
No compilation database found in /home/sweemer/test or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
1124 warnings generated.
/home/sweemer/test/test.cpp:2:5: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
int main() {
~~~ ^
auto       -> int
/home/sweemer/test/test.cpp:2:1: note: FIX-IT applied suggested code changes
int main() {
^
/home/sweemer/test/test.cpp:2:11: note: FIX-IT applied suggested code changes
int main() {
          ^
/home/sweemer/test/test.cpp:3:3: warning: prefer transparent functors 'plus<>' [modernize-use-transparent-functors]
  std::plus<int>{}(1, 1);
  ^
clang-tidy applied 2 of 2 suggested fixes.
Suppressed 1122 warnings (1122 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
```
```
$ cat test.cpp
#include <functional>
auto main() -> int {
  std::plus<int>{}(1, 1);
}
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1Vtty2zYQ_RrqZYccXkRdHvSgWPY0nTTpNHHbtw5IrkQkIMDBJTL79V3wYtGp3VidVkOJFLjYPdg9Z4FCVd3uU40QrOJGVagl_xNDZzC0mknTMo3ShkcnS6u0ISMoayy_QJC_UccjagMMjvwhyA9BuqmtbU2Q7YP0jq5SMHmKhPjaREqfaAAfyOf0IrS86vwf787Qg-DGRrVtRJBug_QGmKzgXHOBcLGHUmmNpRUdnJmWFLxQzoKtuRlw-YncQqXQgFQWWGkdE2TO2haZBqugQA-Yy5M3PCoNDUZBfAji_fC7N9ApByWTYBCBS3KPgA-saQlLgUKdfRQlyat9IXFckP9Qo3VahrZr8ZI4QvoIqkAPg9BgFcFvdUcvZZCu7euLMfMAzMAZhQiyu_lyyGq8hr_pcpbPMMkhDL9SGbmSg8F94aR18O7drz_B-AKSPIqjeO4V4ENreUPwKigcF1U0jR_wyJygmjB9QktkgIfN6o_VMmzLkLLiHsKTdJPxD8pYuPn53puZL51gX_B51M8sglEMJMqUbTuNZlyWwlVUk-ymzxKBZ5SQ28GASwsN45TiDXEMgvWbCYexladttm-FIwLfkKWfRQZrz-vEFzzxvMzGKX78tUCfZnvke3a4FDhI9xBSDb9Zz63WxM5BAlZ3vtBEX6EYlZqE0LRcML9CqJhlBTPol9DPvFFOVAP_nVVhhZY08-yUXgBHHyFI08fwaTr4ea9emuRInKQMkm2tGqSbOSM2qOnJewHyymQHA2Oh4l60SneD256u4cxzOFsBzJetWpQXgs-tCJpxZT1gJ_tvQnw25PWaCD9-_PD-mgC_ONnPO3Nb-xZ0FOxkRhEkCZXd9ycyMHBCiZpZnCTyUs7GW1-AbJ_SN_c4Rj_-kRoBVX5qLzC0F_DtpS9j3wUn2vsG_Yq2lB_-WRrB-na4yN-oIk8pGD4hiQS8Vq5cWOJXQ_TsE3339vfw7SffoAWnIht3OpE1PZUEn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