MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_cpp_primitive_name

Function is_cpp_primitive_name

codegraph-kernel/src/ccpp/mod.rs:189–196  ·  view source on GitHub ↗

CPP_PRIMITIVE_NAMES (languages/c-cpp.ts) — recoverMangledCppName's guard.

(name: &str)

Source from the content-addressed store, hash-verified

187
188/// CPP_PRIMITIVE_NAMES (languages/c-cpp.ts) — recoverMangledCppName's guard.
189fn is_cpp_primitive_name(name: &str) -> bool {
190 matches!(
191 name,
192 "bool" | "void" | "int" | "char" | "short" | "long" | "float" | "double" | "unsigned"
193 | "signed" | "wchar_t" | "char8_t" | "char16_t" | "char32_t" | "char_t" | "size_t"
194 | "auto" | "const" | "struct" | "class" | "enum" | "union" | "typename"
195 )
196}
197
198/// NAME_STOPLIST (function-ref.ts).
199fn is_stoplisted(name: &str) -> bool {

Callers 1

recover_mangled_cpp_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected