Extract line number from IWYU removal like '#include "foo.h" // lines 3-3'.
(removal_text: str)
| 45 | |
| 46 | |
| 47 | def _extract_line_number(removal_text: str) -> int | None: |
| 48 | """Extract line number from IWYU removal like '#include "foo.h" // lines 3-3'.""" |
| 49 | m = re.search(r"// lines (\d+)", removal_text) |
| 50 | return int(m.group(1)) if m else None |
| 51 | |
| 52 | |
| 53 | def _line_has_real_violation(file_path: Path, line_num: int) -> bool: |
no outgoing calls
no test coverage detected