From 4378327c43ca125f319b8593d9f89ecd79d6eae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 27 Aug 2018 13:48:46 +0200 Subject: [PATCH] astyle formatting [ci skip] --- lib/astutils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 89845f086..22a20a165 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -780,17 +780,17 @@ bool isVariableChanged(const Token *start, const Token *end, const unsigned int return true; // Member function call - if(Token::Match(tok, "%name% . %name% (")) { + if (Token::Match(tok, "%name% . %name% (")) { const Variable * var = tok->variable(); bool isConst = var && var->isConst(); - if(!isConst && var) { + if (!isConst && var) { const ValueType * valueType = var->valueType(); isConst = (valueType && valueType->pointer == 1 && valueType->constness == 1); } - + const Token *ftok = tok->tokAt(2); const Function * fun = ftok->function(); - if(!isConst && (!fun || !fun->isConst())) + if (!isConst && (!fun || !fun->isConst())) return true; }