diff --git a/libcxx/include/__bits b/libcxx/include/__bits --- a/libcxx/include/__bits +++ b/libcxx/include/__bits @@ -142,4 +142,4 @@ _LIBCPP_POP_MACROS -#endif // _LIBCPP__BITS +#endif // _LIBCPP___BITS diff --git a/libcxx/include/__config b/libcxx/include/__config --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -1421,8 +1421,6 @@ # endif // defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_BUILDING_LIBRARY) #endif // _LIBCPP_NO_AUTO_LINK -#define _LIBCPP_UNUSED_VAR(x) ((void)(x)) - // Configures the fopen close-on-exec mode character, if any. This string will // be appended to any mode string used by fstream for fopen/fdopen. // diff --git a/libcxx/include/__node_handle b/libcxx/include/__node_handle --- a/libcxx/include/__node_handle +++ b/libcxx/include/__node_handle @@ -205,4 +205,4 @@ _LIBCPP_END_NAMESPACE_STD _LIBCPP_POP_MACROS -#endif +#endif // _LIBCPP___NODE_HANDLE diff --git a/libcxx/include/experimental/__config b/libcxx/include/experimental/__config --- a/libcxx/include/experimental/__config +++ b/libcxx/include/experimental/__config @@ -32,10 +32,6 @@ #define _LIBCPP_END_NAMESPACE_LFTS_PMR _LIBCPP_END_NAMESPACE_LFTS } #define _VSTD_LFTS_PMR _VSTD_LFTS::pmr -#define _LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS _LIBCPP_BEGIN_NAMESPACE_STD \ - namespace chrono { namespace experimental { inline namespace fundamentals_v1 { -#define _LIBCPP_END_NAMESPACE_CHRONO_LFTS _LIBCPP_END_NAMESPACE_STD } } } - #if defined(_LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM) # define _LIBCPP_DEPRECATED_EXPERIMENTAL_FILESYSTEM /* nothing */ #else diff --git a/libcxx/include/locale b/libcxx/include/locale --- a/libcxx/include/locale +++ b/libcxx/include/locale @@ -3572,7 +3572,7 @@ __cat = static_cast((static_cast(__cat) >> 1)); return __cat; #else // !_LIBCPP_HAS_CATOPEN - _LIBCPP_UNUSED_VAR(__nm); + (void)__nm; return -1; #endif // _LIBCPP_HAS_CATOPEN } @@ -3596,9 +3596,9 @@ __n, __n + _VSTD::strlen(__n)); return __w; #else // !_LIBCPP_HAS_CATOPEN - _LIBCPP_UNUSED_VAR(__c); - _LIBCPP_UNUSED_VAR(__set); - _LIBCPP_UNUSED_VAR(__msgid); + (void)__c; + (void)__set; + (void)__msgid; return __dflt; #endif // _LIBCPP_HAS_CATOPEN } @@ -3613,7 +3613,7 @@ nl_catd __cat = (nl_catd)__c; catclose(__cat); #else // !_LIBCPP_HAS_CATOPEN - _LIBCPP_UNUSED_VAR(__c); + (void)__c; #endif // _LIBCPP_HAS_CATOPEN } diff --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map --- a/libcxx/include/unordered_map +++ b/libcxx/include/unordered_map @@ -1780,7 +1780,7 @@ return __r.first->second; } -#endif // _LIBCPP_CXX03_MODE +#endif // _LIBCPP_CXX03_LANG template _Tp& diff --git a/libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp b/libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp --- a/libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp +++ b/libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp @@ -12,7 +12,7 @@ // class auto_ptr; // // In C++17, auto_ptr has been removed. -// However, for backwards compatibility, if _LIBCPP_NO_REMOVE_AUTOPTR +// However, for backwards compatibility, if _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR // is defined before including , then auto_ptr will be restored. // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR diff --git a/libcxx/test/std/containers/sequences/list/list.capacity/resize_size.pass.cpp b/libcxx/test/std/containers/sequences/list/list.capacity/resize_size.pass.cpp --- a/libcxx/test/std/containers/sequences/list/list.capacity/resize_size.pass.cpp +++ b/libcxx/test/std/containers/sequences/list/list.capacity/resize_size.pass.cpp @@ -33,7 +33,6 @@ assert(l.front() == 2); assert(l.back() == 0); } -#ifdef __LIBCPP_MOVE { std::list l(10); l.resize(5); @@ -46,7 +45,6 @@ assert(l.size() == 20); assert(std::distance(l.begin(), l.end()) == 20); } -#endif // __LIBCPP_MOVE #if TEST_STD_VER >= 11 { std::list> l(5, 2); @@ -63,7 +61,6 @@ assert(l.front() == 2); assert(l.back() == 0); } -#ifdef __LIBCPP_MOVE { std::list> l(10); l.resize(5); @@ -76,7 +73,6 @@ assert(l.size() == 20); assert(std::distance(l.begin(), l.end()) == 20); } -#endif // __LIBCPP_MOVE #endif return 0;