Skip to content

Commit

Permalink
Add cppcoreguidelines-pro-type-cstyle-cast to clang-tidy config
Browse files Browse the repository at this point in the history
Prevents that someone re-introduces C-style casts.
  • Loading branch information
gruenich committed May 2, 2024
1 parent cd7364e commit db5c50e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Checks: '
,readability-redundant-string-cstr,
,readability-redundant-string-init,
,readability-simplify-boolean-expr,
,cppcoreguidelines-pro-type-cstyle-cast,
'
WarningsAsErrors: '
,readability-avoid-const-params-in-decls,
Expand All @@ -14,4 +15,5 @@ WarningsAsErrors: '
,readability-redundant-string-cstr,
,readability-redundant-string-init,
,readability-simplify-boolean-expr,
,cppcoreguidelines-pro-type-cstyle-cast,
'

0 comments on commit db5c50e

Please sign in to comment.