Node kinds that only group file-level items: the branches of `#if` / * `#ifdef` (an include guard is one) and the body of `extern "C" { ... }`. */
| 1162 | /* Node kinds that only group file-level items: the branches of `#if` / |
| 1163 | * `#ifdef` (an include guard is one) and the body of `extern "C" { ... }`. */ |
| 1164 | static bool is_c_include_container(const char *kind) { |
| 1165 | return strcmp(kind, "preproc_if") == 0 || strcmp(kind, "preproc_ifdef") == 0 || |
| 1166 | strcmp(kind, "preproc_else") == 0 || strcmp(kind, "preproc_elif") == 0 || |
| 1167 | strcmp(kind, "preproc_elifdef") == 0 || strcmp(kind, "linkage_specification") == 0 || |
| 1168 | strcmp(kind, "declaration_list") == 0; |
| 1169 | } |
| 1170 | |
| 1171 | /* Collect the includes among `parent`'s children, descending into |
| 1172 | * preprocessor branches: every header keeps its includes inside its include |
no outgoing calls
no test coverage detected