From a585834445e9291d985da803a7b633bb3be4aca9 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 3 Jun 2021 07:35:50 +0200 Subject: [PATCH] Running astyle [ci skip] --- lib/symboldatabase.h | 4 +++- lib/token.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 78ae0d63e..e8bb48d8f 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -1273,7 +1273,9 @@ public: static MatchResult matchParameter(const ValueType *call, const ValueType *func); static MatchResult matchParameter(const ValueType *call, const Variable *callVar, const Variable *funcVar); - bool isPrimitive() const { return (type >= ValueType::Type::BOOL); } + bool isPrimitive() const { + return (type >= ValueType::Type::BOOL); + } bool isIntegral() const { return (type >= ValueType::Type::BOOL && type <= ValueType::Type::UNKNOWN_INT); diff --git a/lib/token.cpp b/lib/token.cpp index 3c1ecd0fa..a1c570f4d 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -2304,8 +2304,10 @@ const ::Type* Token::typeOf(const Token* tok, const Token** typeTok) if (vars.empty()) return nullptr; if (std::all_of( - vars.begin(), vars.end(), [&](const Variable* var) { return var->type() == vars.front()->type(); })) - return vars.front()->type(); + vars.begin(), vars.end(), [&](const Variable* var) { + return var->type() == vars.front()->type(); + })) + return vars.front()->type(); } return nullptr;