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("..."));
|
_errorLogger.reportOut(std::string("Checking ") + fname + ": " + cfg + std::string("..."));
|
||||||
|
|
||||||
std::string appendCode = _settings.append();
|
std::string appendCode = _settings.append();
|
||||||
if( !appendCode.empty() )
|
if ( !appendCode.empty() )
|
||||||
Preprocessor::preprocessWhitespaces(appendCode);
|
Preprocessor::preprocessWhitespaces(appendCode);
|
||||||
|
|
||||||
checkFile(codeWithoutCfg + appendCode, _filenames[c].c_str());
|
checkFile(codeWithoutCfg + appendCode, _filenames[c].c_str());
|
||||||
|
|
|
@ -194,7 +194,7 @@ bool MathLib::isInt(const std::string & s)
|
||||||
// unsigned or long
|
// unsigned or long
|
||||||
while (std::tolower(s[n]) == 'u' || std::tolower(s[n]) == 'l') ++n;
|
while (std::tolower(s[n]) == 'u' || std::tolower(s[n]) == 'l') ++n;
|
||||||
|
|
||||||
if(bStartsWithDigit==false)
|
if (bStartsWithDigit==false)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// eat up whitespace
|
// eat up whitespace
|
||||||
|
|
|
@ -56,7 +56,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> filenames;
|
std::vector<std::string> filenames;
|
||||||
for( int i = 1; i <= files; ++i )
|
for ( int i = 1; i <= files; ++i )
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << "file_" << i << ".cpp";
|
oss << "file_" << i << ".cpp";
|
||||||
|
@ -66,7 +66,7 @@ private:
|
||||||
Settings settings;
|
Settings settings;
|
||||||
settings._jobs = jobs;
|
settings._jobs = jobs;
|
||||||
ThreadExecutor executor(filenames, settings, *this);
|
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 );
|
executor.addFileContent(filenames[i], data );
|
||||||
|
|
||||||
ASSERT_EQUALS(result, executor.check());
|
ASSERT_EQUALS(result, executor.check());
|
||||||
|
@ -87,7 +87,7 @@ private:
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << "int main()\n"
|
oss << "int main()\n"
|
||||||
<< "{\n";
|
<< "{\n";
|
||||||
for( int i = 0; i < 500; i++ )
|
for ( int i = 0; i < 500; i++ )
|
||||||
oss << " {char *a = malloc(10);}\n";
|
oss << " {char *a = malloc(10);}\n";
|
||||||
|
|
||||||
oss << "}\n";
|
oss << "}\n";
|
||||||
|
|
Loading…
Reference in New Issue