[all-commits] [llvm/llvm-project] 95c0f2: [libc++] Remove workarounds for re-defining _LIBCP...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Mar 8 07:42:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95c0f2d115e29e3429226cccc1209f5640dd1b6a
      https://github.com/llvm/llvm-project/commit/95c0f2d115e29e3429226cccc1209f5640dd1b6a
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M libcxx/docs/DesignDocs/DebugMode.rst
    M libcxx/include/__algorithm/comp_ref_type.h
    M libcxx/include/__assert
    M libcxx/test/libcxx/algorithms/debug_less.pass.cpp
    R libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/db_deallocate.pass.cpp
    A libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/deallocate.assert.pass.cpp
    R libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp
    A libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/deallocate.assert.pass.cpp
    M libcxx/utils/libcxx/test/format.py

  Log Message:
  -----------
  [libc++] Remove workarounds for re-defining _LIBCPP_ASSERT in the test suite

As a fly-by fix, enable the complexity-changing assertions in __debug_less
only when the full debug mode is enabled, since debugging level 0 is usually
understood to only contain basic assertions that do not change the complexity
of algorithms.

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




More information about the All-commits mailing list