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

Function signature_has_noexcept

ci/lint_cpp_rs/src/lib.rs:3446–3474  ·  view source on GitHub ↗
(lines: &[String], start: usize, open_paren: usize)

Source from the content-addressed store, hash-verified

3444}
3445
3446fn 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
3476fn platform_trampoline_suggestion(include_path: &str) -> &'static str {
3477 DEEP_PLATFORM_REPLACEMENTS

Callers 1

check_file_contentMethod · 0.70

Calls 5

trimMethod · 0.80
starts_withMethod · 0.45
ends_withMethod · 0.45

Tested by

no test coverage detected