Skip to content

Commit

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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sergey Kuznetsov <[email protected]>
  • Loading branch information
3 people authored Jul 10, 2024
1 parent e85f6cd commit d227c53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 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).*;.*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: '*'
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ Diagnostics:
- ".*/(detail|impl)/.*"
- ".*expected.*"
- ".*ranges_lower_bound.h"
- "time.h"
- "stdlib.h"
1 change: 0 additions & 1 deletion src/util/TimeUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "util/TimeUtils.hpp"

#include <time.h>
#include <xrpl/basics/chrono.h>

#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rpc/handlers/LedgerIndexTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include <boost/json/value.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <stdlib.h>

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

Expand Down

0 comments on commit d227c53

Please sign in to comment.