From a6cb98945e825480d1c170763df4b21a6e5f5859 Mon Sep 17 00:00:00 2001 From: Walter Erquinigo Date: Fri, 15 Dec 2017 12:14:57 -0800 Subject: [PATCH] Add obj-c support in the indexer --- src/indexer.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/indexer.cc b/src/indexer.cc index 4ced5a75..dccdd438 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -1078,6 +1078,8 @@ void OnIndexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) { break; } + case CXIdxEntity_ObjCInstanceMethod: + case CXIdxEntity_ObjCClassMethod: case CXIdxEntity_Function: case CXIdxEntity_CXXConstructor: case CXIdxEntity_CXXDestructor: @@ -1247,6 +1249,9 @@ void OnIndexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) { break; } + case CXIdxEntity_ObjCProtocol: + case CXIdxEntity_ObjCCategory: + case CXIdxEntity_ObjCClass: case CXIdxEntity_Enum: case CXIdxEntity_Union: case CXIdxEntity_Struct: @@ -1375,6 +1380,8 @@ void OnIndexReference(CXClientData client_data, const CXIdxEntityRefInfo* ref) { break; } + case CXIdxEntity_ObjCProperty: + case CXIdxEntity_ObjCIvar: case CXIdxEntity_EnumConstant: case CXIdxEntity_CXXStaticVariable: case CXIdxEntity_Variable: @@ -1420,6 +1427,8 @@ void OnIndexReference(CXClientData client_data, const CXIdxEntityRefInfo* ref) { case CXIdxEntity_CXXConversionFunction: case CXIdxEntity_CXXStaticMethod: case CXIdxEntity_CXXInstanceMethod: + case CXIdxEntity_ObjCInstanceMethod: + case CXIdxEntity_ObjCClassMethod: case CXIdxEntity_Function: case CXIdxEntity_CXXConstructor: case CXIdxEntity_CXXDestructor: { @@ -1511,6 +1520,9 @@ void OnIndexReference(CXClientData client_data, const CXIdxEntityRefInfo* ref) { break; } + case CXIdxEntity_ObjCCategory: + case CXIdxEntity_ObjCProtocol: + case CXIdxEntity_ObjCClass: case CXIdxEntity_Typedef: case CXIdxEntity_CXXTypeAlias: case CXIdxEntity_Enum: