From 04b0bfd33d3aefea31552e798ee0553369fa28da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 19:36:27 +0000 Subject: [PATCH] chore(cpp): align ADL boundary comments after main merge Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/ac900193-369d-473b-a5d6-56c78341cae0 Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com> --- gitnexus/src/core/ingestion/languages/cpp/captures.ts | 2 +- gitnexus/test/integration/resolvers/cpp.test.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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', () => {