-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incremental parsing issue fixes #736
Conversation
…isSingletonResult instead to dbutil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case this size() == 1
is the only conflicting code part with SQLite, then we can keep its support with your proposed solution. However, the C++ LSP service plugin also contains usages of the size()
method in ODB query results. Probably those should be fixed, too.
It should be documented in the code why not to use the size()
method in these cases.
Looks good to me! I had to resolve a merge conflict, so now my approval is not enough as the last commiter. @intjftw Please approve it as well (review it too of course, if you would like 😄 )! |
de77e87
to
429490e
Compare
Fixes #735
In accordance with the diagnosis outlined in #735 (comment) , the following fixes have been made:
CppAstNodeMetricsFileView
db view has been added to manage the AST node ID <-> File ID association (_astNodeIdCache
) inCppMetricsParser::CppMetricsParser
..size()
call inSourceManager::removeFile
has been replaced by a newisSingletonResult
helper function in dbutil.