[PATCH] D49647: [libcxx] Library support for contracts (C++2a)

Hamza Sood via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 22 05:35:19 PDT 2018


hamzasood created this revision.
hamzasood added reviewers: EricWF, mclow.lists, rsmith.
Herald added subscribers: cfe-commits, ldionne, christof.

This patch adds the library components needed for contracts in C++2a.

The wording says that a contract_violation object is populated in an implementation-defined manner. A private constructor that the compiler can call seems like the most sensible (and obvious) solution.


Repository:
  rCXX libc++

https://reviews.llvm.org/D49647

Files:
  include/contract
  include/module.modulemap
  test/libcxx/double_include.sh.cpp
  test/libcxx/language.support/support.contract/version.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49647.156704.patch
Type: text/x-patch
Size: 3761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180722/36e2354b/attachment-0001.bin>


More information about the cfe-commits mailing list