Skip to content

Commit d80cb54

Browse files
committed
[clang-tidy] Allow if (intCondition) { } to ask for != 0
1 parent 2827640 commit d80cb54

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
@@ -60,6 +60,8 @@ Checks: >
6060
-readability-uppercase-literal-suffix
6161
WarningsAsErrors: ''
6262
CheckOptions:
63+
- key: readability-implicit-bool-conversion.AllowIntegerConditions
64+
value: true
6365
- key: readability-implicit-bool-conversion.AllowPointerConditions
6466
value: true
6567
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic

0 commit comments

Comments
 (0)