Fix printing source for missing pragma.

This commit is contained in:
a3d4
2020-02-09 02:28:47 +01:00
parent e8eb1f2d14
commit b3b8441aa4
4 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -68,7 +68,8 @@ void SyntaxChecker::endVisit(SourceUnit const& _sourceUnit)
to_string(recommendedVersion.patch()) +
string(";\"");
m_errorReporter.warning(_sourceUnit.location(), errorString);
// when reporting the warning, print the source name only
m_errorReporter.warning({-1, -1, _sourceUnit.location().source}, errorString);
}
m_sourceUnit = nullptr;
}