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

Function cppMacroNamespaceHeads

src/resolution/cpp-namespaces.ts:112–114  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

110
111/** The outermost namespaces the project's namespace-opening macros open: `fmt` for `FMT_BEGIN_NAMESPACE`. */
112export function cppMacroNamespaceHeads(context: ResolutionContext): string[] {
113 return [...cppNamespaceMacros(context).openers.values()].map((path) => path[0]!);
114}
115
116/**
117 * The project's macros that stand for a single name, by the macro's name:

Callers

nothing calls this directly

Calls 2

cppNamespaceMacrosFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected