Detect if a line contains a compilation error pattern. Returns: True if the line contains an error indicator
(line: str)
| 75 | |
| 76 | |
| 77 | def _is_compilation_error(line: str) -> bool: |
| 78 | """Detect if a line contains a compilation error pattern. |
| 79 | |
| 80 | Returns: |
| 81 | True if the line contains an error indicator |
| 82 | """ |
| 83 | line_lower = line.lower() |
| 84 | return any( |
| 85 | pattern in line_lower |
| 86 | for pattern in [ |
| 87 | "error:", # Compiler errors |
| 88 | "note:", # Compiler diagnostic notes (CRITICAL for context!) |
| 89 | "warning:", # Compiler warnings |
| 90 | "failed:", # Build system failures |
| 91 | "fatal error:", # Catastrophic failures |
| 92 | "undefined reference", # Linker errors |
| 93 | "no such file", # Missing headers |
| 94 | "ld returned 1 exit status", # Linker failure |
| 95 | ] |
| 96 | ) |
| 97 | |
| 98 | |
| 99 | def _invalidate_stale_pchs(build_dir: Path) -> None: |
no test coverage detected