From db0d36efc8d4ddd8fc604b9e9d10963d19b1dae0 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Fri, 30 Jun 2023 10:37:05 -0700 Subject: Add contains type tidy check On general container usage, contains() is more descriptive than count() > 0. We have one violation of this, fix it and enable the check. Tested: Clang-tidy passes. Change-Id: Ib5702ef97c6da033b6587c9cfebbe30dfbfe80b4 Signed-off-by: Ed Tanous --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy index 308c3f9be6..ffa6589dd1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -280,6 +280,7 @@ performance-unnecessary-value-param, readability-avoid-const-params-in-decls, readability-braces-around-statements, readability-const-return-type, +readability-container-contains, readability-container-data-pointer, readability-container-size-empty, readability-convert-member-functions-to-static, -- cgit v1.2.3