forked from qt-creator/qt-creator
ClangRefactoring: Improve indexing
Fix some bugs in the indexing and use the new macro indexer from clang. Change-Id: I2ba1b28097a8751aea942071851a60d164c6f371 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -33,8 +33,7 @@ std::unique_ptr<clang::ASTConsumer> CollectSymbolsAction::newASTConsumer(
|
||||
clang::CompilerInstance &compilerInstance,
|
||||
llvm::StringRef inFile)
|
||||
{
|
||||
m_indexDataConsumer->setSourceManager(&compilerInstance.getSourceManager());
|
||||
return m_action.CreateASTConsumer(compilerInstance, inFile);
|
||||
return clang::WrapperFrontendAction::CreateASTConsumer(compilerInstance, inFile);
|
||||
}
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user