From 18adb978730c0e0ddee9ab6e64aaa2d1a28fb19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 28 May 2017 15:56:26 +0200 Subject: [PATCH] astyle formatting [ci skip] --- cli/threadexecutor.cpp | 2 +- lib/checkbufferoverrun.h | 4 ++-- lib/checkfunctions.h | 2 +- test/testsimplifytokens.cpp | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index facc7eb6e..f8c789972 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -52,7 +52,7 @@ using std::memset; ThreadExecutor::ThreadExecutor(const std::map &files, Settings &settings, ErrorLogger &errorLogger) : _files(files), _settings(settings), _errorLogger(errorLogger), _fileCount(0) - // Not initialized _fileSync, _errorSync, _reportSync + // Not initialized _fileSync, _errorSync, _reportSync { #if defined(THREADING_MODEL_FORK) _wpipe = 0; diff --git a/lib/checkbufferoverrun.h b/lib/checkbufferoverrun.h index 0dc5ff1fd..1cf6f1970 100644 --- a/lib/checkbufferoverrun.h +++ b/lib/checkbufferoverrun.h @@ -38,10 +38,10 @@ class Settings; class SymbolDatabase; class Token; namespace ValueFlow { -class Value; + class Value; } // namespace ValueFlow namespace tinyxml2 { -class XMLElement; + class XMLElement; } // namespace tinyxml2 // CWE ids used diff --git a/lib/checkfunctions.h b/lib/checkfunctions.h index b8c10230e..f7a2495e3 100644 --- a/lib/checkfunctions.h +++ b/lib/checkfunctions.h @@ -35,7 +35,7 @@ class Token; class Tokenizer; namespace ValueFlow { -class Value; + class Value; } // namespace ValueFlow diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index b9f39e9aa..5b54d6fb5 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -2628,12 +2628,12 @@ private: { // #7849 const char code[] = - "void f() {\n" - "if (-1e-2 == -0.01) \n" - " g();\n" - "else\n" - " h();\n" - "}"; + "void f() {\n" + "if (-1e-2 == -0.01) \n" + " g();\n" + "else\n" + " h();\n" + "}"; ASSERT_EQUALS("void f ( ) { if ( -1e-2 == -0.01 ) { g ( ) ; } else { h ( ) ; } }", tok(code)); }