Skip to main content

resolve_cpp_include_to_path

Function resolve_cpp_include_to_path 

Source
pub fn resolve_cpp_include_to_path(
    include_path: &str,
    current_file_path: Option<&str>,
) -> Option<String>
Expand description

Resolve a C++ #include directive to a file path

§Arguments

  • include_path - The path from the #include directive (e.g., “utils/helper.hpp”)
  • current_file_path - Path to the file containing the #include directive

§Returns

  • Some(path) if the include can be resolved (quoted includes only)
  • None for angle bracket includes (system/library headers)