Skip to main content

parse_c_units

Function parse_c_units 

Source
pub fn parse_c_units(src: &str) -> Vec<CUnit>
Expand description

Split an emitted C translation unit into top-level CUnits. Leading comments/blank lines attach to the unit that follows. #… preprocessor directives, backslash-continued lines included, are their own UnitKind::Preproc units.