[styleguide] Allow if consteval [chromium/src : main]

0 views
Skip to first unread message

Victor Vianna (Gerrit)

unread,
Jan 13, 2026, 1:30:54 PM (7 days ago) Jan 13
to Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org

Victor Vianna added 1 comment

File base/containers/enum_set_nocompile.nc
Line 26, Patchset 10 (Latest): // expected-error@base/containers/enum_set.h:198 {{shift count >= width of type}}
Victor Vianna . unresolved

todo: Figure out if this is okay

Open in Gerrit

Related details

Attention set is empty
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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
Gerrit-Change-Number: 7378823
Gerrit-PatchSet: 10
Gerrit-Owner: Victor Vianna <victor...@google.com>
Gerrit-Reviewer: Victor Vianna <victor...@google.com>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-Comment-Date: Tue, 13 Jan 2026 18:30:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Victor Vianna (Gerrit)

unread,
Jan 13, 2026, 1:51:19 PM (7 days ago) Jan 13
to Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org
Attention needed from Victor Vianna

Victor Vianna voted and added 1 comment

Votes added by Victor Vianna

Commit-Queue+1

1 comment

File base/containers/enum_set_nocompile.nc
Line 26, Patchset 10: // expected-error@base/containers/enum_set.h:198 {{shift count >= width of type}}
Victor Vianna . resolved

todo: Figure out if this is okay

