Add clang-format configuration.

For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
This commit is contained in:
Alexey Sokolov
2015-12-06 22:36:35 +00:00
parent 02f8749a8b
commit 33b0627d75
132 changed files with 12743 additions and 8904 deletions
+8 -8
View File
@@ -16,13 +16,12 @@
#include <znc/Server.h>
CServer::CServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL)
: m_sName(sName),
m_uPort((uPort) ? uPort : (unsigned short)6667),
m_sPass(sPass),
m_bSSL(bSSL)
{
}
CServer::CServer(const CString& sName, unsigned short uPort,
const CString& sPass, bool bSSL)
: m_sName(sName),
m_uPort((uPort) ? uPort : (unsigned short)6667),
m_sPass(sPass),
m_bSSL(bSSL) {}
CServer::~CServer() {}
@@ -37,5 +36,6 @@ bool CServer::IsSSL() const { return m_bSSL; }
CString CServer::GetString(bool bIncludePassword) const {
return m_sName + " " + CString(m_bSSL ? "+" : "") + CString(m_uPort) +
CString(bIncludePassword ? (m_sPass.empty() ? "" : " " + m_sPass) : "");
CString(bIncludePassword ? (m_sPass.empty() ? "" : " " + m_sPass)
: "");
}