Astyle cleanup.
This commit is contained in:
parent
3c12d23fd9
commit
5d1a10b0a3
|
@ -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());
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue