[all-commits] [llvm/llvm-project] 3b631e: [libc] Trivial implementation of std::optional

Jeff Bailey via All-commits all-commits at lists.llvm.org
Thu Aug 4 19:51:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b631e47fe4cfc366fd107c748e6ac01b4f5974a
      https://github.com/llvm/llvm-project/commit/3b631e47fe4cfc366fd107c748e6ac01b4f5974a
  Author: Jeff Bailey <jeffbailey at google.com>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M libc/src/__support/CPP/CMakeLists.txt
    A libc/src/__support/CPP/optional.h
    M libc/test/src/__support/CPP/CMakeLists.txt
    A libc/test/src/__support/CPP/optional_test.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc] Trivial implementation of std::optional

This class has only the minimum functionality in it to provide what the
TZ variable parsing needs.  In particular, the standard makes guarantees
about how trivial the destructors are, throws an expception if it's used
incorrectly, etc.  There are also missing features.

Tested:
Trivial testsuite added, and use in development.

Reviewed By: gchatelet

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




More information about the All-commits mailing list