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:
Slava Semushin 2009-09-02 00:24:39 +07:00
parent 7ba244cf45
commit 0ec848b1fa
1 changed files with 3 additions and 1 deletions

View File

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