Skip to content

Revamp .clang-tidy #65

Merged
Alomir merged 5 commits into
masterfrom
revamp_clang_tidy_config
Apr 25, 2025
Merged

Revamp .clang-tidy #65
Alomir merged 5 commits into
masterfrom
revamp_clang_tidy_config

Conversation

@Alomir
Copy link
Copy Markdown
Collaborator

@Alomir Alomir commented Apr 25, 2025

I was never really happy with our .clang-tidy file, as it was just a dump of CLion's config of dubious provenance (with some small exclusions).

This PR changes the strategy, making the file a small exclusion list from the clang-tidy default, instead of turning all checks off and then adding back a subset.

There are a pair of NOLINT directives in the code that tell clang-tidy to ignore the line, as they had warnings that were (a) false positives as far as I can tell, and (b) not warnings I want to totally shut off.

@Alomir Alomir requested review from dlebauer and infotroph April 25, 2025 16:21
Copy link
Copy Markdown
Member

@dlebauer dlebauer left a comment

Choose a reason for hiding this comment

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

LGTM. Makes sense to punt removal deprecated files & functions to another day.

@Alomir Alomir merged commit 0f6d152 into master Apr 25, 2025
7 checks passed
@Alomir Alomir deleted the revamp_clang_tidy_config branch April 25, 2025 16:36
@Alomir Alomir restored the revamp_clang_tidy_config branch July 2, 2025 14:32
@Alomir Alomir deleted the revamp_clang_tidy_config branch July 15, 2025 15:02
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