MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / computeObjectPath

Function computeObjectPath

Tests/SCBuildTest/SCBuildFixtureTest.cpp:1320–1332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318 String source = StringEncoding::Utf8;
1319 auto builder = StringBuilder::create(source);
1320 SC_TRY(builder.append("// Copyright (c) Stefano Cristiano\n"
1321 "// SPDX-License-Identifier: MIT\n"
1322 "#include <stdio.h>\n"
1323 "#if defined(_WIN32)\n"
1324 "using NativeChar = wchar_t;\n"
1325 "#else\n"
1326 "using NativeChar = char;\n"
1327 "#endif\n"));
1328 if (not dependencyHeader.isEmpty())
1329 {
1330 SC_TRY(builder.append("#include \"{}\"\n", dependencyHeader));
1331 }
1332 SC_TRY(builder.append(
1333 "\n"
1334 "static bool printNative(const NativeChar* value)\n"
1335 "{\n"

Callers 1

SCBuildFixtureTestMethod · 0.85

Calls 5

formatFunction · 0.50
joinFunction · 0.50
ResultClass · 0.50
viewMethod · 0.45

Tested by

no test coverage detected