CheckHeaders: Limit the number of warnings about 'implementation in header'
This commit is contained in:
parent
bc70635e10
commit
b3a3097b66
|
@ -25,6 +25,11 @@ void WarningHeaderWithImplementation()
|
||||||
std::ostringstream ostr;
|
std::ostringstream ostr;
|
||||||
ostr << FileLine(tok) << ": Found implementation in header";
|
ostr << FileLine(tok) << ": Found implementation in header";
|
||||||
ReportErr(ostr.str());
|
ReportErr(ostr.str());
|
||||||
|
|
||||||
|
// Goto next file..
|
||||||
|
unsigned int fileindex = tok->FileIndex;
|
||||||
|
while ( tok->next && tok->FileIndex == fileindex )
|
||||||
|
tok = tok->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue