Skip to content

Updated clang tidy config and did some fixes - #162

Merged
kkaefer merged 4 commits into
mapbox:masterfrom
joto:clang-tidy
Oct 15, 2026
Merged

kkaefer merged 4 commits into
mapbox:masterfrom
joto:clang-tidy

Conversation

@joto

@joto joto commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@joto
joto requested a review from a team as a code owner October 13, 2026 12:50
@joto

joto commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

I have fixed some of the easy things found by clang-tidy, but it would be great if we get all of them fixed so that we can add clang-tidy in a way that the CI breaks if there is a problem, so we don't accidentally introduce new problems.

kkaefer
kkaefer previously approved these changes Oct 14, 2026
Comment thread tools/pbf-fuzzer.cpp Outdated
template <class Tp>
inline __attribute__((always_inline)) void DoNotOptimize(Tp const& value) {
asm volatile("" : : "r,m"(value) : "memory");
asm volatile("" : : "r,m"(value) : "memory"); // NOLINT(portability-no-assembler)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For older versions of Clang, we still need hicpp-no-assembler here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have added that.

@kkaefer
kkaefer merged commit 0138808 into mapbox:master Oct 15, 2026
35 checks passed
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