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:
Eberhard Graether
2015-12-12 15:14:44 +01:00
parent cd4c0e64b4
commit 26203c4ac8
5 changed files with 23 additions and 366 deletions
+1 -4
View File
@@ -195,9 +195,6 @@ Id SqliteStorage::addError(const std::string& message, const std::string& filePa
return q.getIntField(0, -1);
}
std::cout << ("INSERT INTO error(message, file_path, line_number, column_number) "
"VALUES ('" + sanitizedMessage + "', '" + filePath + "', " + std::to_string(lineNumber) + ", " + std::to_string(columnNumber) + ");") << std::endl;
m_database.execDML((
"INSERT INTO error(message, file_path, line_number, column_number) "
"VALUES ('" + sanitizedMessage + "', '" + filePath + "', " + std::to_string(lineNumber) + ", " + std::to_string(columnNumber) + ");"
@@ -764,7 +761,7 @@ std::string SqliteStorage::getSignatureByNodeId(Id nodeId) const
return q.getStringField(1, "");
}
return 0;
return "";
}
std::vector<StorageCommentLocation> SqliteStorage::getCommentLocationsInFile(const FilePath& filePath) const