| Issue |
56447
|
| Summary |
clang-tidy 14 flags a constructor with an initializer list as replaceable with `= default`
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
gnawme
|
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='.*'
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs