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

Function fileName

src/resolution/cpp-includers.ts:57–57  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

55
56const isCFamily = (language: string): boolean => language === 'c' || language === 'cpp';
57const fileName = (filePath: string): string => filePath.slice(Math.max(filePath.lastIndexOf('/'), filePath.lastIndexOf('\\')) + 1);
58const stemOf = (name: string): string => {
59 const dot = name.lastIndexOf('.');
60 return dot > 0 ? name.slice(0, dot) : name;

Callers 3

includesByNameFunction · 0.85
cppIncludedHeadersBesideFunction · 0.85
cppIncludersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected