True when `line` is a `//` comment line (ignoring leading whitespace). Doxygen `///` and `//!` lines count — they are still single-line `//` style. Block comments (`/* */`, `/** */`) are not flagged here.
(line: str)
| 900 | |
| 901 | |
| 902 | def _is_line_comment(line: str) -> bool: |
| 903 | """True when `line` is a `//` comment line (ignoring leading whitespace). |
| 904 | Doxygen `///` and `//!` lines count — they are still single-line `//` |
| 905 | style. Block comments (`/* */`, `/** */`) are not flagged here.""" |
| 906 | stripped = line.lstrip() |
| 907 | return stripped.startswith("//") |
| 908 | |
| 909 | |
| 910 | _TOOLING_PRAGMA_RE = re.compile( |
no outgoing calls
no test coverage detected