Victor Vianna

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Victor Vianna
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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
    Gerrit-Change-Number: 7378823
    Gerrit-PatchSet: 10
    Gerrit-Owner: Victor Vianna <victor...@google.com>
    Gerrit-Reviewer: Victor Vianna <victor...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Attention: Victor Vianna <victor...@google.com>
    Gerrit-Comment-Date: Tue, 13 Jan 2026 18:51:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Victor Vianna <victor...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Victor Vianna (Gerrit)

    unread,
    Jan 13, 2026, 3:39:12 PM (7 days ago) Jan 13
    to Nico Weber, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org
    Attention needed from Nico Weber

    Victor Vianna voted Auto-Submit+1

    Auto-Submit+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nico Weber
    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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
    Gerrit-Change-Number: 7378823
    Gerrit-PatchSet: 11
    Gerrit-Owner: Victor Vianna <victor...@google.com>
    Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
    Gerrit-Reviewer: Victor Vianna <victor...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Attention: Nico Weber <tha...@chromium.org>
    Gerrit-Comment-Date: Tue, 13 Jan 2026 20:39:04 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nico Weber (Gerrit)

    unread,
    Jan 14, 2026, 1:36:02 PM (6 days ago) Jan 14
    to Victor Vianna, Nico Weber, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org
    Attention needed from Victor Vianna

    Nico Weber voted and added 4 comments

    Votes added by Nico Weber

    Code-Review+1

    4 comments

    Patchset-level comments
    File base/allocator/partition_allocator/src/partition_alloc/pointers/instance_tracer.h
    Line 55, Patchset 11 (Latest): if consteval {
    Nico Weber . unresolved

    same

    Line 46, Patchset 11 (Latest): if consteval {
    Nico Weber . unresolved

    This is shorter on the lhs, maybe keep this? Is there a benefit to changing this?

    File styleguide/c++/c++-features.md
    Line 1778, Patchset 11 (Latest):[Discussion thread](https://groups.google.com/a/chromium.org/g/cxx/c/1e90vNHYVFc)
    Nico Weber . resolved

    Do you think we should paste jdoerrie's reply verbatim here? I.e. insert

    ```
    This removes a bit gotcha with std::is_constant_evaluated(), which needs to be used with a runtime if (rather than constexpr if) to be meaningful: https://en.cppreference.com/w/cpp/types/is_constant_evaluated.html#Notes
    ```

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Victor Vianna
    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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
      Gerrit-Change-Number: 7378823
      Gerrit-PatchSet: 11
      Gerrit-Owner: Victor Vianna <victor...@google.com>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Victor Vianna <victor...@google.com>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-Attention: Victor Vianna <victor...@google.com>
      Gerrit-Comment-Date: Wed, 14 Jan 2026 18:35:53 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Victor Vianna (Gerrit)

      unread,
      Jan 14, 2026, 3:46:46 PM (6 days ago) Jan 14
      to Nico Weber, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org

      Victor Vianna voted and added 4 comments

      Votes added by Victor Vianna

      Auto-Submit+1

      4 comments

      Patchset-level comments
      File-level comment, Patchset 13 (Latest):
      Victor Vianna . resolved

      Thanks!

      File base/allocator/partition_allocator/src/partition_alloc/pointers/instance_tracer.h
      Line 55, Patchset 11: if consteval {
      Nico Weber . resolved

      same

      Victor Vianna

      Done

      Line 46, Patchset 11: if consteval {
      Nico Weber . resolved

      This is shorter on the lhs, maybe keep this? Is there a benefit to changing this?

      Victor Vianna

      Done

      File styleguide/c++/c++-features.md
      Nico Weber . resolved

      Do you think we should paste jdoerrie's reply verbatim here? I.e. insert

      ```
      This removes a bit gotcha with std::is_constant_evaluated(), which needs to be used with a runtime if (rather than constexpr if) to be meaningful: https://en.cppreference.com/w/cpp/types/is_constant_evaluated.html#Notes
      ```

      Victor Vianna

      Done, added this to Description above

      Open in Gerrit

      Related details

      Attention set is empty
      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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
        Gerrit-Change-Number: 7378823
        Gerrit-PatchSet: 13
        Gerrit-Owner: Victor Vianna <victor...@google.com>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Victor Vianna <victor...@google.com>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 20:46:33 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Nico Weber <tha...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Victor Vianna (Gerrit)

        unread,
        Jan 14, 2026, 3:46:49 PM (6 days ago) Jan 14
        to Nico Weber, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org

        Victor Vianna voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
        Gerrit-Change-Number: 7378823
        Gerrit-PatchSet: 13
        Gerrit-Owner: Victor Vianna <victor...@google.com>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Victor Vianna <victor...@google.com>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 20:46:39 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Victor Vianna (Gerrit)

        unread,
        Jan 14, 2026, 3:48:02 PM (6 days ago) Jan 14
        to Joe Downing, Nico Weber, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org
        Attention needed from Joe Downing

        Victor Vianna added 1 comment

        Patchset-level comments
        Victor Vianna . resolved

        +joedow@ for //remoting

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Joe Downing
        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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
        Gerrit-Change-Number: 7378823
        Gerrit-PatchSet: 13
        Gerrit-Owner: Victor Vianna <victor...@google.com>
        Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Victor Vianna <victor...@google.com>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Attention: Joe Downing <joe...@chromium.org>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 20:47:53 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Lambros Lambrou (Gerrit)

        unread,
        Jan 14, 2026, 5:15:52 PM (6 days ago) Jan 14
        to Victor Vianna, Joe Downing, Nico Weber, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org
        Attention needed from Joe Downing and Victor Vianna

        Lambros Lambrou voted and added 1 comment

        Votes added by Lambros Lambrou

        Code-Review+1
        Commit-Queue+2

        1 comment

        Patchset-level comments
        Lambros Lambrou . resolved

        lgtm for remoting

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Joe Downing
        • Victor Vianna
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement 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: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
        Gerrit-Change-Number: 7378823
        Gerrit-PatchSet: 13
        Gerrit-Owner: Victor Vianna <victor...@google.com>
        Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
        Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Victor Vianna <victor...@google.com>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Attention: Joe Downing <joe...@chromium.org>
        Gerrit-Attention: Victor Vianna <victor...@google.com>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 22:15:40 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Jan 14, 2026, 5:38:34 PM (6 days ago) Jan 14
        to Victor Vianna, Lambros Lambrou, Joe Downing, Nico Weber, Kentaro Hara, AyeAye, chromium...@chromium.org, bartek...@chromium.org, lizeb...@chromium.org, lize...@chromium.org, chromotin...@chromium.org, danakj...@chromium.org, jbrom...@chromium.org, wfh+...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        [styleguide] Allow if consteval

        https://groups.google.com/a/chromium.org/g/cxx/c/1e90vNHYVFc

        And migrate some usages of std::is_constant_evaluated.
        Change-Id: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
        Auto-Submit: Victor Vianna <victor...@google.com>
        Commit-Queue: Lambros Lambrou <lambros...@chromium.org>
        Reviewed-by: Lambros Lambrou <lambros...@chromium.org>
        Reviewed-by: Nico Weber <tha...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1569345}
        Files:
        • M PRESUBMIT.py
        • M base/allocator/partition_allocator/src/partition_alloc/pointers/instance_tracer.h
        • M base/allocator/partition_allocator/src/partition_alloc/pointers/raw_ptr_asan_unowned_impl.h
        • M base/allocator/partition_allocator/src/partition_alloc/pointers/raw_ptr_backup_ref_impl.h
        • M base/allocator/partition_allocator/src/partition_alloc/pointers/raw_ptr_hookable_impl.h
        • M base/containers/span.h
        • M base/numerics/basic_ops_impl.h
        • M remoting/host/linux/gvariant_ref.h
        • M styleguide/c++/c++-features.md
        Change size: M
        Delta: 9 files changed, 55 insertions(+), 60 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Lambros Lambrou, +1 by Nico Weber
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Idacb89ec5aca1e876b303676c0d4b4f502bc341b
        Gerrit-Change-Number: 7378823
        Gerrit-PatchSet: 14
        Gerrit-Owner: Victor Vianna <victor...@google.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
        Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Victor Vianna <victor...@google.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages