cppcheck: printing preprocessed file to 'temp.txt'

This commit is contained in:
Daniel Marjamäki 2009-01-24 13:53:53 +00:00
parent d89f804d91
commit fa070ac73c
1 changed files with 8 additions and 0 deletions

View File

@ -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