| 1834 | } |
| 1835 | |
| 1836 | static bool is_header_include(const char *path) { |
| 1837 | if (!path || !path[0]) { |
| 1838 | return false; |
| 1839 | } |
| 1840 | static const char *header_exts[] = {".h", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".ipp", NULL}; |
| 1841 | for (const char **ext = header_exts; *ext; ext++) { |
| 1842 | size_t path_len = strlen(path); |
| 1843 | size_t ext_len = strlen(*ext); |
| 1844 | if (path_len > ext_len && strcmp(path + path_len - ext_len, *ext) == 0) { |
| 1845 | return true; |
| 1846 | } |
| 1847 | } |
| 1848 | return false; |
| 1849 | } |
| 1850 | |
| 1851 | static bool is_c_family_source(const char *source_rel) { |
| 1852 | if (!source_rel || !source_rel[0]) { |
no outgoing calls
no test coverage detected