[all-commits] [llvm/llvm-project] b877cf: [ADT] Remove `is_scoped_enum_v` (#138134)

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Thu May 1 07:37:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b877cfa8f25412a3946d1cde63a1dad95fd95c90
      https://github.com/llvm/llvm-project/commit/b877cfa8f25412a3946d1cde63a1dad95fd95c90
  Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
  Date:   2025-05-01 (Thu, 01 May 2025)

  Changed paths:
    M clang/include/clang/Basic/Diagnostic.h
    M llvm/include/llvm/ADT/STLForwardCompat.h

  Log Message:
  -----------
  [ADT] Remove `is_scoped_enum_v` (#138134)

`std::underlying_type` is not SFINAE-friendly in Clang and GCC before 9,
and it's too much of a hassle to make it work. Instead, I'm inlining the
implementation in the only place it's needed. Fixes buildbot failure
https://lab.llvm.org/buildbot/#/builders/134/builds/17904 caused by
#138089. Demo: https://godbolt.org/z/9qo3csP98



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