| 201 | } |
| 202 | |
| 203 | static cbm_gbuf_t *run_sequential(const char *project, const char *repo_path, |
| 204 | cbm_file_info_t *files, int file_count) { |
| 205 | cbm_gbuf_t *gbuf = cbm_gbuf_new(project, repo_path); |
| 206 | cbm_registry_t *reg = cbm_registry_new(); |
| 207 | atomic_int cancelled; |
| 208 | atomic_init(&cancelled, 0); |
| 209 | |
| 210 | cbm_pipeline_ctx_t ctx = { |
| 211 | .project_name = project, |
| 212 | .repo_path = repo_path, |
| 213 | .gbuf = gbuf, |
| 214 | .registry = reg, |
| 215 | .cancelled = &cancelled, |
| 216 | }; |
| 217 | |
| 218 | cbm_init(); |
| 219 | cbm_pipeline_pass_definitions(&ctx, files, file_count); |
| 220 | cbm_pipeline_pass_calls(&ctx, files, file_count); |
| 221 | cbm_pipeline_pass_usages(&ctx, files, file_count); |
| 222 | cbm_pipeline_pass_semantic(&ctx, files, file_count); |
| 223 | |
| 224 | harness_ctx_free_tables(&ctx); |
| 225 | cbm_registry_free(reg); |
| 226 | return gbuf; |
| 227 | } |
| 228 | |
| 229 | typedef void (*parallel_result_mutator_fn)(CBMFileResult **result_cache, int file_count, void *ud); |
| 230 |
no test coverage detected