(path: &Path)
| 2991 | } |
| 2992 | |
| 2993 | fn 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 | |
| 3006 | fn test_aggregator_rel_for_dir(excluded_dir_rel: &str) -> String { |
| 3007 | format!("{excluded_dir_rel}.cpp") |