From 1d6c0976e5be46e66120c3c993efea6d0b9a7824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 1 Jan 2021 08:56:17 +0100 Subject: [PATCH] astyle formatting [ci skip] --- lib/astutils.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index fe098d470..ffb1c644f 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -1682,15 +1682,13 @@ bool isVariableChanged(const Token *tok, int indirect, const Settings *settings, return false; } - if (indirect > 0) - { + if (indirect > 0) { // check for `*(ptr + 1) = new_value` case parent = tok2->astParent(); while (parent && parent->isArithmeticalOp() && parent->isBinaryOp()) { parent = parent->astParent(); } - if (Token::simpleMatch(parent, "*")) - { + if (Token::simpleMatch(parent, "*")) { if (parent->astParent() && parent->astParent()->isAssignmentOp() && (parent->astParent()->astOperand1() == parent)) { return true;