-
Notifications
You must be signed in to change notification settings - Fork 65
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
all: treat clang-tidy warnings as errors #1745
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1745 +/- ##
==========================================
- Coverage 52.74% 52.71% -0.03%
==========================================
Files 599 599
Lines 44770 44770
Branches 6947 6947
==========================================
- Hits 23615 23602 -13
- Misses 19091 19099 +8
- Partials 2064 2069 +5 ☔ View full report in Codecov by Sentry. |
CMakeLists.txt
Outdated
@@ -91,7 +91,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/compiler_warnings.cmake) | |||
if(SILKWORM_CLANG_TIDY) | |||
find_program(CLANG_TIDY clang-tidy REQUIRED) | |||
set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY};-warnings-as-errors=*") | |||
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY}") | |||
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY};-warnings-as-errors=*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can control this from the config.
No description provided.