clang-format: switch tabs to spaces

I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(
This commit is contained in:
Alexey Sokolov
2015-12-06 23:58:03 +00:00
parent 3861b6a583
commit d185d6f22d
131 changed files with 36734 additions and 36735 deletions
+13 -13
View File
@@ -29,17 +29,17 @@ bool CDebug::debug =
#endif
CDebugStream::~CDebugStream() {
timeval tTime;
gettimeofday(&tTime, nullptr);
time_t tSec = (time_t)tTime.tv_sec; // some systems (e.g. openbsd) define
// tv_sec as long int instead of time_t
tm tM;
tzset(); // localtime_r requires this
localtime_r(&tSec, &tM);
char sTime[20] = {};
strftime(sTime, sizeof(sTime), "%Y-%m-%d %H:%M:%S", &tM);
char sUsec[7] = {};
snprintf(sUsec, sizeof(sUsec), "%06lu", (unsigned long int)tTime.tv_usec);
std::cout << "[" << sTime << "." << sUsec << "] "
<< CString(this->str()).Escape_n(CString::EDEBUG) << std::endl;
timeval tTime;
gettimeofday(&tTime, nullptr);
time_t tSec = (time_t)tTime.tv_sec; // some systems (e.g. openbsd) define
// tv_sec as long int instead of time_t
tm tM;
tzset(); // localtime_r requires this
localtime_r(&tSec, &tM);
char sTime[20] = {};
strftime(sTime, sizeof(sTime), "%Y-%m-%d %H:%M:%S", &tM);
char sUsec[7] = {};
snprintf(sUsec, sizeof(sUsec), "%06lu", (unsigned long int)tTime.tv_usec);
std::cout << "[" << sTime << "." << sUsec << "] "
<< CString(this->str()).Escape_n(CString::EDEBUG) << std::endl;
}