[all-commits] [llvm/llvm-project] ac0f95: [ADT] Simplify addEnumValues with llvm::to_underly...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sun Oct 12 08:50:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac0f95aa88a07434856decdfd6649b8853b5cdbf
      https://github.com/llvm/llvm-project/commit/ac0f95aa88a07434856decdfd6649b8853b5cdbf
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-10-12 (Sun, 12 Oct 2025)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h

  Log Message:
  -----------
  [ADT] Simplify addEnumValues with llvm::to_underlying (NFC) (#163037)

llvm::to_underlying, forward ported from C++23, conveniently packages
static_cast and std::underlying_type_t like so:

  static_cast<std::underlying_type_t<EnumTy>>(E)



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