Skip to content

Commit

Permalink
style: clang-tidy auto fixes (#1512)
Browse files Browse the repository at this point in the history
Fixes #1511. 

---------

Co-authored-by: kuznetsss <[email protected]>
Co-authored-by: Sergey Kuznetsov <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent 6cb63ed commit f55872d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -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).*'
misc-include-cleaner.IgnoreHeaders: '.*/(detail|impl)/.*;.*(expected|unexpected).*;.*ranges_lower_bound\.h'

HeaderFilterRegex: '^.*/(src|tests)/.*\.(h|hpp)$'
WarningsAsErrors: '*'
1 change: 1 addition & 0 deletions .clangd
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Diagnostics:
IgnoreHeader:
- ".*/(detail|impl)/.*"
- ".*expected.*"
- ".*ranges_lower_bound.h"
1 change: 0 additions & 1 deletion src/etl/impl/GrpcSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "util/log/Logger.hpp"

#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/address.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <fmt/core.h>
#include <grpcpp/client_context.h>
Expand Down
6 changes: 2 additions & 4 deletions src/rpc/handlers/LedgerIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@

#include "rpc/handlers/LedgerIndex.hpp"

#include "rpc/Errors.hpp"
#include "rpc/JS.hpp"
#include "rpc/common/Types.hpp"
#include "util/Assert.hpp"

#include <boost/json/conversion.hpp>
#include <boost/json/object.hpp>
#include <boost/json/value.hpp>
#include <fmt/core.h>
#include <xrpl/basics/chrono.h>
#include <xrpl/basics/strHex.h>
#include <xrpl/protocol/jss.h>
Expand All @@ -35,11 +34,10 @@
#include <chrono>
#include <cstdint>
#include <ctime>
#include <numeric>
#include <iomanip>
#include <ranges>
#include <sstream>
#include <string>
#include <utility>

namespace rpc {

Expand Down
10 changes: 4 additions & 6 deletions tests/unit/rpc/handlers/LedgerIndexTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@

#include <boost/json/parse.hpp>
#include <boost/json/value.hpp>
#include <fmt/core.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <xrpl/basics/base_uint.h>
#include <xrpl/protocol/Indexes.h>
#include <xrpl/protocol/LedgerFormats.h>
#include <xrpl/protocol/UintTypes.h>
#include <xrpl/protocol/jss.h>

#include <cstdint>
#include <string>
#include <vector>

constexpr static auto RANGEMIN = 10;
constexpr static auto RANGEMAX = 30;
Expand Down

0 comments on commit f55872d

Please sign in to comment.