(path: &Path, files: &mut BTreeSet<PathBuf>, allow_any_file: bool)
| 1708 | } |
| 1709 | |
| 1710 | fn collect_path(path: &Path, files: &mut BTreeSet<PathBuf>, allow_any_file: bool) { |
| 1711 | if path.is_dir() { |
| 1712 | collect_directory_files(path, files); |
| 1713 | } else if path.is_file() |
| 1714 | && (allow_any_file || is_cpp_like_path(&normalize_path(&path_to_string(path)))) |
| 1715 | { |
| 1716 | files.insert(path.to_path_buf()); |
| 1717 | } |
| 1718 | } |
| 1719 | |
| 1720 | fn collect_directory_files(root: &Path, files: &mut BTreeSet<PathBuf>) { |
| 1721 | for entry in WalkDir::new(root) |
no test coverage detected