Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

iphydf
Copy link
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
Copy link

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
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
60 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants