src: renamed recording methods
This commit is contained in:
@@ -38,7 +38,7 @@ bool CommentHandler::HandleComment(clang::Preprocessor& preprocessor, clang::Sou
|
||||
FilePath filePath = m_canonicalFilePathCache->getCanonicalFilePath(fileEntry);
|
||||
if (m_fileRegister->hasFilePath(filePath) && !m_fileRegister->fileIsIndexed(filePath))
|
||||
{
|
||||
m_client->onCommentParsed(ParseLocation(
|
||||
m_client->recordComment(ParseLocation(
|
||||
filePath,
|
||||
presumedBegin.getLine(),
|
||||
presumedBegin.getColumn(),
|
||||
|
||||
@@ -150,7 +150,7 @@ void CxxAstVisitorComponentIndexer::beginTraverseLambdaCapture(clang::LambdaExpr
|
||||
declLocation.filePath.fileName() + "<" +
|
||||
std::to_string(declLocation.startLineNumber) + ":" +
|
||||
std::to_string(declLocation.startColumnNumber) + ">";
|
||||
m_client->onLocalSymbolParsed(name, getParseLocation(capture->getLocation()));
|
||||
m_client->recordLocalSymbol(name, getParseLocation(capture->getLocation()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -238,7 +238,7 @@ void CxxAstVisitorComponentIndexer::visitVarDecl(clang::VarDecl* d)
|
||||
declLocation.filePath.fileName() + "<" +
|
||||
std::to_string(declLocation.startLineNumber) + ":" +
|
||||
std::to_string(declLocation.startColumnNumber) + ">";
|
||||
m_client->onLocalSymbolParsed(name, getParseLocation(d->getLocation()));
|
||||
m_client->recordLocalSymbol(name, getParseLocation(d->getLocation()));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -554,7 +554,7 @@ void CxxAstVisitorComponentIndexer::visitDeclRefExpr(clang::DeclRefExpr* s)
|
||||
std::to_string(declLocation.startLineNumber) + ":" +
|
||||
std::to_string(declLocation.startColumnNumber) + ">";
|
||||
|
||||
m_client->onLocalSymbolParsed(name, getParseLocation(s->getLocation()));
|
||||
m_client->recordLocalSymbol(name, getParseLocation(s->getLocation()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ void CxxDiagnosticConsumer::HandleDiagnostic(clang::DiagnosticsEngine::Level lev
|
||||
|
||||
ParseLocation location(filePath, line, column);
|
||||
|
||||
m_client->onErrorParsed(
|
||||
m_client->recordError(
|
||||
location,
|
||||
message,
|
||||
m_commandline,
|
||||
|
||||
@@ -40,7 +40,7 @@ void PreprocessorCallbacks::FileChanged(
|
||||
|
||||
if (!filePath.empty() && m_fileRegister->hasFilePath(filePath))
|
||||
{
|
||||
m_client->onFileParsed(FileSystem::getFileInfoForPath(filePath)); // todo: fix for tests
|
||||
m_client->recordFile(FileSystem::getFileInfoForPath(filePath)); // todo: fix for tests
|
||||
|
||||
if (!m_fileRegister->fileIsIndexed(filePath))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user