Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a few clang-tidy complaints #88

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions examples/bvh_driver/bvh_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ void BM_construction(benchmark::State &state)
{
using DeviceType = typename TreeType::device_type;
int const n_values = state.range(0);
PointCloudType point_cloud_type = static_cast<PointCloudType>(state.range(1));
auto points = constructPoints<DeviceType>(n_values, point_cloud_type);
auto const point_cloud_type = static_cast<PointCloudType>(state.range(1));
auto const points = constructPoints<DeviceType>(n_values, point_cloud_type);

for (auto _ : state)
{
Expand All @@ -152,9 +152,9 @@ void BM_knn_search(benchmark::State &state)
int const n_values = state.range(0);
int const n_queries = state.range(1);
int const n_neighbors = state.range(2);
PointCloudType const source_point_cloud_type =
auto const source_point_cloud_type =
static_cast<PointCloudType>(state.range(3));
PointCloudType const target_point_cloud_type =
auto const target_point_cloud_type =
static_cast<PointCloudType>(state.range(4));

TreeType index(
Expand Down Expand Up @@ -182,9 +182,9 @@ void BM_radius_search(benchmark::State &state)
int const n_queries = state.range(1);
int const n_neighbors = state.range(2);
int const buffer_size = state.range(3);
PointCloudType const source_point_cloud_type =
auto const source_point_cloud_type =
static_cast<PointCloudType>(state.range(4));
PointCloudType const target_point_cloud_type =
auto const target_point_cloud_type =
static_cast<PointCloudType>(state.range(5));

TreeType index(
Expand Down