Skip to content

Commit db5c50e

Browse files
committed
Add cppcoreguidelines-pro-type-cstyle-cast to clang-tidy config
Prevents that someone re-introduces C-style casts.
1 parent cd7364e commit db5c50e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Checks: '
66
,readability-redundant-string-cstr,
77
,readability-redundant-string-init,
88
,readability-simplify-boolean-expr,
9+
,cppcoreguidelines-pro-type-cstyle-cast,
910
'
1011
WarningsAsErrors: '
1112
,readability-avoid-const-params-in-decls,
@@ -14,4 +15,5 @@ WarningsAsErrors: '
1415
,readability-redundant-string-cstr,
1516
,readability-redundant-string-init,
1617
,readability-simplify-boolean-expr,
18+
,cppcoreguidelines-pro-type-cstyle-cast,
1719
'

0 commit comments

Comments
 (0)