MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / c_enum_lang

Function c_enum_lang

internal/cbm/extract_defs.c:5286–5289  ·  view source on GitHub ↗

Languages whose plain `enum` is UNSCOPED: its enumerators are names of the * scope that holds the enum, not of the enum (C, C++ and its CUDA dialect, * Objective-C). `XXH_OK` of `typedef enum { XXH_OK, XXH_ERROR } XXH_errorcode;` * is written and looked up as plain XXH_OK, so its QN is ` .XXH_OK`. */

Source from the content-addressed store, hash-verified

5284 * Objective-C). `XXH_OK` of `typedef enum { XXH_OK, XXH_ERROR } XXH_errorcode;`
5285 * is written and looked up as plain XXH_OK, so its QN is `<scope>.XXH_OK`. */
5286static bool c_enum_lang(CBMLanguage lang) {
5287 return lang == CBM_LANG_C || lang == CBM_LANG_CPP || lang == CBM_LANG_CUDA ||
5288 lang == CBM_LANG_OBJC;
5289}
5290
5291/* Is a struct, union or class around an unscoped enum the scope of its
5292 * enumerators? In C++ (and CUDA; every .h is parsed as C++) it is: the

Callers 3

extract_class_defFunction · 0.85
extract_c_typedefFunction · 0.85
extract_enum_membersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected