Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit a509602

Browse files
authored
fix: let clang-tidy allow bool conversions in conditions (#235)
* fix: let clang-tidy allow bool conversions in conditions See googleapis/google-cloud-cpp-spanner#1377 for rationale.
1 parent f3ae7f1 commit a509602

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
@@ -73,3 +73,5 @@ CheckOptions:
7373
- { key: readability-identifier-naming.MemberConstantPrefix, value: k }
7474
- { key: readability-identifier-naming.StaticConstantCase, value: CamelCase }
7575
- { key: readability-identifier-naming.StaticConstantPrefix, value: k }
76+
- { key: readability-implicit-bool-conversion.AllowIntegerConditions, value: 1 }
77+
- { key: readability-implicit-bool-conversion.AllowPointerConditions, value: 1 }

0 commit comments

Comments
 (0)