MCPcopy Create free account
hub / github.com/FastLED/FastLED / _is_compilation_error

Function _is_compilation_error

ci/meson/compile.py:77–96  ·  view source on GitHub ↗

Detect if a line contains a compilation error pattern. Returns: True if the line contains an error indicator

(line: str)

Source from the content-addressed store, hash-verified

75
76
77def _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
99def _invalidate_stale_pchs(build_dir: Path) -> None:

Callers 3

producer_threadFunction · 0.90
_print_compile_failureFunction · 0.90
compile_mesonFunction · 0.85

Calls 1

anyFunction · 0.85

Tested by

no test coverage detected