cppcheck: printing preprocessed file to 'temp.txt'
This commit is contained in:
parent
d89f804d91
commit
fa070ac73c
|
@ -276,6 +276,14 @@ unsigned int CppCheck::check()
|
||||||
|
|
||||||
void CppCheck::checkFile(const std::string &code, const char FileName[])
|
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;
|
Tokenizer _tokenizer;
|
||||||
|
|
||||||
// Tokenize the file
|
// Tokenize the file
|
||||||
|
|
Loading…
Reference in New Issue