From 9fd35db034d321a7381e4c87a1f04d2fb880c0f6 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 17 Dec 2017 19:47:14 -0800 Subject: [PATCH] [indexer] Index references to system headers --- src/indexer.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/indexer.cc b/src/indexer.cc index 54c5a2f3..575613e3 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -1357,13 +1357,6 @@ bool IsFunctionCallContext(CXCursorKind kind) { } void OnIndexReference(CXClientData client_data, const CXIdxEntityRefInfo* ref) { - // Don't index references from or to system headers. - if (clang_Location_isInSystemHeader( - clang_indexLoc_getCXSourceLocation(ref->loc)) || - clang_Location_isInSystemHeader( - clang_getCursorLocation(ref->referencedEntity->cursor))) - return; - // TODO: Use clang_getFileUniqueID CXFile file; clang_getSpellingLocation(clang_indexLoc_getCXSourceLocation(ref->loc), &file,