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)); }