From 211af1d4fe604189c16226fc7cd39ed6e929f1d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 5 Jan 2020 16:58:02 +0100 Subject: [PATCH] Clang import: debug output --- lib/cppcheck.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index f88bb44d4..4100fb7a6 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -253,9 +253,9 @@ unsigned int CppCheck::check(const std::string &path) std::istringstream ast(res.second); Tokenizer tokenizer(&mSettings, this); clangastdump::parseClangAstDump(&tokenizer, ast); - ValueFlow::setValues(&tokenizer->list, tokenizer.getSymbolDatabase(), this, &mSettings); - //tokenizer.tokens()->printOut(""); - //tokenizer.tokens()->printAst(true, false, std::cout); + //ValueFlow::setValues(&tokenizer.list, const_cast(tokenizer.getSymbolDatabase()), this, &mSettings); + if (mSettings.debugnormal) + tokenizer.printDebugOutput(1); ExprEngine::runChecks(this, &tokenizer, &mSettings); return 0; }