[all-commits] [llvm/llvm-project] a8d118: [libc++] Remove some _LIBCPP_CXX03_LANG from iostr...

Quuxplusone via All-commits all-commits at lists.llvm.org
Mon Jun 28 09:55:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8d1182f661ccecd99efd4e543fddf3172c67a95
      https://github.com/llvm/llvm-project/commit/a8d1182f661ccecd99efd4e543fddf3172c67a95
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2021-06-28 (Mon, 28 Jun 2021)

  Changed paths:
    M libcxx/include/fstream
    M libcxx/include/ios
    M libcxx/include/istream
    M libcxx/include/ostream
    M libcxx/include/sstream
    M libcxx/include/string
    M libcxx/test/std/input.output/file.streams/fstreams/filebuf.assign/move_assign.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/filebuf.cons/move.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/fstream.assign/move_assign.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/ifstream.assign/move_assign.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/ofstream.assign/move_assign.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/move.pass.cpp
    M libcxx/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.assign/move_assign.pass.cpp
    M libcxx/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.cons/move.pass.cpp
    M libcxx/test/std/input.output/iostream.format/input.streams/istream/istream.assign/move_assign.pass.cpp
    M libcxx/test/std/input.output/iostream.format/input.streams/istream/istream.cons/copy.fail.cpp
    M libcxx/test/std/input.output/iostream.format/input.streams/istream/istream.cons/move.pass.cpp
    M libcxx/test/std/input.output/iostream.format/output.streams/ostream.assign/move_assign.pass.cpp
    M libcxx/test/std/input.output/iostream.format/output.streams/ostream.cons/move.pass.cpp
    M libcxx/test/std/input.output/iostreams.base/is_error_code_enum_io_errc.pass.cpp
    M libcxx/test/std/input.output/string.streams/istringstream/istringstream.assign/move.pass.cpp
    M libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/move.pass.cpp
    M libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.assign/move.pass.cpp
    M libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/move.pass.cpp
    M libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/move.pass.cpp
    M libcxx/test/std/input.output/string.streams/stringstream.cons/move.pass.cpp
    M libcxx/test/std/input.output/string.streams/stringstream.cons/stringstream.assign/move.pass.cpp
    M libcxx/test/std/strings/basic.string/string.nonmembers/string.io/get_line_delim_rv.pass.cpp
    M libcxx/test/std/strings/basic.string/string.nonmembers/string.io/get_line_rv.pass.cpp

  Log Message:
  -----------
  [libc++] Remove some _LIBCPP_CXX03_LANG from iostreams headers.

With the STL containers, I didn't enable move operations in C++03 mode
because that would change the overload resolution for things that today
are copy operations. With iostreams, though, the copy operations aren't
present at all, and so I see no problem with enabling move operations
even in (Clang's greatly extended) C++03 mode.

Clang's C++03 mode does not support delegating constructors.

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




More information about the All-commits mailing list