From 2a6fbe2e3cea63fd0c853467f2f1ca31a2b7f4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 5 Oct 2017 23:01:42 +0200 Subject: [PATCH] astyle formatting [ci skip] --- lib/valueflow.cpp | 2 +- test/testsuite.cpp | 2 +- test/testvalueflow.cpp | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 58670aa13..67f04e2ae 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -96,7 +96,7 @@ static void bailoutInternal(TokenList *tokenlist, ErrorLogger *errorLogger, cons std::list callstack; callstack.push_back(ErrorLogger::ErrorMessage::FileLocation(tok, tokenlist)); ErrorLogger::ErrorMessage errmsg(callstack, tokenlist->getSourceFilePath(), Severity::debug, - Path::stripDirectoryPart(file) + ":" + MathLib::toString(line) + ":" + function + " bailout: " + what, "valueFlowBailout", false); + Path::stripDirectoryPart(file) + ":" + MathLib::toString(line) + ":" + function + " bailout: " + what, "valueFlowBailout", false); errorLogger->reportErr(errmsg); } diff --git a/test/testsuite.cpp b/test/testsuite.cpp index a0cf284f4..713582a6d 100644 --- a/test/testsuite.cpp +++ b/test/testsuite.cpp @@ -149,7 +149,7 @@ std::string TestFixture::deleteLineNumber(const std::string &message) const // get number if (pos + 1 == result.find_first_of("0123456789", pos + 1)) { if ((after = result.find_first_not_of("0123456789", pos + 1)) != std::string::npos - && result.at(after) == ':') { + && result.at(after) == ':') { // erase NUMBER result.erase(pos + 1, after - pos - 1); pos = after; diff --git a/test/testvalueflow.cpp b/test/testvalueflow.cpp index 6b2c571fa..c9a88f520 100644 --- a/test/testvalueflow.cpp +++ b/test/testvalueflow.cpp @@ -1021,8 +1021,8 @@ private: " if (x==123){}\n" "}"); ASSERT_EQUALS_WITHOUT_LINENUMBERS("[test.cpp:4]: (debug) valueflow.cpp:1131:valueFlowReverse bailout: variable x stopping on goto label\n" - "[test.cpp:2]: (debug) valueflow.cpp:1813:valueFlowForward bailout: variable x. noreturn conditional scope.\n" - , errout.str()); + "[test.cpp:2]: (debug) valueflow.cpp:1813:valueFlowForward bailout: variable x. noreturn conditional scope.\n" + , errout.str()); // #5721 - FP bailout("static void f(int rc) {\n" @@ -1036,9 +1036,9 @@ private: " if (abc) {}\n" "}\n"); ASSERT_EQUALS_WITHOUT_LINENUMBERS("[test.cpp:2]: (debug) valueflow.cpp:1035:valueFlowReverse bailout: assignment of abc\n" - "[test.cpp:8]: (debug) valueflow.cpp:1131:valueFlowReverse bailout: variable abc stopping on goto label\n" - "[test.cpp:3]: (debug) valueflow.cpp:1813:valueFlowForward bailout: variable abc. noreturn conditional scope.\n", - errout.str()); + "[test.cpp:8]: (debug) valueflow.cpp:1131:valueFlowReverse bailout: variable abc stopping on goto label\n" + "[test.cpp:3]: (debug) valueflow.cpp:1813:valueFlowForward bailout: variable abc. noreturn conditional scope.\n", + errout.str()); } void valueFlowAfterAssign() {