From 0ec848b1fa4374119a451f270518e71fc1059755 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Wed, 2 Sep 2009 00:24:39 +0700 Subject: [PATCH] test/testmemleak.cpp(dofindleak): provide settings object with debug enabled. This allows to print tokens when syntax error found in one of tests. --- test/testmemleak.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 390229922..f7e400b24 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -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");