[all-commits] [llvm/llvm-project] 2cb4a9: [libc++] NFCI: Refactor allocator_traits

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Jan 18 14:37:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cb4a96a99e8acbf57a31d4d06ed5e21799d878e
      https://github.com/llvm/llvm-project/commit/2cb4a96a99e8acbf57a31d4d06ed5e21799d878e
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M libcxx/include/__memory/allocator_traits.h
    M libcxx/include/memory

  Log Message:
  -----------
  [libc++] NFCI: Refactor allocator_traits

The implementation had a lot of boilerplate and was more complicated than
necessary. This NFC refactoring introduces a few macros to reduce code
duplication, and uses a consistent style and formatting for the whole file.

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




More information about the All-commits mailing list