From 2db753ff92279f7e5a1901e9e5bc27a8d6d5eb29 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Sun, 5 Mar 2017 23:20:48 -0800 Subject: [PATCH] todo --- indexer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indexer.cpp b/indexer.cpp index 845436fb..7d316d80 100644 --- a/indexer.cpp +++ b/indexer.cpp @@ -558,6 +558,8 @@ optional AddDeclUsages(IndexedFile* db, clang::Cursor decl_cursor, } void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) { + // TODO: we can minimize processing for cursors which return false for clang_Location_isFromMainFile (ie, only add usages) + bool is_system_def = clang_Location_isInSystemHeader(clang_getCursorLocation(decl->cursor)); if (is_system_def) return;