From fa070ac73c09d14a44312b6edd92e2dad77f3256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 24 Jan 2009 13:53:53 +0000 Subject: [PATCH] cppcheck: printing preprocessed file to 'temp.txt' --- src/cppcheck.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cppcheck.cpp b/src/cppcheck.cpp index fee4dfc6f..1239ca5f8 100644 --- a/src/cppcheck.cpp +++ b/src/cppcheck.cpp @@ -276,6 +276,14 @@ unsigned int CppCheck::check() void CppCheck::checkFile(const std::string &code, const char FileName[]) { + /* For debugging: Write the code into a file and exit + { + std::ofstream f("temp.txt"); + f << code; + exit(0); + } + */ + Tokenizer _tokenizer; // Tokenize the file