Find current non-exempt missing-FL_NOEXCEPT signatures.
(scope: str = "all")
| 290 | |
| 291 | |
| 292 | def find_missing_noexcept(scope: str = "all") -> list[NoexceptHit]: |
| 293 | """Find current non-exempt missing-FL_NOEXCEPT signatures.""" |
| 294 | clang_query = _find_clang_query() |
| 295 | if not clang_query: |
| 296 | raise NoexceptCheckError( |
| 297 | "clang-query not found. Install LLVM or the clang-tool-chain package." |
| 298 | ) |
| 299 | |
| 300 | all_hits: list[NoexceptHit] = [] |
| 301 | for tu, file_regex in _SCOPES[scope]: |
| 302 | if not (PROJECT_ROOT / tu).exists(): |
| 303 | raise NoexceptCheckError(f"translation unit not found: {tu}") |
| 304 | all_hits.extend(_run_clang_query(clang_query, tu, file_regex)) |
| 305 | return all_hits |
| 306 | |
| 307 | |
| 308 | def _print_hits(hits: list[NoexceptHit]) -> None: |
no test coverage detected