data: Fixes for parsing Coati
* reverted to old source location retrieval for CxxConstructExpr, because source locations were outside file * removed exisiting source location check for better performance * fixed CXXParserTestSuite to use c++11 standard * fixed crash on missing signature retrieval
This commit is contained in:
@@ -1400,18 +1400,10 @@ Id Storage::addSourceLocation(Id elementNodeId, const ParseLocation &location, b
|
||||
return 0;
|
||||
}
|
||||
|
||||
Id locationId = m_sqliteStorage.getSourceLocationByData(
|
||||
Id locationId = m_sqliteStorage.addSourceLocation(
|
||||
elementNodeId, fileNodeId, location.startLineNumber, location.startColumnNumber,
|
||||
location.endLineNumber, location.endColumnNumber, isScope
|
||||
).id;
|
||||
|
||||
if (locationId == 0)
|
||||
{
|
||||
locationId = m_sqliteStorage.addSourceLocation(
|
||||
elementNodeId, fileNodeId, location.startLineNumber, location.startColumnNumber,
|
||||
location.endLineNumber, location.endColumnNumber, isScope
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
return locationId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user