From 0efddc4010b0eb0a6077fcaa84a322694b9dd538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 31 Mar 2019 16:20:06 +0200 Subject: [PATCH] astyle formatting [ci skip] --- lib/checkother.cpp | 4 ++-- test/testincompletestatement.cpp | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 9d487ee8f..12995eaab 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1444,8 +1444,8 @@ void CheckOther::checkIncompleteStatement() if (isVoidStmt(tok)) continue; if (mTokenizer->isCPP() && tok->str() == "&" && !(tok->astOperand1()->valueType() && tok->astOperand1()->valueType()->isIntegral())) - // Possible archive - continue; + // Possible archive + continue; bool inconclusive = Token::Match(tok, "%cop%"); if (mSettings->inconclusive || !inconclusive) constStatementError(tok, tok->isNumber() ? "numeric" : "string", inconclusive); diff --git a/test/testincompletestatement.cpp b/test/testincompletestatement.cpp index ad2905bf0..66b7eee79 100644 --- a/test/testincompletestatement.cpp +++ b/test/testincompletestatement.cpp @@ -368,17 +368,17 @@ private: ASSERT_EQUALS("", errout.str()); } - void archive() { - check("void f(Archive &ar) {\n" - " ar & x;\n" - "}", true); - ASSERT_EQUALS("", errout.str()); + void archive() { + check("void f(Archive &ar) {\n" + " ar & x;\n" + "}", true); + ASSERT_EQUALS("", errout.str()); - check("void f(int ar) {\n" - " ar & x;\n" - "}", true); - ASSERT_EQUALS("[test.cpp:2]: (warning, inconclusive) Found suspicious operator '&'\n", errout.str()); - } + check("void f(int ar) {\n" + " ar & x;\n" + "}", true); + ASSERT_EQUALS("[test.cpp:2]: (warning, inconclusive) Found suspicious operator '&'\n", errout.str()); + } }; REGISTER_TEST(TestIncompleteStatement)