MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / withoutComments

Function withoutComments

src/extraction/languages/cpp-macro-methods.ts:436–438  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

434}
435
436function withoutComments(text: string): string {
437 return text.replace(/\/\*[\s\S]*?\*\//g, ' ').replace(/\/\/[^\n]*/g, ' ');
438}
439
440/** A spliced directive without the `//` comment that ends it, one in a string literal aside. */
441function withoutLineComment(text: string): string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected