Skip to main content

collect_cpp_files

Function collect_cpp_files 

Source
fn collect_cpp_files(
    dir: &Path,
    files: &mut Vec<PathBuf>,
    max_depth: Option<usize>,
) -> Result<(), IcbError>
Expand description

Walk the directory tree and collect C/C++ source files.

Symlinks are not followed, and the optional max_depth limits recursion. Walk the directory tree and collect C/C++ source files.

Symlinks are not followed, and the optional max_depth limits recursion. File extensions are matched case‑insensitively.