MCPcopy Index your code
hub / github.com/BCsabaEngine/svelteesp32 / postProcessCppCode

Function postProcessCppCode

src/cppCode.ts:200–207  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

198};
199
200const postProcessCppCode = (code: string): string =>
201 code
202 .split('\n')
203 .map((line) => line.trimEnd())
204 .filter(Boolean)
205 .map((line) => (line === '//' ? '' : line))
206 .join('\n')
207 .replaceAll(/\n{2,}/g, '\n');
208
209export const getCppCode = (
210 sources: CppCodeSources,

Callers 1

getCppCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected