Upgrade formatting to clang-format 10 (#5895)

* Update formatting tools to clang-format-10

* Reformat using clang-format-10.0.09
This commit is contained in:
Daniel Patterson
2020-11-26 07:21:39 -08:00
committed by GitHub
parent a3f1c2afb0
commit 50d9632ed7
373 changed files with 1198 additions and 1163 deletions
+3 -3
View File
@@ -38,8 +38,8 @@ class MatchPlugin : public BasePlugin
const int max_locations_map_matching;
const double max_radius_map_matching;
};
}
}
}
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif // MATCH_HPP
+3 -3
View File
@@ -26,8 +26,8 @@ class NearestPlugin final : public BasePlugin
private:
const int max_results;
};
}
}
}
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif /* NEAREST_HPP */
+7 -5
View File
@@ -131,8 +131,10 @@ class BasePlugin
return phantom_pair.first;
};
const auto use_closed_phantom = [](
const std::pair<PhantomNode, PhantomNode> &phantom_pair) { return phantom_pair.first; };
const auto use_closed_phantom =
[](const std::pair<PhantomNode, PhantomNode> &phantom_pair) {
return phantom_pair.first;
};
const bool every_phantom_is_in_tiny_cc = std::all_of(std::begin(phantom_node_pair_list),
std::end(phantom_node_pair_list),
@@ -388,8 +390,8 @@ class BasePlugin
std::to_string(missing_index);
}
};
}
}
}
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif /* BASE_PLUGIN_HPP */
+3 -3
View File
@@ -27,8 +27,8 @@ class TablePlugin final : public BasePlugin
private:
const int max_locations_distance_table;
};
}
}
}
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif // TABLE_HPP
+3 -3
View File
@@ -30,8 +30,8 @@ class TilePlugin final : public BasePlugin
const api::TileParameters &parameters,
osrm::engine::api::ResultT &pbf_buffer) const;
};
}
}
}
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif /* TILEPLUGIN_HPP */
+3 -3
View File
@@ -42,8 +42,8 @@ class TripPlugin final : public BasePlugin
const api::TripParameters &parameters,
osrm::engine::api::ResultT &json_result) const;
};
}
}
}
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif // TRIP_HPP
+3 -3
View File
@@ -35,8 +35,8 @@ class ViaRoutePlugin final : public BasePlugin
const api::RouteParameters &route_parameters,
osrm::engine::api::ResultT &json_result) const;
};
}
}
}
} // namespace plugins
} // namespace engine
} // namespace osrm
#endif // VIA_ROUTE_HPP