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 += '/';
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue