[all-commits] [llvm/llvm-project] 37e6bd: [libc++] Add a helper class to write code with the...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Dec 20 08:17:50 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37e6bd8bc8da29ad485547a683c6685254d4011d
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-12-20 (Mon, 20 Dec 2021)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__utility/transaction.h
    M libcxx/include/module.modulemap
    M libcxx/include/utility
    A libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp
    A libcxx/test/libcxx/utilities/transaction.pass.cpp

  Log Message:
  [libc++] Add a helper class to write code with the strong exception guarantee

__transaction is a helper class that allows rolling back code in case an
exception is thrown. The main goal is to reduce the clutter when code
needs to be guarded with `#if _LIBCPP_NO_EXCEPTIONS`.

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

More information about the All-commits mailing list