pub fn classify_source(path: &Path) -> Option<SourceLanguage>Expand description
Classify a source file by its filename extension. Returns
None when the extension is missing or unrecognized — the
planner surfaces an explicit diagnostic in that case rather
than silently picking a default compiler.
Extension matching is case-sensitive on the lower-case forms
(.c, .cc, .cpp, .cxx, .c++) and accepts the
upper-case .C extension that traditionally indicates a C++
translation unit on POSIX systems.