[all-commits] [llvm/llvm-project] bbb0f2: [libc++] Replace `#include ""` with `<>` in libcxx...

Quuxplusone via All-commits all-commits at lists.llvm.org
Tue Feb 15 10:01:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bbb0f2c759a16f2fb4e1d74795b790cf0c170620
      https://github.com/llvm/llvm-project/commit/bbb0f2c759a16f2fb4e1d74795b790cf0c170620
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M libcxx/src/algorithm.cpp
    M libcxx/src/any.cpp
    M libcxx/src/bind.cpp
    M libcxx/src/charconv.cpp
    M libcxx/src/chrono.cpp
    M libcxx/src/condition_variable.cpp
    M libcxx/src/condition_variable_destructor.cpp
    M libcxx/src/debug.cpp
    M libcxx/src/exception.cpp
    M libcxx/src/experimental/memory_resource.cpp
    M libcxx/src/filesystem/directory_iterator.cpp
    M libcxx/src/filesystem/filesystem_common.h
    M libcxx/src/filesystem/int128_builtins.cpp
    M libcxx/src/filesystem/operations.cpp
    M libcxx/src/filesystem/posix_compat.h
    M libcxx/src/format.cpp
    M libcxx/src/functional.cpp
    M libcxx/src/future.cpp
    M libcxx/src/hash.cpp
    M libcxx/src/include/atomic_support.h
    M libcxx/src/include/ryu/d2fixed.h
    M libcxx/src/include/ryu/d2fixed_full_table.h
    M libcxx/src/include/ryu/d2s.h
    M libcxx/src/include/ryu/d2s_full_table.h
    M libcxx/src/include/ryu/d2s_intrinsics.h
    M libcxx/src/include/ryu/digit_table.h
    M libcxx/src/include/ryu/f2s.h
    M libcxx/src/include/ryu/ryu.h
    M libcxx/src/include/to_chars_floating_point.h
    M libcxx/src/ios.cpp
    M libcxx/src/ios.instantiations.cpp
    M libcxx/src/iostream.cpp
    M libcxx/src/legacy_pointer_safety.cpp
    M libcxx/src/locale.cpp
    M libcxx/src/memory.cpp
    M libcxx/src/mutex.cpp
    M libcxx/src/mutex_destructor.cpp
    M libcxx/src/new.cpp
    M libcxx/src/optional.cpp
    M libcxx/src/random.cpp
    M libcxx/src/random_shuffle.cpp
    M libcxx/src/regex.cpp
    M libcxx/src/ryu/d2fixed.cpp
    M libcxx/src/ryu/d2s.cpp
    M libcxx/src/ryu/f2s.cpp
    M libcxx/src/shared_mutex.cpp
    M libcxx/src/stdexcept.cpp
    M libcxx/src/string.cpp
    M libcxx/src/strstream.cpp
    M libcxx/src/system_error.cpp
    M libcxx/src/thread.cpp
    M libcxx/src/typeinfo.cpp
    M libcxx/src/utility.cpp
    M libcxx/src/valarray.cpp
    M libcxx/src/variant.cpp
    M libcxx/src/vector.cpp

  Log Message:
  -----------
  [libc++] Replace `#include ""` with `<>` in libcxx/src/. NFCI.

Our best guess is that the two syntaxes should have exactly equivalent
effects, so, let's be consistent with what we do in libcxx/include/.

I've left `#include "include/x.h"` and `#include "../y.h"` alone
because I'm less sure that they're interchangeable, and they aren't
inconsistent with libcxx/include/ because libcxx/include/ never
does that kind of thing.

Also, use the `_LIBCPP_PUSH_MACROS/POP_MACROS` dance for `<__undef_macros>`,
even though it's technically unnecessary in a standalone .cpp file,
just so we have consistently one way to do it.

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




More information about the All-commits mailing list