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

Function is_cpp_primitive_name

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

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

(name: &str)

Source from the content-addressed store, hash-verified

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

Callers 1

recover_mangled_cpp_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected