There was an error while loading. Please reload this page.
1 parent 8883ced commit aee668eCopy full SHA for aee668e
1 file changed
lib/errorlogger.cpp
@@ -327,7 +327,10 @@ void ErrorMessage::calculateWarningHashFromLocations()
327
// used. Instead hash the id, message and all filenames/notes in the callstack.
328
std::string hashString = id + '\n' + mShortMessage;
329
for (const FileLocation &loc : callStack) {
330
- hashString += '\n' + loc.getfile(false) + '\n' + loc.getinfo();
+ std::string fileName = loc.getfile(false);
331
+ if (Path::isAbsolute(fileName))
332
+ fileName = fileName.substr(fileName.rfind('/') + 1);
333
+ hashString += '\n' + fileName + '\n' + loc.getinfo();
334
}
335
336
// hash algorithm: sdbm
0 commit comments