From d227c53ef340f87e59337e7688ac22648f201f57 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:42:39 +0100 Subject: [PATCH] style: clang-tidy auto fixes (#1530) Fixes #1529. --------- Co-authored-by: github-actions[bot] Co-authored-by: Sergey Kuznetsov --- .clang-tidy | 2 +- .clangd | 2 ++ src/util/TimeUtils.cpp | 1 - tests/unit/rpc/handlers/LedgerIndexTests.cpp | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index dcd3062f..86d494a1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -142,7 +142,7 @@ CheckOptions: readability-braces-around-statements.ShortStatementLines: 2 bugprone-unsafe-functions.ReportMoreUnsafeFunctions: true bugprone-unused-return-value.CheckedReturnTypes: ::std::error_code;::std::error_condition;::std::errc - misc-include-cleaner.IgnoreHeaders: '.*/(detail|impl)/.*;.*(expected|unexpected).*;.*ranges_lower_bound\.h' + misc-include-cleaner.IgnoreHeaders: '.*/(detail|impl)/.*;.*(expected|unexpected).*;.*ranges_lower_bound\.h;time.h;stdlib.h' HeaderFilterRegex: '^.*/(src|tests)/.*\.(h|hpp)$' WarningsAsErrors: '*' diff --git a/.clangd b/.clangd index 33ac3e63..87a9e010 100644 --- a/.clangd +++ b/.clangd @@ -9,3 +9,5 @@ Diagnostics: - ".*/(detail|impl)/.*" - ".*expected.*" - ".*ranges_lower_bound.h" + - "time.h" + - "stdlib.h" diff --git a/src/util/TimeUtils.cpp b/src/util/TimeUtils.cpp index 6d8d9e40..7a97cac4 100644 --- a/src/util/TimeUtils.cpp +++ b/src/util/TimeUtils.cpp @@ -19,7 +19,6 @@ #include "util/TimeUtils.hpp" -#include #include #include diff --git a/tests/unit/rpc/handlers/LedgerIndexTests.cpp b/tests/unit/rpc/handlers/LedgerIndexTests.cpp index 5a0b8961..465dd48b 100644 --- a/tests/unit/rpc/handlers/LedgerIndexTests.cpp +++ b/tests/unit/rpc/handlers/LedgerIndexTests.cpp @@ -29,9 +29,9 @@ #include #include #include -#include #include +#include #include #include