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

Function is_string_macro

internal/cbm/lsp/rust_lsp.c:183–190  ·  view source on GitHub ↗

Names of macros that produce a `String` value. */

Source from the content-addressed store, hash-verified

181
182/* Names of macros that produce a `String` value. */
183static bool is_string_macro(const char *name) {
184 if (!name) {
185 return false;
186 }
187 return strcmp(name, "format") == 0 || strcmp(name, "concat") == 0 ||
188 strcmp(name, "stringify") == 0 || strcmp(name, "env") == 0 ||
189 strcmp(name, "include_str") == 0;
190}
191
192/* Prelude trait names whose method short-names we treat as universally
193 * available (for emit-on-best-effort when we cannot pin down the trait

Callers 1

rust_eval_expr_typeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected