Skip to content

Commit

Permalink
Changes required due to libxrpl refactor (#54)
Browse files Browse the repository at this point in the history
* Changed required for XRPLF/rippled#5050

* clang-format

* Update clang-format
  • Loading branch information
legleux authored Jun 28, 2024
1 parent 5ce6cbf commit 89ab7e5
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 22 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
14 changes: 8 additions & 6 deletions src/ValidatorKeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@

#include <ValidatorKeys.h>

#include <ripple/basics/StringUtilities.h>
#include <ripple/basics/base64.h>
#include <ripple/json/json_reader.h>
#include <ripple/json/to_string.h>
#include <ripple/protocol/HashPrefix.h>
#include <ripple/protocol/Sign.h>
#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 {
Expand Down
6 changes: 4 additions & 2 deletions src/ValidatorKeys.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
*/
//==============================================================================

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

#include <boost/optional.hpp>

#include <cstdint>
#include <string>
#include <vector>
Expand Down
10 changes: 5 additions & 5 deletions src/ValidatorKeysTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
*/
//==============================================================================

#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 <ripple/basics/StringUtilities.h>
#include <ripple/basics/base64.h>
#include <ripple/beast/core/SemanticVersion.h>
#include <ripple/beast/unit_test.h>
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <boost/preprocessor/stringize.hpp>
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,8 +17,10 @@
*/
//==============================================================================

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

#include <boost/filesystem.hpp>

#include <fstream>

namespace ripple {
Expand Down
4 changes: 3 additions & 1 deletion src/test/ValidatorKeysTool_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
*/
//==============================================================================

#include <ripple/protocol/SecretKey.h>
#include <ValidatorKeys.h>
#include <ValidatorKeysTool.h>

#include <test/KeyFileGuard.h>

#include <xrpl/protocol/SecretKey.h>

namespace ripple {

namespace tests {
Expand Down
10 changes: 6 additions & 4 deletions src/test/ValidatorKeys_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
*/
//==============================================================================

#include <ripple/basics/StringUtilities.h>
#include <ripple/basics/base64.h>
#include <ripple/protocol/HashPrefix.h>
#include <ripple/protocol/Sign.h>
#include <ValidatorKeys.h>

#include <test/KeyFileGuard.h>

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

namespace ripple {

namespace tests {
Expand Down

0 comments on commit 89ab7e5

Please sign in to comment.