From c7aed8bd0eb0af183c7f593020b318772bba23bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 6 Sep 2020 07:47:17 +0200 Subject: [PATCH] astyle formatting --- lib/cppcheck.cpp | 4 ++-- lib/valueflow.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 401dc4cdb..79d8c34e4 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -328,9 +328,9 @@ unsigned int CppCheck::check(const std::string &path) const std::string analyzerInfo = mSettings.buildDir.empty() ? std::string() : AnalyzerInformation::getAnalyzerInfoFile(mSettings.buildDir, path, ""); const std::string clangcmd = analyzerInfo + ".clang-cmd"; const std::string clangStderr = analyzerInfo + ".clang-stderr"; - std::string exe = mSettings.clangExecutable; + std::string exe = mSettings.clangExecutable; #ifdef _WIN32 - // append .exe if it is not a path + // append .exe if it is not a path if (Path::fromNativeSeparators(mSettings.clangExecutable).find('/') == std::string::npos) { exe += ".exe"; } diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 047d945b5..6058414a8 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -790,8 +790,7 @@ static void setTokenValue(Token* tok, const ValueFlow::Value &value, const Setti // Value can't be inverted continue; v.intvalue = -v.intvalue; - } - else + } else v.floatValue = -v.floatValue; v.invertBound(); setTokenValue(parent, v, settings);