[all-commits] [llvm/llvm-project] cf8943: [Support] Use llvm::to_underlying in ScopedPrinter...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sun Oct 12 20:49:56 PDT 2025


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

  Changed paths:
    M llvm/include/llvm/Support/ScopedPrinter.h

  Log Message:
  -----------
  [Support] Use llvm::to_underlying in ScopedPrinter.h (NFC) (#163088)

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