[all-commits] [llvm/llvm-project] bfb0b6: [ADT] Simplify getAsInteger and consumeInteger (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sat Oct 15 14:08:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfb0b6f48db15e2e6d7c40edae7c8b4bc95c07fb
      https://github.com/llvm/llvm-project/commit/bfb0b6f48db15e2e6d7c40edae7c8b4bc95c07fb
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-10-15 (Sat, 15 Oct 2022)

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

  Log Message:
  -----------
  [ADT] Simplify getAsInteger and consumeInteger (NFC)

This patch replaces the std::enable_if_t trick with a "constexpr if"
so that the resulting code looks more like "normal" C++ code.

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




More information about the All-commits mailing list