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

Function parse_aggregator_includes

ci/lint_cpp_rs/src/lib.rs:2993–3004  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

2991}
2992
2993fn parse_aggregator_includes(path: &Path) -> BTreeSet<String> {
2994 let mut includes = BTreeSet::new();
2995 let Ok(content) = fs::read_to_string(path) else {
2996 return includes;
2997 };
2998 for line in content.lines() {
2999 if let Some(capture) = regex_quoted_include_line().captures(line) {
3000 includes.insert(capture[1].to_string());
3001 }
3002 }
3003 includes
3004}
3005
3006fn test_aggregator_rel_for_dir(excluded_dir_rel: &str) -> String {
3007 format!("{excluded_dir_rel}.cpp")

Calls 3

insertMethod · 0.45
to_stringMethod · 0.45

Tested by 1