Clang: Improve updating

If project parts are up to date we send them directly to the indexer, so
the indexer can decide we something needs an update.

Change-Id: I7d4f32794c6b3a861cdefb3653a6dfd4e711f619
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-05-22 12:26:58 +02:00
parent 912cb9278f
commit b213dee013
27 changed files with 154 additions and 283 deletions

View File

@@ -32,6 +32,8 @@
#include <llvm/ADT/ArrayRef.h>
#include <iostream>
namespace ClangBackEnd {
namespace {
@@ -136,9 +138,10 @@ bool IndexDataConsumer::handleDeclOccurence(
if (!namedDeclaration->getIdentifier())
return true;
if (skipSymbol(m_sourceManager->getFileID(sourceLocation), symbolRoles))
if (skipSymbol(m_sourceManager->getFileID(sourceLocation), symbolRoles)) {
namedDeclaration->getDeclName().dump();
return true;
}
SymbolIndex globalId = toSymbolIndex(declaration->getCanonicalDecl());