A new CppAstNodeMetricsFileView db view has been added to manage the AST node ID <-> File ID association (_astNodeIdCache) in CppMetricsParser::CppMetricsParser.
The .size() call in SourceManager::removeFile has been replaced by a new isSingletonResult helper function in dbutil.
Fixes #735
In accordance with the diagnosis outlined in https://github.com/Ericsson/CodeCompass/issues/735#issuecomment-2078918431 , 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.