static void ide_clang_service_start (IdeService *service) { IdeClangService *self = (IdeClangService *)service; g_return_if_fail (IDE_IS_CLANG_SERVICE (self)); g_return_if_fail (!self->index); self->cancellable = g_cancellable_new (); self->units_cache = egg_task_cache_new ((GHashFunc)ide_file_hash, (GEqualFunc)ide_file_equal, g_object_ref, g_object_unref, g_object_ref, g_object_unref, DEFAULT_EVICTION_MSEC, ide_clang_service_get_translation_unit_worker, g_object_ref (self), g_object_unref); self->index = clang_createIndex (0, 0); clang_CXIndex_setGlobalOptions (self->index, CXGlobalOpt_ThreadBackgroundPriorityForAll); }
SEXP R_clang_CXIndex_setGlobalOptions(SEXP r_arg1, SEXP r_options) { SEXP r_ans = R_NilValue; CXIndex arg1 = GET_REF(r_arg1, CXIndex); unsigned int options = REAL(r_options)[0]; clang_CXIndex_setGlobalOptions(arg1, options); return(r_ans); }