Fix issues found by newer clang-tidy version
This commit is contained in:
parent
ed12eabe77
commit
716a338198
@ -42,7 +42,7 @@ if (ENABLE_CLANG_TIDY)
|
|||||||
message(FATAL_ERROR "ENABLE_CLANG_TIDY is ON but clang-tidy is not found!")
|
message(FATAL_ERROR "ENABLE_CLANG_TIDY is ON but clang-tidy is not found!")
|
||||||
else()
|
else()
|
||||||
message(STATUS "Found clang-tidy at ${CLANG_TIDY_COMMAND}")
|
message(STATUS "Found clang-tidy at ${CLANG_TIDY_COMMAND}")
|
||||||
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND};--warnings-as-errors=*")
|
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND};--warnings-as-errors=*;--header-filter=.*")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@ -242,7 +242,7 @@ void ExtractorCallbacks::ProcessWay(const osmium::Way &input_way, const Extracti
|
|||||||
|
|
||||||
TurnLaneDescription lane_description;
|
TurnLaneDescription lane_description;
|
||||||
|
|
||||||
typedef boost::tokenizer<boost::char_separator<char>> tokenizer;
|
using tokenizer = boost::tokenizer<boost::char_separator<char>>;
|
||||||
boost::char_separator<char> sep("|", "", boost::keep_empty_tokens);
|
boost::char_separator<char> sep("|", "", boost::keep_empty_tokens);
|
||||||
boost::char_separator<char> inner_sep(";", "");
|
boost::char_separator<char> inner_sep(";", "");
|
||||||
tokenizer tokens(lane_string, sep);
|
tokenizer tokens(lane_string, sep);
|
||||||
|
|||||||
@ -62,7 +62,7 @@ bool TurnLaneData::operator<(const TurnLaneData &other) const
|
|||||||
|
|
||||||
LaneDataVector laneDataFromDescription(const TurnLaneDescription &turn_lane_description)
|
LaneDataVector laneDataFromDescription(const TurnLaneDescription &turn_lane_description)
|
||||||
{
|
{
|
||||||
typedef std::unordered_map<TurnLaneType::Mask, std::pair<LaneID, LaneID>> LaneMap;
|
using LaneMap = std::unordered_map<TurnLaneType::Mask, std::pair<LaneID, LaneID>>;
|
||||||
// TODO need to handle cases that have none-in between two identical values
|
// TODO need to handle cases that have none-in between two identical values
|
||||||
const auto num_lanes = boost::numeric_cast<LaneID>(turn_lane_description.size());
|
const auto num_lanes = boost::numeric_cast<LaneID>(turn_lane_description.size());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user