astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2021-01-10 14:46:19 +01:00
parent bc3f5554a4
commit f493ce16b3
6 changed files with 277 additions and 275 deletions

View File

@ -281,8 +281,7 @@ QString CppcheckLibraryData::open(QIODevice &file)
}
if (xmlReader.hasError()) {
return xmlReader.errorString();
}
else {
} else {
return QString();
}
}

View File

@ -349,9 +349,15 @@ T asInt(T x)
return x;
}
MathLib::bigint asInt(float x) { return x; }
MathLib::bigint asInt(float x)
{
return x;
}
MathLib::bigint asInt(double x) { return x; }
MathLib::bigint asInt(double x)
{
return x;
}
template <class T, class U>
static T calculate(const std::string& s, T x, U y)
@ -4111,8 +4117,7 @@ struct ConditionHandler {
void beforeCondition(TokenList* tokenlist,
SymbolDatabase* symboldatabase,
ErrorLogger* errorLogger,
const Settings* settings) const
{
const Settings* settings) const {
traverseCondition(
tokenlist,
symboldatabase,
@ -4447,8 +4452,7 @@ struct SimpleConditionHandler : ConditionHandler {
const Token* exprTok,
const std::list<ValueFlow::Value>& values,
TokenList* tokenlist,
const Settings* settings) const OVERRIDE
{
const Settings* settings) const OVERRIDE {
return valueFlowReverse(start, exprTok, values, tokenlist, settings);
}
@ -6155,8 +6159,7 @@ struct ContainerConditionHandler : ConditionHandler {
const Token* exprTok,
const std::list<ValueFlow::Value>& values,
TokenList* tokenlist,
const Settings* settings) const OVERRIDE
{
const Settings* settings) const OVERRIDE {
if (values.empty())
return;
if (!exprTok->variable())