diff --git a/src/indexer.cc b/src/indexer.cc index 5be4391e..02df4eb4 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -995,9 +995,8 @@ void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) { if (!db) return; - // The language of this declaration - LanguageId declLang = [decl] () { + LanguageId decl_lang = [decl] () { switch (clang_getCursorLanguage(decl->cursor)) { case CXLanguage_C: return LanguageId::C; @@ -1011,8 +1010,8 @@ void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) { } (); // Only update the file language if the new language is "greater" than the old - if (declLang > db->language) { - db->language = declLang; + if (decl_lang > db->language) { + db->language = decl_lang; } NamespaceHelper* ns = ¶m->ns; diff --git a/src/indexer.h b/src/indexer.h index 1f960ec2..3d880493 100644 --- a/src/indexer.h +++ b/src/indexer.h @@ -473,7 +473,6 @@ enum class LanguageId { Cpp = 2, ObjC = 3 }; - MAKE_REFLECT_TYPE_PROXY(LanguageId, std::underlying_type::type); struct IndexFile {