Skip to main content

is_c_source_file

Function is_c_source_file 

Source
pub fn is_c_source_file(file: &ProjectFile) -> bool
Expand description

Whether file is proven to use plain-C source semantics.

Language::Cpp intentionally serves both C and C++. Headers do not carry a compilation dialect on their own, so only an exact .c source extension is sufficient to reinterpret C++-grammar keyword nodes such as this as C identifiers.