astyle formatting

This commit is contained in:
Daniel Marjamäki 2020-11-13 15:52:57 +01:00
parent 2e2d4a0055
commit b7f812739c
2 changed files with 7 additions and 8 deletions

View File

@ -578,13 +578,12 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
mSettings->plistOutput += '/';
const std::string plistOutput = Path::toNativeSeparators(mSettings->plistOutput);
if (!FileLister::isDirectory(plistOutput))
{
std::string message("cppcheck: error: plist folder does not exist: \"");
message += plistOutput;
message += "\".";
printMessage(message);
return false;
if (!FileLister::isDirectory(plistOutput)) {
std::string message("cppcheck: error: plist folder does not exist: \"");
message += plistOutput;
message += "\".";
printMessage(message);
return false;
}
}

View File

@ -516,7 +516,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
filename2 = filename.substr(filename.rfind('/') + 1);
else
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";
plistFile.open(filename2);
plistFile << ErrorLogger::plistHeader(version(), files);