From 8a6bb469589cb87293621363ef35f790d3e78795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 7 Jan 2015 06:46:04 +0100 Subject: [PATCH] Tokenizer: only print AST in debug output if --verbose is used --- lib/tokenize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 00cc9d788..f7b418bab 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -3877,7 +3877,8 @@ void Tokenizer::printDebugOutput() const _symbolDatabase->printOut("Symbol database"); } - list.front()->printAst(_settings->_verbose, _settings->_xml, std::cout); + if (_settings->_verbose) + list.front()->printAst(_settings->_verbose, _settings->_xml, std::cout); list.front()->printValueFlow(_settings->_xml, std::cout);