diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 293409795..a0a1b3fff 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -703,7 +703,7 @@ unsigned int CppCheck::check() _errorLogger.reportOut(std::string("Checking ") + fname + ": " + cfg + std::string("...")); std::string appendCode = _settings.append(); - if( !appendCode.empty() ) + if ( !appendCode.empty() ) Preprocessor::preprocessWhitespaces(appendCode); checkFile(codeWithoutCfg + appendCode, _filenames[c].c_str()); diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index fe1c16b00..ad00d7140 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -194,7 +194,7 @@ bool MathLib::isInt(const std::string & s) // unsigned or long while (std::tolower(s[n]) == 'u' || std::tolower(s[n]) == 'l') ++n; - if(bStartsWithDigit==false) + if (bStartsWithDigit==false) return false; } // eat up whitespace diff --git a/test/testthreadexecutor.cpp b/test/testthreadexecutor.cpp index 753379203..da435d3e0 100644 --- a/test/testthreadexecutor.cpp +++ b/test/testthreadexecutor.cpp @@ -56,7 +56,7 @@ private: } std::vector filenames; - for( int i = 1; i <= files; ++i ) + for ( int i = 1; i <= files; ++i ) { std::ostringstream oss; oss << "file_" << i << ".cpp"; @@ -66,7 +66,7 @@ private: Settings settings; settings._jobs = jobs; ThreadExecutor executor(filenames, settings, *this); - for(unsigned int i = 0; i < filenames.size(); ++i) + for (unsigned int i = 0; i < filenames.size(); ++i) executor.addFileContent(filenames[i], data ); ASSERT_EQUALS(result, executor.check()); @@ -87,7 +87,7 @@ private: std::ostringstream oss; oss << "int main()\n" << "{\n"; - for( int i = 0; i < 500; i++ ) + for ( int i = 0; i < 500; i++ ) oss << " {char *a = malloc(10);}\n"; oss << "}\n";