data: Fixed files within precompiled header have no syntax highlighting

- removed working_copy from project setup tests
This commit is contained in:
Eberhard Graether
2019-07-31 21:37:53 +02:00
parent c6adbab340
commit 4b58bb679c
8 changed files with 2 additions and 89 deletions
@@ -67,6 +67,7 @@ void CxxAstVisitor::indexDecl(clang::Decl* d)
{
LOG_INFO("starting AST traversal");
// record files not handled in preprocessor callbacks, e.g. files within precompiled header
clang::SourceManager& sourceManager = m_astContext->getSourceManager();
for (auto it = sourceManager.fileinfo_begin(); it != sourceManager.fileinfo_end(); it++)
{
@@ -79,6 +80,7 @@ void CxxAstVisitor::indexDecl(clang::Decl* d)
const FilePath filePath = m_canonicalFilePathCache->getCanonicalFilePath(fileEntry);
const bool pathIsProjectFile = m_canonicalFilePathCache->isProjectFile(fileId, sourceManager);
const Id symbolId = m_client->recordFile(filePath, pathIsProjectFile);
m_client->recordFileLanguage(symbolId, L"cpp");
m_canonicalFilePathCache->addFileSymbolId(fileId, filePath, symbolId);
}
}