CheckBasicStyle: Check number of empty lines between functions (#4267)

Add check for number of empty lines between functions and fix the corresponding failures
This commit is contained in:
peterbell10
2018-07-26 22:24:36 +01:00
committed by GitHub
parent b8ab03bc6b
commit 950aeffff8
121 changed files with 192 additions and 166 deletions
@@ -161,7 +161,6 @@ bool cBlockingSslClientSocket::Connect(const AString & a_ServerName, UInt16 a_Po
void cBlockingSslClientSocket::SetExpectedPeerName(AString a_ExpectedPeerName)
{
ASSERT(!m_IsConnected); // Must be called before connect
@@ -236,7 +235,6 @@ bool cBlockingSslClientSocket::Send(const void * a_Data, size_t a_NumBytes)
int cBlockingSslClientSocket::Receive(void * a_Data, size_t a_MaxBytes)
{
// Even if m_IsConnected is false (socket disconnected), the SSL context may have more data in the queue
-1
View File
@@ -10,7 +10,6 @@
cCallbackSslContext::cCallbackSslContext(void) :
m_Callbacks(nullptr)
{
-2
View File
@@ -104,7 +104,6 @@ int cCryptoKey::Encrypt(const Byte * a_PlainData, size_t a_PlainLength, Byte * a
int cCryptoKey::ParsePublic(const void * a_Data, size_t a_NumBytes)
{
ASSERT(!IsValid()); // Cannot parse a second key
@@ -116,7 +115,6 @@ int cCryptoKey::ParsePublic(const void * a_Data, size_t a_NumBytes)
int cCryptoKey::ParsePrivate(const void * a_Data, size_t a_NumBytes, const AString & a_Password)
{
ASSERT(!IsValid()); // Cannot parse a second key
-2
View File
@@ -49,7 +49,6 @@ public:
////////////////////////////////////////////////////////////////////////////////
// cSha1Checksum:
@@ -126,7 +125,6 @@ void cSha1Checksum::DigestToJava(const Checksum & a_Digest, AString & a_Out)
void cSha1Checksum::Restart(void)
{
mbedtls_sha1_starts(&m_Sha1);