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

Function namespace_include_message

ci/lint_cpp_rs/src/lib.rs:2648–2657  ·  view source on GitHub ↗
(
    include_snippet: &str,
    namespace_info: Option<(usize, &str)>,
)

Source from the content-addressed store, hash-verified

2646}
2647
2648fn namespace_include_message(
2649 include_snippet: &str,
2650 namespace_info: Option<(usize, &str)>,
2651) -> String {
2652 if let Some((line, snippet)) = namespace_info {
2653 format!("{include_snippet} (namespace declared at line {line}: {snippet})")
2654 } else {
2655 include_snippet.to_string()
2656 }
2657}
2658
2659fn namespace_braces_are_balanced(lines: &[String]) -> bool {
2660 let stripped = strip_comments_preserving_lines(lines);

Callers 1

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected