Updating and applying formatting changes. (#3209)

This commit is contained in:
clemahieu 2021-04-19 21:37:01 +02:00 committed by GitHub
commit 8d0a03e23d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
188 changed files with 4409 additions and 4406 deletions

View file

@ -7,22 +7,23 @@ Standard: Cpp11
TabWidth: 4 TabWidth: 4
IndentWidth: 4 IndentWidth: 4
PointerAlignment: Middle PointerAlignment: Middle
UseTab: ForIndentation UseTab: ForContinuationAndIndentation
BreakBeforeBraces: Custom BreakBeforeBraces: Custom
AlignEscapedNewlines: Left AlignEscapedNewlines: Left
AllowShortBlocksOnASingleLine: false AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false AllowShortFunctionsOnASingleLine: false
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false AllowShortLoopsOnASingleLine: false
BreakConstructorInitializersBeforeComma: true BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializers: AfterColon BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 0 ContinuationIndentWidth: 0
KeepEmptyLinesAtTheStartOfBlocks: false KeepEmptyLinesAtTheStartOfBlocks: false
IndentCaseLabels: true IndentCaseLabels: true
SpaceBeforeCpp11BracedList: false SpaceBeforeCpp11BracedList: false
BraceWrapping: BraceWrapping:
AfterCaseLabel: true
AfterEnum: true AfterEnum: true
AfterStruct: true AfterStruct: true
SplitEmptyFunction: true SplitEmptyFunction: true
@ -33,6 +34,7 @@ BraceWrapping:
AfterClass: true AfterClass: true
BeforeCatch: true BeforeCatch: true
BeforeElse: true BeforeElse: true
BeforeLambdaBody: true
SplitEmptyRecord: true SplitEmptyRecord: true
SplitEmptyNamespace: true SplitEmptyNamespace: true
SortIncludes: true SortIncludes: true

View file

@ -7,7 +7,6 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
TEST (processor_service, bad_send_signature) TEST (processor_service, bad_send_signature)
{ {
nano::logger_mt logger; nano::logger_mt logger;

View file

@ -7,8 +7,8 @@
#include <nano/secure/common.hpp> #include <nano/secure/common.hpp>
#include <boost/multi_index/hashed_index.hpp> #include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/member.hpp> #include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/sequenced_index.hpp> #include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index_container.hpp> #include <boost/multi_index_container.hpp>
@ -47,14 +47,16 @@ class vote_spacing final
mi::hashed_non_unique<mi::tag<class tag_root>, mi::hashed_non_unique<mi::tag<class tag_root>,
mi::member<entry, nano::root, &entry::root>>, mi::member<entry, nano::root, &entry::root>>,
mi::ordered_non_unique<mi::tag<class tag_time>, mi::ordered_non_unique<mi::tag<class tag_time>,
mi::member<entry, std::chrono::steady_clock::time_point, &entry::time>> mi::member<entry, std::chrono::steady_clock::time_point, &entry::time>>>>
>>
recent; recent;
std::chrono::milliseconds const delay; std::chrono::milliseconds const delay;
void trim (); void trim ();
public: public:
vote_spacing (std::chrono::milliseconds const & delay) : vote_spacing (std::chrono::milliseconds const & delay) :
delay{ delay } {} delay{ delay }
{
}
bool votable (nano::root const & root_a, nano::block_hash const & hash_a) const; bool votable (nano::root const & root_a, nano::block_hash const & hash_a) const;
void flag (nano::root const & root_a, nano::block_hash const & hash_a); void flag (nano::root const & root_a, nano::block_hash const & hash_a);
size_t size () const; size_t size () const;