Skip to content

Commit

Permalink
Update clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
legleux committed Jun 26, 2024
1 parent c287374 commit adbf1ca
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 15 deletions.
10 changes: 7 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@ DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ Q_FOREACH, BOOST_FOREACH ]
IncludeBlocks: Regroup

IncludeCategories:
- Regex: '^<(BeastConfig)'
Priority: 0
- Regex: '^<(ripple)/'
- Regex: '^<xrpl/.*>'
Priority: 2
- Regex: '^<(test)/'
Priority: 1
- Regex: '^<.*\.h>'
Priority: 0
- Regex: '^<(boost)/'
Priority: 3
- Regex: '.*'
Expand Down
11 changes: 7 additions & 4 deletions src/ValidatorKeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
*/
//==============================================================================

#include <boost/algorithm/clamp.hpp>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <ValidatorKeys.h>
#include <fstream>

#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base64.h>
#include <xrpl/json/json_reader.h>
#include <xrpl/json/to_string.h>
#include <xrpl/protocol/HashPrefix.h>
#include <xrpl/protocol/Sign.h>

#include <boost/algorithm/clamp.hpp>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>

#include <fstream>

namespace ripple {

std::string
Expand Down
6 changes: 4 additions & 2 deletions src/ValidatorKeys.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
*/
//==============================================================================

#include <xrpl/protocol/KeyType.h>
#include <xrpl/protocol/SecretKey.h>

#include <boost/optional.hpp>

#include <cstdint>
#include <string>
#include <vector>
#include <xrpl/protocol/KeyType.h>
#include <xrpl/protocol/SecretKey.h>

namespace boost {
namespace filesystem {
Expand Down
10 changes: 5 additions & 5 deletions src/ValidatorKeysTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
*/
//==============================================================================

#include <ValidatorKeys.h>
#include <ValidatorKeysTool.h>

#include <ValidatorKeys.h>
#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base64.h>
#include <xrpl/beast/core/SemanticVersion.h>
#include <xrpl/beast/unit_test.h>

#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/program_options.hpp>
#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base64.h>
#include <xrpl/beast/core/SemanticVersion.h>
#include <xrpl/beast/unit_test.h>

#ifdef BOOST_MSVC
#include <Windows.h>
Expand Down
1 change: 1 addition & 0 deletions src/ValidatorKeysTool.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
//==============================================================================

#include <boost/optional.hpp>

#include <vector>

namespace boost {
Expand Down
4 changes: 3 additions & 1 deletion src/test/KeyFileGuard.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
*/
//==============================================================================

#include <xrpl/beast/unit_test.h>

#include <boost/filesystem.hpp>

#include <fstream>
#include <xrpl/beast/unit_test.h>

namespace ripple {

Expand Down
2 changes: 2 additions & 0 deletions src/test/ValidatorKeysTool_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

#include <ValidatorKeys.h>
#include <ValidatorKeysTool.h>

#include <test/KeyFileGuard.h>

#include <xrpl/protocol/SecretKey.h>

namespace ripple {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ValidatorKeys_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
//==============================================================================

#include <ValidatorKeys.h>

#include <test/KeyFileGuard.h>

#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base64.h>
#include <xrpl/protocol/HashPrefix.h>
Expand Down

0 comments on commit adbf1ca

Please sign in to comment.