[all-commits] [llvm/llvm-project] 3c0300: [libc++][ranges] Adjust inheritance detection for ...

A. Jiang via All-commits all-commits at lists.llvm.org
Wed Mar 26 17:57:13 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c0300d1fecea583c9b3d7689213676db18485aa
      https://github.com/llvm/llvm-project/commit/3c0300d1fecea583c9b3d7689213676db18485aa
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-03-26 (Wed, 26 Mar 2025)

  Changed paths:
    M libcxx/include/__ranges/enable_view.h
    M libcxx/test/std/ranges/range.req/range.view/enable_view.compile.pass.cpp
    M libcxx/test/std/ranges/range.req/range.view/view.compile.pass.cpp

  Log Message:
  -----------
  [libc++][ranges] Adjust inheritance detection for `enable_view` (#132582)

Per [range.view]/6, a `view_interface` isn't a base class of itself, so
`enable_view` should report `false`. Also, current implementation
strategy handles `const` but not `volatile`, IIUC cv-qualifiers should
be consistent handled.

In `enable_view.compile.pass.cpp`, coverage for (`const`) `volatile`
types are added.

Drive-by: Remove one unnessary `test_macro.h` inclusion in a test.

Fixes #132577.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list