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) ThreadExecutor::ThreadExecutor(const std::map<std::string, std::size_t> &files, Settings &settings, ErrorLogger &errorLogger)
: _files(files), _settings(settings), _errorLogger(errorLogger), _fileCount(0) : _files(files), _settings(settings), _errorLogger(errorLogger), _fileCount(0)
// Not initialized _fileSync, _errorSync, _reportSync // Not initialized _fileSync, _errorSync, _reportSync
{ {
#if defined(THREADING_MODEL_FORK) #if defined(THREADING_MODEL_FORK)
_wpipe = 0; _wpipe = 0;

View File

@ -38,10 +38,10 @@ class Settings;
class SymbolDatabase; class SymbolDatabase;
class Token; class Token;
namespace ValueFlow { namespace ValueFlow {
class Value; class Value;
} // namespace ValueFlow } // namespace ValueFlow
namespace tinyxml2 { namespace tinyxml2 {
class XMLElement; class XMLElement;
} // namespace tinyxml2 } // namespace tinyxml2
// CWE ids used // CWE ids used

View File

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

View File

@ -2628,12 +2628,12 @@ private:
{ {
// #7849 // #7849
const char code[] = const char code[] =
"void f() {\n" "void f() {\n"
"if (-1e-2 == -0.01) \n" "if (-1e-2 == -0.01) \n"
" g();\n" " g();\n"
"else\n" "else\n"
" h();\n" " h();\n"
"}"; "}";
ASSERT_EQUALS("void f ( ) { if ( -1e-2 == -0.01 ) { g ( ) ; } else { h ( ) ; } }", ASSERT_EQUALS("void f ( ) { if ( -1e-2 == -0.01 ) { g ( ) ; } else { h ( ) ; } }",
tok(code)); tok(code));
} }