From b3a3097b66c975eed8797d27282a5c9dd9b033e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 8 Jun 2007 18:17:32 +0000 Subject: [PATCH] CheckHeaders: Limit the number of warnings about 'implementation in header' --- CheckHeaders.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CheckHeaders.cpp b/CheckHeaders.cpp index ee3148dae..26b2d29fb 100644 --- a/CheckHeaders.cpp +++ b/CheckHeaders.cpp @@ -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; } } }