Astyle cleanup.

This commit is contained in:
Kimmo Varis 2010-07-17 17:42:17 +03:00
parent 3c12d23fd9
commit 5d1a10b0a3
3 changed files with 5 additions and 5 deletions

View File

@ -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());

View File

@ -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

View File

@ -56,7 +56,7 @@ private:
}
std::vector<std::string> 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";