[spanify] Fix graph fragmentation across function redeclarations [chromium/src : main]

0 views
Skip to first unread message

Sergio Solano (Gerrit)

unread,
Jul 7, 2026, 6:46:14 PM (2 days ago) Jul 7
to Arthur Sonzogni, chromium...@chromium.org, Hans Wennborg
Attention needed from Arthur Sonzogni

Sergio Solano added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Sergio Solano . resolved

Hi, Arthur. Could you help me with a code review?

Open in Gerrit

Related details

Attention is currently required from:
  • Arthur Sonzogni
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
Gerrit-Change-Number: 8061584
Gerrit-PatchSet: 1
Gerrit-Owner: Sergio Solano <sergio...@google.com>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-CC: Hans Wennborg <ha...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Comment-Date: Tue, 07 Jul 2026 22:46:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Arthur Sonzogni (Gerrit)

unread,
Jul 8, 2026, 7:58:20 AM (yesterday) Jul 8
to Sergio Solano, chromium...@chromium.org, Hans Wennborg
Attention needed from Sergio Solano

Arthur Sonzogni voted and added 1 comment

Votes added by Arthur Sonzogni

Code-Review+1

1 comment

Patchset-level comments
Arthur Sonzogni . resolved

Great! Thanks Sergio!

Open in Gerrit

Related details

