From a3257349b9c2ad7b0c6af17488d7596e43500658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Mar 2019 10:50:06 +0100 Subject: [PATCH] astyle formatting [ci skip] --- cli/cmdlineparser.cpp | 2 +- lib/cppcheck.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index ca8145f04..6eef03d26 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -171,7 +171,7 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) else if (std::strcmp(argv[i], "--experimental-fast") == 0) // TODO: Reomve this flag! - ; + ; // (Experimental) exception handling inside cppcheck client else if (std::strcmp(argv[i], "--exception-handling") == 0) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 392889c76..9956f1017 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -436,15 +436,15 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string // simplify more if required, skip rest of iteration if failed if (mSimplify && hasRule("simple")) { - // if further simplification fails then skip rest of iteration - Timer timer3("Tokenizer::simplifyTokenList2", mSettings.showtime, &S_timerResults); - result = mTokenizer.simplifyTokenList2(); - timer3.Stop(); - if (!result) - continue; + // if further simplification fails then skip rest of iteration + Timer timer3("Tokenizer::simplifyTokenList2", mSettings.showtime, &S_timerResults); + result = mTokenizer.simplifyTokenList2(); + timer3.Stop(); + if (!result) + continue; - if (!mSettings.terminated()) - executeRules("simple", mTokenizer); + if (!mSettings.terminated()) + executeRules("simple", mTokenizer); } } catch (const simplecpp::Output &o) {