test/testmemleak.cpp(dofindleak): provide settings object with debug enabled.
This allows to print tokens when syntax error found in one of tests.
This commit is contained in:
parent
7ba244cf45
commit
0ec848b1fa
|
@ -504,7 +504,9 @@ private:
|
|||
int dofindleak(const char code[], bool all = false) const
|
||||
{
|
||||
// Tokenize..
|
||||
Tokenizer tokenizer;
|
||||
Settings settings;
|
||||
settings._debug = true;
|
||||
Tokenizer tokenizer(&settings, NULL);
|
||||
std::istringstream istr(code);
|
||||
tokenizer.tokenize(istr, "test.cpp");
|
||||
|
||||
|
|
Loading…
Reference in New Issue