(lines: &[String], start: usize, open_paren: usize)
| 3444 | } |
| 3445 | |
| 3446 | fn signature_has_noexcept(lines: &[String], start: usize, open_paren: usize) -> bool { |
| 3447 | let Some((close_line, close_col)) = find_close_paren_multiline(lines, start, open_paren) else { |
| 3448 | return false; |
| 3449 | }; |
| 3450 | let tail = &lines[close_line][close_col + 1..]; |
| 3451 | if regex_has_noexcept_special().is_match(tail) { |
| 3452 | return true; |
| 3453 | } |
| 3454 | for offset in 1..6 { |
| 3455 | let idx = close_line + offset; |
| 3456 | if idx >= lines.len() { |
| 3457 | break; |
| 3458 | } |
| 3459 | let next = lines[idx].trim(); |
| 3460 | if regex_has_noexcept_special().is_match(next) { |
| 3461 | return true; |
| 3462 | } |
| 3463 | if next.starts_with('{') || next.ends_with('{') || next == "};" { |
| 3464 | break; |
| 3465 | } |
| 3466 | if next.starts_with(':') && !next.starts_with("::") { |
| 3467 | break; |
| 3468 | } |
| 3469 | if next.ends_with(';') { |
| 3470 | break; |
| 3471 | } |
| 3472 | } |
| 3473 | false |
| 3474 | } |
| 3475 | |
| 3476 | fn platform_trampoline_suggestion(include_path: &str) -> &'static str { |
| 3477 | DEEP_PLATFORM_REPLACEMENTS |
no test coverage detected