[all-commits] [llvm/llvm-project] 980316: [YAML] Recommit "Make `std::array` available (#116...

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Thu Nov 14 03:16:24 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 980316ec85381f65c369cb650f25881e470857b7
      https://github.com/llvm/llvm-project/commit/980316ec85381f65c369cb650f25881e470857b7
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2024-11-14 (Thu, 14 Nov 2024)

  Changed paths:
    M llvm/include/llvm/Support/YAMLTraits.h
    M llvm/unittests/Support/YAMLIOTest.cpp

  Log Message:
  -----------
  [YAML] Recommit "Make `std::array` available (#116059)" with a fix.

`std::array` will be handled like `MutableArrayRef`;

- Extending elements is not acceptable.
- For applying fewer sequence, trailing elements will be initialized by
default.

Not like;

- `std::array` is not the reference but holds values. Supposing to hold
small count of elements.

Changes since llvmorg-20-init-12117-g941f704f0892:
- Use `size_t` for `N`, instead of `unsigned`.
- include <array>



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