Skip to main content

is_cpp_language

Function is_cpp_language 

Source
pub fn is_cpp_language(lang: &Language) -> bool
Expand description

Check whether a tree_sitter::Language is the C++ grammar.

Used by crate::repo_map to gate C++-specific call-edge extraction — the same struct-literal initializer fnptr post-pass as C (I#55, 4.1.5), because C++ inherits C’s initializer-list syntax and the same dispatch pattern is common (e.g. POSIX-style driver tables in C++ kernels, embedded firmware). Same node-kind-count proxy as is_rust_language.