MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / extractCompilerCall

Function extractCompilerCall

src/cppProperties.ts:169–178  ·  view source on GitHub ↗
(compileOutput: string)

Source from the content-addressed store, hash-verified

167}
168
169function extractCompilerCall(compileOutput: string): string | undefined {
170 const rxComp = /("[^"]+"|[\S]+)/;
171 const ccalls = compileOutput.split('\n');
172 if (ccalls.length < 2) {
173 return undefined;
174 }
175
176 const m = ccalls[1].match(rxComp);
177 return m?.[1];
178}
179
180function collectCompilerOutput(rPath: string, workspaceFolder: string, testExtension: 'cpp' | 'c') {
181

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected