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

Function addSaneCppDebugVisualizers

Tools/SC-build.cpp:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66SC_COMPILER_WARNING_PUSH_UNUSED_RESULT; // Doing some optimistic coding here, ignoring all failures
67
68void addSaneCppDebugVisualizers(Project& project, const Parameters& parameters)
69{
70 if (parameters.generator == Generator::VisualStudio2022)
71 {
72 String debugVisualizersRoot = StringEncoding::Utf8;
73 (void)Path::join(debugVisualizersRoot,
74 {parameters.directories.libraryDirectory.view(), "Support/DebugVisualizers/MSVC"});
75 project.addFiles(debugVisualizersRoot.view(), "*.natvis");
76 }
77 else
78 {
79 String debugVisualizersRoot = StringEncoding::Utf8;
80 (void)Path::join(debugVisualizersRoot,
81 {parameters.directories.libraryDirectory.view(), "Support/DebugVisualizers/LLDB"});
82 project.addFiles(debugVisualizersRoot.view(), "*");
83 }
84}
85
86static constexpr StringView buildPlatformName(Platform::Type platform)
87{

Callers 6

configureTestsFunction · 0.85
configureSCBuildTestFunction · 0.85
configureSCAwaitTestFunction · 0.85
configureSCSharedLibraryFunction · 0.85
configureTestSTLInteropFunction · 0.85
configureExamplesGUIFunction · 0.85

Calls 2

joinFunction · 0.50
viewMethod · 0.45

Tested by

no test coverage detected