diff options
| author | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2022-02-11 13:00:39 -0500 |
|---|---|---|
| committer | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2022-02-15 13:00:46 -0500 |
| commit | bbb0f2c759a16f2fb4e1d74795b790cf0c170620 (patch) | |
| tree | d2107a59dba78bc403e61eb0749d41c5baf4654f /libcxx/src/memory.cpp | |
| parent | 987c7f407d1414a023f03eb788bb97667b479f27 (diff) | |
[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
Diffstat (limited to 'libcxx/src/memory.cpp')
| -rw-r--r-- | libcxx/src/memory.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libcxx/src/memory.cpp b/libcxx/src/memory.cpp index e998e97b6527..1b8c6b7e80fc 100644 --- a/libcxx/src/memory.cpp +++ b/libcxx/src/memory.cpp @@ -6,14 +6,16 @@ // //===----------------------------------------------------------------------===// -#include "memory" +#include <memory> + #ifndef _LIBCPP_HAS_NO_THREADS -# include "mutex" -# include "thread" -# if defined(__ELF__) && defined(_LIBCPP_LINK_PTHREAD_LIB) -# pragma comment(lib, "pthread") -# endif +# include <mutex> +# include <thread> +# if defined(__ELF__) && defined(_LIBCPP_LINK_PTHREAD_LIB) +# pragma comment(lib, "pthread") +# endif #endif + #include "include/atomic_support.h" _LIBCPP_BEGIN_NAMESPACE_STD |
