Skip to content

chore: Use C++ mode for clang-tidy.#2642

Merged
toktok-releaser merged 1 commit into
TokTok:masterfrom
iphydf:clang-tidy
Feb 4, 2024
Merged

chore: Use C++ mode for clang-tidy.#2642
toktok-releaser merged 1 commit into
TokTok:masterfrom
iphydf:clang-tidy

Conversation

@iphydf
Copy link
Copy Markdown
Member

@iphydf iphydf commented Feb 3, 2024

This enables a bunch more useful checks (and a whole lot of useless ones we then explicitly disable). In particular, misc-const-correctness now works and may make -Wconst in tokstyle obsolete.


This change is Reviewable

@iphydf iphydf added this to the v0.2.19 milestone Feb 3, 2024
@iphydf iphydf marked this pull request as ready for review February 3, 2024 23:06
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8b05296) 73.65% compared to head (34df938) 73.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2642      +/-   ##
==========================================
+ Coverage   73.65%   73.72%   +0.06%     
==========================================
  Files         148      148              
  Lines       30419    30419              
==========================================
+ Hits        22406    22425      +19     
+ Misses       8013     7994      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Member

@nurupo nurupo left a comment

Choose a reason for hiding this comment

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

LGTM

This is going to need a bit of maintenance. As clang-tidy updates, more C++ exclusions would need to be added.

Also, CI is failing on cmp.

This enables a bunch more useful checks (and a whole lot of useless ones
we then explicitly disable). In particular, misc-const-correctness now
works and may make `-Wconst` in tokstyle obsolete.
@toktok-releaser toktok-releaser merged commit 34df938 into TokTok:master Feb 4, 2024
@iphydf iphydf deleted the clang-tidy branch February 4, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants