data: Removed separate comment_location table

* added LocationType LOCATION_COMMENT
* store comment locations within source_locations
This commit is contained in:
Eberhard Graether
2018-10-04 21:21:31 +02:00
parent f060b6042d
commit 9edfdacd72
24 changed files with 80 additions and 408 deletions
+8 -2
View File
@@ -89,12 +89,18 @@ void ParserClientImpl::recordFile(const FilePath& filePath, bool indexed)
void ParserClientImpl::recordComment(const ParseLocation& location)
{
m_storage->addCommentLocation(StorageCommentLocationData(
if (!location.isValid())
{
return;
}
m_storage->addSourceLocation(StorageSourceLocationData(
addFileName(location.filePath),
location.startLineNumber,
location.startColumnNumber,
location.endLineNumber,
location.endColumnNumber
location.endColumnNumber,
locationTypeToInt(LOCATION_COMMENT)
));
}