Segments of a dotted name. */
| 2759 | |
| 2760 | /* Segments of a dotted name. */ |
| 2761 | static int cs_segments(const char *name) { |
| 2762 | int n = SKIP_ONE; |
| 2763 | for (const char *p = name; *p; p++) { |
| 2764 | n += *p == '.'; |
| 2765 | } |
| 2766 | return n; |
| 2767 | } |
| 2768 | |
| 2769 | /* What follows a namespace's name in a file with parse errors: the brace |
| 2770 | * that opens its block (returned), or the `;` of a file-scoped namespace |
no outgoing calls
no test coverage detected