[all-commits] [llvm/llvm-project] 991158: ADT: Make StringRef::size() and StringRef::empty()...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Wed Dec 8 16:15:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9911589f5d4abd9994f294816eb5aa522f4d0458
      https://github.com/llvm/llvm-project/commit/9911589f5d4abd9994f294816eb5aa522f4d0458
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-12-08 (Wed, 08 Dec 2021)

  Changed paths:
    M llvm/include/llvm/ADT/StringRef.h
    M llvm/unittests/ADT/StringRefTest.cpp

  Log Message:
  -----------
  ADT: Make StringRef::size() and StringRef::empty() constexpr

This unblocks using `StringLiteral::size()` for a SmallVector size in
another patch.

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




More information about the All-commits mailing list