Directory depth of a repo-relative path: how many directories sit above it. */
| 1866 | |
| 1867 | /* Directory depth of a repo-relative path: how many directories sit above it. */ |
| 1868 | static int include_path_depth(const char *path) { |
| 1869 | int depth = 0; |
| 1870 | for (const char *p = path; *p; p++) { |
| 1871 | if (*p == '/' || *p == '\\') { |
| 1872 | depth++; |
| 1873 | } |
| 1874 | } |
| 1875 | return depth; |
| 1876 | } |
| 1877 | |
| 1878 | /* Total order among nodes whose file path ends with the include path. The |
| 1879 | * by-name hits arrive in node-registration order, which under parallel |
no outgoing calls
no test coverage detected