astyle formatting

This commit is contained in:
Daniel Marjamäki 2020-09-06 07:47:17 +02:00
parent fb37137216
commit c7aed8bd0e
2 changed files with 3 additions and 4 deletions

View File

@ -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";
}

View File

@ -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);