From b7f812739cd8641a92237405fa8050d6f1245162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 13 Nov 2020 15:52:57 +0100 Subject: [PATCH] astyle formatting --- cli/cmdlineparser.cpp | 13 ++++++------- lib/cppcheck.cpp | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index d9f55b370..6c954011e 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -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; } } diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 4604029c1..8c7a9f9d9 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -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{}(filename); + std::size_t fileNameHash = std::hash {}(filename); filename2 = mSettings.plistOutput + filename2.substr(0, filename2.find('.')) + "_" + std::to_string(fileNameHash) + ".plist"; plistFile.open(filename2); plistFile << ErrorLogger::plistHeader(version(), files);