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

Function is_cpp_primitive_name

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

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

(name: &str)

Source from the content-addressed store, hash-verified

156
157/// CPP_PRIMITIVE_NAMES (languages/c-cpp.ts) — recoverMangledCppName's guard.
158fn is_cpp_primitive_name(name: &str) -> bool {
159 matches!(
160 name,
161 "bool" | "void" | "int" | "char" | "short" | "long" | "float" | "double" | "unsigned"
162 | "signed" | "wchar_t" | "char8_t" | "char16_t" | "char32_t" | "char_t" | "size_t"
163 | "auto" | "const" | "struct" | "class" | "enum" | "union" | "typename"
164 )
165}
166
167/// NAME_STOPLIST (function-ref.ts).
168fn is_stoplisted(name: &str) -> bool {

Callers 1

recover_mangled_cpp_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected