logic: C/C++ errors without location are now recorded for current main file

* such an error occurrs if a "-include" flag is provided with a non-existing file"
This commit is contained in:
mlangkabel
2018-05-11 11:22:39 +02:00
parent e47bd10096
commit ea7f900e81
3 changed files with 21 additions and 2 deletions
+4 -1
View File
@@ -168,7 +168,10 @@ private:
bool fatal,
bool indexed) override
{
errors.push_back(addLocationSuffix(message, location));
if (location.isValid())
{
errors.push_back(addLocationSuffix(message, location));
}
}
std::vector<std::wstring>* getBinForSymbolKind(SymbolKind symbolType)