From f052d32e31e94e2b8c5519607c3da1be304e0677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 10 Sep 2020 08:02:45 +0200 Subject: [PATCH] astyle formatting --- lib/astutils.cpp | 2 +- lib/symboldatabase.h | 3 +-- lib/valueflow.h | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 498c8f3eb..1572c7049 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -1478,7 +1478,7 @@ bool isVariableChangedByFunctionCall(const Token *tok, int indirect, const Setti std::vector args = getArgumentVars(tok, argnr); bool conclusive = false; - for(const Variable *arg:args) { + for (const Variable *arg:args) { if (!arg) continue; conclusive = true; diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index df9f1aab9..6967cac83 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -1049,8 +1049,7 @@ public: return false; } - static Function* nestedInFunction(const Scope* scope) - { + static Function* nestedInFunction(const Scope* scope) { while (scope) { if (scope->type == Scope::eFunction) break; diff --git a/lib/valueflow.h b/lib/valueflow.h index 5df154f26..4c823952b 100644 --- a/lib/valueflow.h +++ b/lib/valueflow.h @@ -217,8 +217,7 @@ namespace ValueFlow { return valueType == ValueType::LIFETIME && lifetimeScope == LifetimeScope::Argument; } - bool isSubFunctionLifetimeValue() const - { + bool isSubFunctionLifetimeValue() const { return valueType == ValueType::LIFETIME && lifetimeScope == LifetimeScope::SubFunction; }