CheckHeaders: Limit the number of warnings about 'implementation in header'

This commit is contained in:
Daniel Marjamäki 2007-06-08 18:17:32 +00:00
parent bc70635e10
commit b3a3097b66
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ void WarningHeaderWithImplementation()
std::ostringstream ostr;
ostr << FileLine(tok) << ": Found implementation in header";
ReportErr(ostr.str());
// Goto next file..
unsigned int fileindex = tok->FileIndex;
while ( tok->next && tok->FileIndex == fileindex )
tok = tok->next;
}
}
}