forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user