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

Function tm_language_kind

src/mcp/test_impact.c:136–147  ·  view source on GitHub ↗

Config tokens plus the display names returned by cbm_language_name(). */

Source from the content-addressed store, hash-verified

134
135/* Config tokens plus the display names returned by cbm_language_name(). */
136static int tm_language_kind(const char *language) {
137 if (!language)
138 return 0;
139 if (strcmp(language, "c") == 0 || strcmp(language, "C") == 0)
140 return 1;
141 if (strcmp(language, "cpp") == 0 || strcmp(language, "c++") == 0 ||
142 strcmp(language, "C++") == 0)
143 return 2;
144 if (strcmp(language, "cuda") == 0 || strcmp(language, "CUDA") == 0)
145 return 3;
146 return 0;
147}
148
149static bool tm_mapping_report(cbm_test_model_t *m, cbm_test_model_mapping_status_t reason,
150 int declaration, const char *file, int line) {

Callers 4

tm_rule_matchesFunction · 0.85
tm_descriptor_preflightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected