MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / patchOutputFilename

Method patchOutputFilename

lib/compilers/v.ts:154–164  ·  view source on GitHub ↗
(outputFilename: string)

Source from the content-addressed store, hash-verified

152 }
153
154 patchOutputFilename(outputFilename: string): string {
155 const parts = outputFilename.split('.');
156
157 if (this.outputFileExt === '') {
158 parts.pop();
159 return parts.join('.');
160 }
161
162 parts[parts.length - 1] = this.outputFileExt.split('.')[1];
163 return parts.join('.');
164 }
165
166 removeUnusedLabels(input: string[]): string[] {
167 const output: string[] = [];

Callers 1

optionsForFilterMethod · 0.95

Calls 1

popMethod · 0.45

Tested by

no test coverage detected