Skip to content

Commit 08dd7ab

Browse files
committed
Apply clang-format
1 parent eef328b commit 08dd7ab

40 files changed

+329
-268
lines changed

src/ripple/app/consensus/RCLConsensus.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ RCLConsensus::Adaptor::doAccept(
687687

688688
for (auto const& [t, v] : rawCloseTimes.peers)
689689
{
690-
JLOG(j_.debug()) << v << " time votes for "
691-
<< t.time_since_epoch().count();
690+
JLOG(j_.debug())
691+
<< v << " time votes for " << t.time_since_epoch().count();
692692
closeCount += v;
693693
closeTotal +=
694694
std::chrono::duration_cast<usec64_t>(t.time_since_epoch()) * v;

src/ripple/app/consensus/RCLConsensus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
#include <ripple/consensus/Consensus.h>
3333
#include <ripple/core/JobQueue.h>
3434
#include <ripple/overlay/Message.h>
35-
#include <ripple/protocol/UintTypes.h>
3635
#include <ripple/protocol/STValidation.h>
36+
#include <ripple/protocol/UintTypes.h>
3737
#include <ripple/shamap/SHAMap.h>
3838
#include <atomic>
3939
#include <mutex>

src/ripple/app/consensus/RCLValidations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#include <ripple/app/ledger/Ledger.h>
2424
#include <ripple/consensus/Validations.h>
2525
#include <ripple/protocol/Protocol.h>
26-
#include <ripple/protocol/UintTypes.h>
2726
#include <ripple/protocol/STValidation.h>
27+
#include <ripple/protocol/UintTypes.h>
2828
#include <optional>
2929
#include <set>
3030
#include <vector>

src/ripple/app/ledger/LedgerMaster.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#include <ripple/basics/chrono.h>
3535
#include <ripple/beast/insight/Collector.h>
3636
#include <ripple/protocol/Protocol.h>
37-
#include <ripple/protocol/UintTypes.h>
3837
#include <ripple/protocol/STValidation.h>
38+
#include <ripple/protocol/UintTypes.h>
3939
#include <ripple/protocol/messages.h>
4040
#include <optional>
4141

src/ripple/app/misc/CanonicalTXSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
#define RIPPLE_APP_MISC_CANONICALTXSET_H_INCLUDED
2222

2323
#include <ripple/basics/CountedObject.h>
24-
#include <ripple/protocol/UintTypes.h>
2524
#include <ripple/protocol/STTx.h>
2625
#include <ripple/protocol/SeqProxy.h>
26+
#include <ripple/protocol/UintTypes.h>
2727

2828
namespace ripple {
2929

src/ripple/app/misc/DatagramMonitor.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,14 @@ class DatagramMonitor
487487
}
488488

489489
return {counters, []() {
490-
std::vector<std::pair<std::string, int>> result;
490+
std::vector<std::pair<std::string, int>> result;
491491

492-
for (auto const& c : countedObjects)
493-
if (c.count())
494-
result.emplace_back(c.name(), c.count());
492+
for (auto const& c : countedObjects)
493+
if (c.count())
494+
result.emplace_back(c.name(), c.count());
495495

496-
return result;
497-
}()};
496+
return result;
497+
}()};
498498
}
499499

500500
uint32_t
@@ -750,7 +750,8 @@ class DatagramMonitor
750750
// trivial. we do not need to directly invoke it.
751751
std::vector<uint8_t> buffer(totalSize, 0);
752752

753-
static_assert(std::is_trivially_destructible_v<ServerInfoHeader>,
753+
static_assert(
754+
std::is_trivially_destructible_v<ServerInfoHeader>,
754755
"ServerInfoHeader must be trivially destructible");
755756

756757
auto* header = new (buffer.data()) ServerInfoHeader{};

src/ripple/app/misc/NetworkOPs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,8 @@ NetworkOPsImp::apply(std::unique_lock<std::mutex>& batchLock)
13701370
{
13711371
if (std::string token = transToken(e.result); token != "-")
13721372
{
1373-
JLOG(m_journal.debug())
1374-
<< "Tx " << e.transaction->getID() << ", result: " << token;
1373+
JLOG(m_journal.debug()) << "Tx " << e.transaction->getID()
1374+
<< ", result: " << token;
13751375
}
13761376
}
13771377
#endif

src/ripple/app/misc/TxQ.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
#include <ripple/app/tx/applySteps.h>
2424
#include <ripple/ledger/ApplyView.h>
2525
#include <ripple/ledger/OpenView.h>
26-
#include <ripple/protocol/UintTypes.h>
2726
#include <ripple/protocol/STTx.h>
2827
#include <ripple/protocol/SeqProxy.h>
2928
#include <ripple/protocol/TER.h>
29+
#include <ripple/protocol/UintTypes.h>
3030
#include <boost/circular_buffer.hpp>
3131
#include <boost/intrusive/set.hpp>
3232
#include <optional>

src/ripple/app/paths/TrustLine.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ class TrustLineBase
202202

203203
STAmount mBalance;
204204
std::optional<STAmount> mLockedBalance;
205-
std::optional<std::uint32_t> mLockCount; // RH NOTE: this is from sfLockCount
206-
// has nothing to do with a mutex.
205+
std::optional<std::uint32_t>
206+
mLockCount; // RH NOTE: this is from sfLockCount
207+
// has nothing to do with a mutex.
207208

208209
std::uint32_t mFlags;
209210

src/ripple/app/tx/impl/Transactor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,8 @@ Transactor::apply()
785785
assert(
786786
sle != nullptr || account_ == beast::zero ||
787787
(view().rules().enabled(featureImport) &&
788-
ctx_.tx.getTxnType() == ttIMPORT &&
789-
!ctx_.tx.isFieldPresent(sfIssuer)));
788+
ctx_.tx.getTxnType() == ttIMPORT &&
789+
!ctx_.tx.isFieldPresent(sfIssuer)));
790790

791791
if (sle)
792792
{

0 commit comments

Comments
 (0)