Skip to content

Upgrade to clang-tidy 14#6353

Merged
SiarheiFedartsou merged 1 commit intoProject-OSRM:masterfrom
SiarheiFedartsou:sf-clang-tidy-14-2
Aug 31, 2022
Merged

Upgrade to clang-tidy 14#6353
SiarheiFedartsou merged 1 commit intoProject-OSRM:masterfrom
SiarheiFedartsou:sf-clang-tidy-14-2

Conversation

@SiarheiFedartsou
Copy link
Copy Markdown
Member

Issue

This PR updates CI to use clang-tidy 14 and fixes some of new warnings.

Tasklist

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

-bugprone-unhandled-self-assignment,
-bugprone-forward-declaration-namespace,
-bugprone-sizeof-expression,
-bugprone-throw-keyword-missing,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful, but I got false positives on static_assert in some places

@SiarheiFedartsou SiarheiFedartsou marked this pull request as ready for review August 31, 2022 18:34
DistTableWrapper(std::vector<T> table, std::size_t number_of_nodes)
: table_(std::move(table)), number_of_nodes_(number_of_nodes)
{
BOOST_ASSERT_MSG(table.size() == 0, "table is empty");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand this assert was wrong

@SiarheiFedartsou SiarheiFedartsou merged commit 96f5780 into Project-OSRM:master Aug 31, 2022
mattwigway pushed a commit to mattwigway/osrm-backend that referenced this pull request Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants