Skip to content

Commit

Permalink
[libc++] Move __memory/utilities.h to __memory/allocation_guard.h
Browse files Browse the repository at this point in the history
This matches the granularity of other headers that were split off of <__memory>.
  • Loading branch information
ldionne committed Apr 14, 2021
1 parent f992cfb commit e98060f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libcxx/include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ set(files
__libcpp_version
__locale
__memory/addressof.h
__memory/allocation_guard.h
__memory/allocator.h
__memory/allocator_traits.h
__memory/auto_ptr.h
Expand All @@ -26,7 +27,6 @@ set(files
__memory/temporary_buffer.h
__memory/uninitialized_algorithms.h
__memory/unique_ptr.h
__memory/utilities.h
__mutex_base
__node_handle
__nullptr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef _LIBCPP___MEMORY_UTILITIES_H
#define _LIBCPP___MEMORY_UTILITIES_H
#ifndef _LIBCPP___MEMORY_ALLOCATION_GUARD_H
#define _LIBCPP___MEMORY_ALLOCATION_GUARD_H

#include <__config>
#include <__memory/allocator_traits.h>
Expand Down Expand Up @@ -85,4 +85,4 @@ _LIBCPP_END_NAMESPACE_STD

_LIBCPP_POP_MACROS

#endif // _LIBCPP___MEMORY_UTILITIES_H
#endif // _LIBCPP___MEMORY_ALLOCATION_GUARD_H
2 changes: 1 addition & 1 deletion libcxx/include/__memory/shared_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
#include <__availability>
#include <__functional_base> // std::less, std::binary_function
#include <__memory/addressof.h>
#include <__memory/allocation_guard.h>
#include <__memory/allocator.h>
#include <__memory/allocator_traits.h>
#include <__memory/auto_ptr.h>
#include <__memory/compressed_pair.h>
#include <__memory/pointer_traits.h>
#include <__memory/unique_ptr.h>
#include <__memory/utilities.h> // __allocation_guard
#include <cstddef>
#include <cstdlib> // abort
#include <iosfwd>
Expand Down
2 changes: 1 addition & 1 deletion libcxx/include/memory
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ void* align(size_t alignment, size_t size, void*& ptr, size_t& space);
#include <stdexcept>
#include <cstring>
#include <__memory/addressof.h>
#include <__memory/allocation_guard.h>
#include <__memory/allocator.h>
#include <__memory/allocator_traits.h>
#include <__memory/auto_ptr.h>
Expand All @@ -691,7 +692,6 @@ void* align(size_t alignment, size_t size, void*& ptr, size_t& space);
#include <__memory/temporary_buffer.h>
#include <__memory/uninitialized_algorithms.h>
#include <__memory/unique_ptr.h>
#include <__memory/utilities.h>
#include <version>

#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Expand Down

0 comments on commit e98060f

Please sign in to comment.