astyle formatting
This commit is contained in:
parent
2e2d4a0055
commit
b7f812739c
|
@ -578,13 +578,12 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
|
||||||
mSettings->plistOutput += '/';
|
mSettings->plistOutput += '/';
|
||||||
|
|
||||||
const std::string plistOutput = Path::toNativeSeparators(mSettings->plistOutput);
|
const std::string plistOutput = Path::toNativeSeparators(mSettings->plistOutput);
|
||||||
if (!FileLister::isDirectory(plistOutput))
|
if (!FileLister::isDirectory(plistOutput)) {
|
||||||
{
|
std::string message("cppcheck: error: plist folder does not exist: \"");
|
||||||
std::string message("cppcheck: error: plist folder does not exist: \"");
|
message += plistOutput;
|
||||||
message += plistOutput;
|
message += "\".";
|
||||||
message += "\".";
|
printMessage(message);
|
||||||
printMessage(message);
|
return false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -516,7 +516,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
|
||||||
filename2 = filename.substr(filename.rfind('/') + 1);
|
filename2 = filename.substr(filename.rfind('/') + 1);
|
||||||
else
|
else
|
||||||
filename2 = filename;
|
filename2 = filename;
|
||||||
std::size_t fileNameHash = std::hash<std::string>{}(filename);
|
std::size_t fileNameHash = std::hash<std::string> {}(filename);
|
||||||
filename2 = mSettings.plistOutput + filename2.substr(0, filename2.find('.')) + "_" + std::to_string(fileNameHash) + ".plist";
|
filename2 = mSettings.plistOutput + filename2.substr(0, filename2.find('.')) + "_" + std::to_string(fileNameHash) + ".plist";
|
||||||
plistFile.open(filename2);
|
plistFile.open(filename2);
|
||||||
plistFile << ErrorLogger::plistHeader(version(), files);
|
plistFile << ErrorLogger::plistHeader(version(), files);
|
||||||
|
|
Loading…
Reference in New Issue