Attention is currently required from:
  • Sergio Solano
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
    Gerrit-Change-Number: 8061584
    Gerrit-PatchSet: 1
    Gerrit-Owner: Sergio Solano <sergio...@google.com>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-CC: Hans Wennborg <ha...@chromium.org>
    Gerrit-Attention: Sergio Solano <sergio...@google.com>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 11:58:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Arthur Sonzogni (Gerrit)

    unread,
    Jul 8, 2026, 7:59:25 AM (yesterday) Jul 8
    to Sergio Solano, Bryan Enrique Gonzalez, Stephen Nusko, chromium...@chromium.org, Hans Wennborg
    Attention needed from Bryan Enrique Gonzalez and Sergio Solano

    Arthur Sonzogni added 1 comment

    Patchset-level comments
    Arthur Sonzogni . resolved

    + bryanenriquegv, could you please take a look?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Bryan Enrique Gonzalez
    • Sergio Solano
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
    Gerrit-Change-Number: 8061584
    Gerrit-PatchSet: 1
    Gerrit-Owner: Sergio Solano <sergio...@google.com>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-CC: Hans Wennborg <ha...@chromium.org>
    Gerrit-CC: Stephen Nusko <nus...@chromium.org>
    Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-Attention: Sergio Solano <sergio...@google.com>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 11:59:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Arthur Sonzogni (Gerrit)

    unread,
    Jul 8, 2026, 8:00:16 AM (yesterday) Jul 8
    to Sergio Solano, Bryan Enrique Gonzalez, Stephen Nusko, chromium...@chromium.org, Hans Wennborg
    Attention needed from Bryan Enrique Gonzalez and Sergio Solano

    Arthur Sonzogni added 1 comment

    Commit Message
    Line 9, Patchset 1 (Latest):RewriteFunctionParamAndReturnType previously relied on getPreviousDecl(),
    this assumes a linear single-linked chain across function redeclarations.

    When intermediate declarations are skipped by AST matchers (e.g. macro
    expansions or excluded headers), the graph produces disconnected components,
    leading to mismatched function signatures across files.

    This CL switches to fct_decl->redecls() to emit direct edges to all
    visible redeclarations, maintaining graph connectivity.
    Arthur Sonzogni . unresolved

    Edit > [format] to fit 72 columns.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Bryan Enrique Gonzalez
    • Sergio Solano
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
      Gerrit-Change-Number: 8061584
      Gerrit-PatchSet: 1
      Gerrit-Owner: Sergio Solano <sergio...@google.com>
      Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
      Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
      Gerrit-CC: Hans Wennborg <ha...@chromium.org>
      Gerrit-CC: Stephen Nusko <nus...@chromium.org>
      Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
      Gerrit-Attention: Sergio Solano <sergio...@google.com>
      Gerrit-Comment-Date: Wed, 08 Jul 2026 11:59:58 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Sergio Solano (Gerrit)

      unread,
      Jul 8, 2026, 1:26:05 PM (yesterday) Jul 8
      to Rick Byers, Bryan Enrique Gonzalez, Stephen Nusko, Arthur Sonzogni, chromium...@chromium.org, Hans Wennborg
      Attention needed from Bryan Enrique Gonzalez and Rick Byers

      Sergio Solano voted and added 2 comments

      Votes added by Sergio Solano

      Auto-Submit+1
      Commit-Queue+1

      2 comments

      Patchset-level comments
      File-level comment, Patchset 2 (Latest):
      Sergio Solano . resolved

      Hi, Rick. Could you help me with a code review?

      Commit Message
      Line 9, Patchset 1:RewriteFunctionParamAndReturnType previously relied on getPreviousDecl(),

      this assumes a linear single-linked chain across function redeclarations.

      When intermediate declarations are skipped by AST matchers (e.g. macro
      expansions or excluded headers), the graph produces disconnected components,
      leading to mismatched function signatures across files.

      This CL switches to fct_decl->redecls() to emit direct edges to all
      visible redeclarations, maintaining graph connectivity.
      Arthur Sonzogni . resolved

      Edit > [format] to fit 72 columns.

      Sergio Solano

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Bryan Enrique Gonzalez
      • Rick Byers
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
        Gerrit-Change-Number: 8061584
        Gerrit-PatchSet: 2
        Gerrit-Owner: Sergio Solano <sergio...@google.com>
        Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
        Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
        Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
        Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
        Gerrit-CC: Hans Wennborg <ha...@chromium.org>
        Gerrit-CC: Stephen Nusko <nus...@chromium.org>
        Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
        Gerrit-Attention: Rick Byers <rby...@chromium.org>
        Gerrit-Comment-Date: Wed, 08 Jul 2026 17:25:51 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Arthur Sonzogni <arthurs...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Bryan Enrique Gonzalez (Gerrit)

        unread,
        Jul 8, 2026, 4:48:16 PM (yesterday) Jul 8
        to Sergio Solano, Chromium LUCI CQ, Rick Byers, Stephen Nusko, Arthur Sonzogni, chromium...@chromium.org, Hans Wennborg
        Attention needed from Rick Byers and Sergio Solano

        Bryan Enrique Gonzalez voted and added 1 comment

        Votes added by Bryan Enrique Gonzalez

        Code-Review+1

        1 comment

        Patchset-level comments
        Bryan Enrique Gonzalez . resolved

        LGTM :D

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Rick Byers
        • Sergio Solano
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
          Gerrit-Change-Number: 8061584
          Gerrit-PatchSet: 2
          Gerrit-Owner: Sergio Solano <sergio...@google.com>
          Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
          Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
          Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
          Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
          Gerrit-CC: Hans Wennborg <ha...@chromium.org>
          Gerrit-CC: Stephen Nusko <nus...@chromium.org>
          Gerrit-Attention: Sergio Solano <sergio...@google.com>
          Gerrit-Attention: Rick Byers <rby...@chromium.org>
          Gerrit-Comment-Date: Wed, 08 Jul 2026 20:48:02 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Rick Byers (Gerrit)

          unread,
          Jul 8, 2026, 10:02:16 PM (yesterday) Jul 8
          to Sergio Solano, Bryan Enrique Gonzalez, Chromium LUCI CQ, Stephen Nusko, Arthur Sonzogni, chromium...@chromium.org, Hans Wennborg
          Attention needed from Sergio Solano

          Rick Byers added 1 comment

          File third_party/spanify_tests/ignored.h
          Line 1, Patchset 2 (Latest):// Copyright 2026 The Chromium Authors
          Rick Byers . unresolved

          It's IMHO a bit confusing to put a test file directly into the third_party tree. We're doing a bunch of things to try to better manage and track all the variety of projects we have under third_party (eg. insisting on OWNERS, autoroll, etc.).

          Is there perhaps an easy way to get the same test coverage without adding files under //third_party/? If this is the most pragmatic way to get important test coverage then I'm OK with it but you need to add a README.md file which explains why this is here and not really a new third-party dependency, and an OWNERS file - presumably just pointing at the tools/spanify OWNERS.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Sergio Solano
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
            Gerrit-Change-Number: 8061584
            Gerrit-PatchSet: 2
            Gerrit-Owner: Sergio Solano <sergio...@google.com>
            Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
            Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
            Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
            Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
            Gerrit-CC: Hans Wennborg <ha...@chromium.org>
            Gerrit-CC: Stephen Nusko <nus...@chromium.org>
            Gerrit-Attention: Sergio Solano <sergio...@google.com>
            Gerrit-Comment-Date: Thu, 09 Jul 2026 02:02:07 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Arthur Sonzogni (Gerrit)

            unread,
            8:08 AM (16 hours ago) 8:08 AM
            to Sergio Solano, Bryan Enrique Gonzalez, Chromium LUCI CQ, Rick Byers, Stephen Nusko, chromium...@chromium.org, Hans Wennborg
            Attention needed from Sergio Solano

            Arthur Sonzogni voted and added 1 comment

            Votes added by Arthur Sonzogni

            Code-Review+0

            1 comment

            File third_party/spanify_tests/ignored.h
            Line 1, Patchset 2 (Latest):// Copyright 2026 The Chromium Authors
            Rick Byers . unresolved

            It's IMHO a bit confusing to put a test file directly into the third_party tree. We're doing a bunch of things to try to better manage and track all the variety of projects we have under third_party (eg. insisting on OWNERS, autoroll, etc.).

            Is there perhaps an easy way to get the same test coverage without adding files under //third_party/? If this is the most pragmatic way to get important test coverage then I'm OK with it but you need to add a README.md file which explains why this is here and not really a new third-party dependency, and an OWNERS file - presumably just pointing at the tools/spanify OWNERS.

            Arthur Sonzogni

            I missed the file location during code review.

            @sergio...@google.com => Can you please move it to: `tools/clang/spanify/tests/chrome/third_party/` instead?

            Gerrit-Comment-Date: Thu, 09 Jul 2026 12:07:58 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Rick Byers <rby...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Sergio Solano (Gerrit)

            unread,
            2:40 PM (9 hours ago) 2:40 PM
            to Bryan Enrique Gonzalez, Chromium LUCI CQ, Stephen Nusko, Arthur Sonzogni, chromium...@chromium.org, Hans Wennborg
            Attention needed from Bryan Enrique Gonzalez

            Sergio Solano voted and added 1 comment

            Votes added by Sergio Solano

            Auto-Submit+1

            1 comment

            Patchset-level comments
            File-level comment, Patchset 3 (Latest):
            Sergio Solano . resolved

            Done, I've moved test file third_party/spanify_tests/ignored.h to tools/clang/spanify/tests/chrome/third_party/ignored.h and updated the includes. Could you help me with another review?

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Bryan Enrique Gonzalez
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement is not satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
              Gerrit-Change-Number: 8061584
              Gerrit-PatchSet: 3
              Gerrit-Owner: Sergio Solano <sergio...@google.com>
              Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
              Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
              Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
              Gerrit-CC: Hans Wennborg <ha...@chromium.org>
              Gerrit-CC: Stephen Nusko <nus...@chromium.org>
              Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
              Gerrit-Comment-Date: Thu, 09 Jul 2026 18:40:18 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Sergio Solano (Gerrit)

              unread,
              2:41 PM (9 hours ago) 2:41 PM
              to Bryan Enrique Gonzalez, Chromium LUCI CQ, Stephen Nusko, Arthur Sonzogni, chromium...@chromium.org, Hans Wennborg
              Attention needed from Arthur Sonzogni and Bryan Enrique Gonzalez

              Sergio Solano added 2 comments

              Patchset-level comments
              Sergio Solano . resolved

              Forgot to addressed the comment. Test file is now in tools/clang/spanify/tests/chrome/third_party/ignored.h

              File third_party/spanify_tests/ignored.h
              Line 1, Patchset 2:// Copyright 2026 The Chromium Authors
              Rick Byers . resolved

              It's IMHO a bit confusing to put a test file directly into the third_party tree. We're doing a bunch of things to try to better manage and track all the variety of projects we have under third_party (eg. insisting on OWNERS, autoroll, etc.).

              Is there perhaps an easy way to get the same test coverage without adding files under //third_party/? If this is the most pragmatic way to get important test coverage then I'm OK with it but you need to add a README.md file which explains why this is here and not really a new third-party dependency, and an OWNERS file - presumably just pointing at the tools/spanify OWNERS.

              Arthur Sonzogni

              I missed the file location during code review.

              @sergio...@google.com => Can you please move it to: `tools/clang/spanify/tests/chrome/third_party/` instead?

              Sergio Solano

              Thanks. I've now moved the file to tools/clang/spanify/tests/chrome/third_party/ignored.h/

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Arthur Sonzogni
              • Bryan Enrique Gonzalez
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement is not satisfiedCode-Review
                • requirement is not satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: I2d974c3a22899b2f6142275c6975711310857fc9
                Gerrit-Change-Number: 8061584
                Gerrit-PatchSet: 3
                Gerrit-Owner: Sergio Solano <sergio...@google.com>
                Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
                Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
                Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
                Gerrit-CC: Hans Wennborg <ha...@chromium.org>
                Gerrit-CC: Stephen Nusko <nus...@chromium.org>
                Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
                Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
                Gerrit-Comment-Date: Thu, 09 Jul 2026 18:41:14 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Arthur Sonzogni <arthurs...@chromium.org>
                Comment-In-Reply-To: Rick Byers <rby...@chromium.org>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy
                Reply all
                Reply to author
                Forward
                0 new messages