[all-commits] [llvm/llvm-project] 1527a1: [ADT] Use `adl_begin`/`end` in `enumerate`

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Wed Mar 1 08:15:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1527a1bf7086a869f581a5c46cdde35d3eea8df8
      https://github.com/llvm/llvm-project/commit/1527a1bf7086a869f581a5c46cdde35d3eea8df8
  Author: Jakub Kuderski <kubak at google.com>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/unittests/ADT/STLExtrasTest.cpp

  Log Message:
  -----------
  [ADT] Use `adl_begin`/`end` in `enumerate`

This allows `enumerate` to work with range types that expose custom
`begin`/`end` functions.

This is a cleanup in preparation for future changes in
https://reviews.llvm.org/D144503.

Reviewed By: zero9178

Differential Revision: https://reviews.llvm.org/D145026




More information about the All-commits mailing list