Count nodes carrying `label`. Returns -1 on query error. */
| 193 | |
| 194 | /* Count nodes carrying `label`. Returns -1 on query error. */ |
| 195 | static int count_label(cbm_store_t *store, const char *project, const char *label) { |
| 196 | cbm_node_t *nodes = NULL; |
| 197 | int count = 0; |
| 198 | if (cbm_store_find_nodes_by_label(store, project, label, &nodes, &count) != CBM_STORE_OK) { |
| 199 | return -1; |
| 200 | } |
| 201 | cbm_store_free_nodes(nodes, count); |
| 202 | return count; |
| 203 | } |
| 204 | |
| 205 | /* Count "type-like" nodes across the labels different languages use for a |
| 206 | * user-defined type (class/struct/interface/enum/trait/type alias). Lets a |
no test coverage detected