[all-commits] [llvm/llvm-project] 7087ee: [libc++][NFC] Improve test readability for std::fi...

Peng Liu via All-commits all-commits at lists.llvm.org
Tue May 6 13:17:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7087ee6bc79c95692c609cf174b3cb5e6e0c1820
      https://github.com/llvm/llvm-project/commit/7087ee6bc79c95692c609cf174b3cb5e6e0c1820
  Author: Peng Liu <winner245 at hotmail.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/fill_n.pass.cpp

  Log Message:
  -----------
  [libc++][NFC] Improve test readability for std::fill_n (#133771)

This patch enhances test readability by inlining standalone tests,
eliminating unnecessary navigation. Additionally, several classes with
ad-hoc names have been renamed for better clarity:
- `A` -> `CharWrapper` as it wraps a char
- `B -> CharTransformer` as it accepts a char `xc` but stores `xc + 1`
- `Storage -> CharUnionStorage` as it stores a union of 2 `char`s.  

This patch addresses a follow-up comment from #120909 to inline tests.



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