parent
51858ecc96
commit
18adb97873
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
class Token;
|
||||
class Tokenizer;
|
||||
namespace ValueFlow {
|
||||
class Value;
|
||||
class Value;
|
||||
} // namespace ValueFlow
|
||||
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue