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

Function include_path_looks_like_fastled_code

ci/lint_cpp_rs/src/lib.rs:2381–2399  ·  view source on GitHub ↗
(include_path: &str)

Source from the content-addressed store, hash-verified

2379}
2380
2381fn include_path_looks_like_fastled_code(include_path: &str) -> bool {
2382 if include_path.ends_with(".hpp") || include_path.ends_with(".cpp") {
2383 return true;
2384 }
2385
2386 let filename = include_path.rsplit('/').next().unwrap_or(include_path);
2387 let filename = filename.to_ascii_lowercase();
2388 [
2389 "clockless",
2390 "fastpin",
2391 "fastspi",
2392 "led_sysdefs",
2393 "compile_test",
2394 "spi_output",
2395 "is_",
2396 ]
2397 .iter()
2398 .any(|pattern| filename.contains(pattern))
2399}
2400
2401fn is_external_sdk_header(include_path: &str) -> bool {
2402 if EXTERNAL_SDK_PREFIXES

Callers 2

is_external_sdk_headerFunction · 0.85

Calls 4

anyMethod · 0.65
ends_withMethod · 0.45
nextMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected