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

Function dm_cond_using

tests/test_doc_mentions.c:3292–3307  ·  view source on GitHub ↗

One condition over fixed properties: the usings it lets through. */

Source from the content-addressed store, hash-verified

3290
3291/* One condition over fixed properties: the usings it lets through. */
3292static bool dm_cond_using(const char *cond, cbm_msb_result_t *out) {
3293 char xml[1024];
3294 snprintf(xml, sizeof(xml),
3295 "<Project Sdk=\"Microsoft.NET.Sdk\">\n"
3296 " <PropertyGroup>\n"
3297 " <A>x</A><B>x</B><C>y</C><Yes>true</Yes><Empty></Empty>\n"
3298 " <Spaced> x </Spaced><One>1</One>\n"
3299 " </PropertyGroup>\n"
3300 " <ItemGroup Condition=\"%s\">\n"
3301 " <Using Include=\"Under.Condition\" />\n"
3302 " </ItemGroup>\n"
3303 "</Project>\n",
3304 cond);
3305 const dm_project_file_t files[] = {{"P.csproj", xml}};
3306 return dm_msb_eval(files, 1, "P.csproj", out);
3307}
3308
3309/* A condition is true, false, or not known. What is not known is never
3310 * taken for one of the two: the item is not applied, the project's usings

Callers 1

Calls 1

dm_msb_evalFunction · 0.85

Tested by

no test coverage detected