astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2017-05-28 15:56:26 +02:00
parent 51858ecc96
commit 18adb97873
4 changed files with 10 additions and 10 deletions

View File

@ -52,7 +52,7 @@ using std::memset;
ThreadExecutor::ThreadExecutor(const std::map<std::string, std::size_t> &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;

View File

@ -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

View File

@ -35,7 +35,7 @@
class Token;
class Tokenizer;
namespace ValueFlow {
class Value;
class Value;
} // namespace ValueFlow

View File

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