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,