Code like this:
//******** comments....
Causes the program to see the embedded /* and ignore the rest of the file.
Add to SourceFile::SourceFile
if(line[j] == \'/\' && line[MIN(lineSize-1, j+1)] == \'/\'){ break; }
The suggested fix, despite being correct in itself, will lead to big portions of source files being ingored sometimes, as the comment block end ("*/") detection in the surrounding code is buggy.
Attached a corrected version (file "SourceFile.cpp").
Log in to post a comment.
The suggested fix, despite being correct in itself, will lead to big portions of source files being ingored sometimes, as the comment block end ("*/") detection in the surrounding code is buggy.
Attached a corrected version (file "SourceFile.cpp").
Last edit: Roman Benesch 2014-02-19