From 13f85ea3452bf6809f6246fd120b987f9ef2bb5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 17 Aug 2013 13:06:19 +0200 Subject: [PATCH] astyle formatting --- lib/tokenize.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 67dfc6471..a0a4f1f98 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -6239,11 +6239,15 @@ bool Tokenizer::simplifyKnownVariables() // Insert a "%var% = %num% ;" at the beginning of the scope as simplifyKnownVariablesSimplify might compute an updated value Token *scopeStart = tok2->tokAt(5); - scopeStart->insertToken(tok2->tokAt(1)->str()); scopeStart = scopeStart->next(); + scopeStart->insertToken(tok2->tokAt(1)->str()); + scopeStart = scopeStart->next(); Token* artificialAssignment = scopeStart; - scopeStart->insertToken("="); scopeStart = scopeStart->next(); - scopeStart->insertToken(valueToken->str()); scopeStart = scopeStart->next(); - scopeStart->insertToken(";"); scopeStart = scopeStart->next(); + scopeStart->insertToken("="); + scopeStart = scopeStart->next(); + scopeStart->insertToken(valueToken->str()); + scopeStart = scopeStart->next(); + scopeStart->insertToken(";"); + scopeStart = scopeStart->next(); ret |= simplifyKnownVariablesSimplify(&artificialAssignment, tok2->tokAt(6), varid, structname, value, valueIsPointer, valueVarId, valueToken, -1);