From f84dcc473808cf0456c67959627684922c7981ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 3 Jul 2019 08:29:47 +0200 Subject: [PATCH] astyle formatting [ci skip] --- lib/tokenize.cpp | 6 +++--- test/testunusedvar.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 4c2c40188..0f18beecb 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -9233,9 +9233,9 @@ void Tokenizer::findGarbageCode() const if (Token::Match(tok->next(), ")|]|>|%assign%|%or%|%oror%|==|!=|/|>=|<=|&&")) syntaxError(tok); } - if (Token::simpleMatch(tok, ".") && - !Token::simpleMatch(tok->previous(), ".") && - !Token::simpleMatch(tok->next(), ".") && + if (Token::simpleMatch(tok, ".") && + !Token::simpleMatch(tok->previous(), ".") && + !Token::simpleMatch(tok->next(), ".") && !Token::Match(tok->previous(), "{|, . %name% =")) { if (!Token::Match(tok->previous(), ")|]|>|}|%name%")) syntaxError(tok); diff --git a/test/testunusedvar.cpp b/test/testunusedvar.cpp index 7219745c1..7221ee0f7 100644 --- a/test/testunusedvar.cpp +++ b/test/testunusedvar.cpp @@ -4091,10 +4091,10 @@ private: functionVariableUsage("void foo() {\n" " const int MyInt = 1;\n" " class bar {\n" - " public:\n" + " public:\n" " bool operator()(const int &uIndexA, const int &uIndexB) const {\n" - " return true;\n" - " }\n" + " return true;\n" + " }\n" " bar() {}\n" " };\n" " return MyInt;\n"