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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy 14 flags a constructor with an initializer list as replaceable with `= default`
        </td>
    </tr>

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

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

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

<pre>
    When running `run-clang-tidy-14` on the [Point Cloud Library](https://github.com/PointCloudLibrary/pcl), `clang-tidy` flags [this line](https://github.com/PointCloudLibrary/pcl/blob/31564ba78816a2e3216ed008c394646d1892ac7c/common/include/pcl/common/time.h#L62) with the message:

```
/__w/pcl/pcl/common/include/pcl/common/time.h:62:7: error: use '= default' to define a trivial default constructor [modernize-use-equals-default,-warnings-as-errors]
      StopWatch () : start_time_ (std::chrono::steady_clock::now())
```
Setup from Github Action [clang-tidy.yml](https://github.com/PointCloudLibrary/pcl/blob/master/.github/workflows/clang-tidy.yml):
```
          cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_COMPILER=/usr/bin/clang-14 -DCMAKE_C_COMPILER=/usr/bin/clang-14 . \
            -DBUILD_apps=ON \
            -DBUILD_apps_3d_rec_framework=ON \
            -DBUILD_apps_in_hand_scanner=ON \
            -DBUILD_apps_point_cloud_editor=ON \
            -DBUILD_benchmarks=ON \
            -DBUILD_examples=ON \
            -DBUILD_simulation=ON \
            -DBUILD_global_tests=ON
          run-clang-tidy -header-filter='.*'
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVN9v2zYQ_mvkF0KCTMmy_KAH106GYkkTNBuaN-FEnSUuFOmRVD3vr-9Rnp0mKFZjE2TrSN7d9_F-NaY9Vl961MyOWkvdsahISYyFAt3FXrbHeJ7THjOa-R5ZtPjwaKT2bKPM2LI72Viwx2ixjX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