diff --git a/gitnexus/src/core/ingestion/languages/cpp/captures.ts b/gitnexus/src/core/ingestion/languages/cpp/captures.ts index 7c055feec..3c9a76bd1 100644 --- a/gitnexus/src/core/ingestion/languages/cpp/captures.ts +++ b/gitnexus/src/core/ingestion/languages/cpp/captures.ts @@ -808,9 +808,9 @@ function lookupAdlIdentifierType(identNode: SyntaxNode): CppAdlArgInfo { // `init_declarator > identifier` is value. // Function-pointer wrappers (`pointer_declarator > function_declarator`) // must not contribute ADL associated namespaces. - let isFunctionPointer = false; let isPointer = false; let isReference = false; + let isFunctionPointer = false; let inner: SyntaxNode = declarator; let nameText: string | null = null; let safety = 16; // bound walk depth defensively diff --git a/gitnexus/test/integration/resolvers/cpp.test.ts b/gitnexus/test/integration/resolvers/cpp.test.ts index 7b9c2be9c..e6c63f2fb 100644 --- a/gitnexus/test/integration/resolvers/cpp.test.ts +++ b/gitnexus/test/integration/resolvers/cpp.test.ts @@ -2103,7 +2103,9 @@ describe('C++ two-phase template lookup — cross-file namespace variant', () => // Free-function calls with class-typed arguments must consider candidates // declared in the argument's enclosing namespace (associated namespace). // V1 boundary: only direct enclosing-namespace closure for value class- -// typed args; pointer and reference args included, template-spec args excluded. +// typed args; pointer/reference args and template specializations with +// explicit type arguments included. Function pointers and base-class +// associated namespaces remain excluded. // --------------------------------------------------------------------------- describe('C++ ADL — basic associated-namespace closure', () => {