Skip to content

Commit f172bc1

Browse files
committed
Report cached errors in headers multiple times when included in multiple source files.
This somewhat reduces unique repoting, but follows full-scan convention.
1 parent 93cf239 commit f172bc1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/cache.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,15 @@ bool Cache::ReportCachedResults(const char* filePath, const char* configuration,
173173
{
174174
ErrorLogger::ErrorMessage msg;
175175
string t = currChild->GetText();
176-
if (msg.deserialize(t))
176+
if (!msg.deserialize(t))
177177
{
178-
pLogger->reportErr(msg);
178+
return false;
179179
}
180+
if (msg._id.compare("syntaxError") != 0)
181+
{
182+
msg.file0 = filePath;
183+
}
184+
pLogger->reportErr(msg);
180185
}
181186

182187
return true;

0 commit comments

Comments
 (0)