Index: libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp =================================================================== --- libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp +++ libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp @@ -42,9 +42,7 @@ #include <__config> // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated int main(int, char**) { return 0; } Index: libcxx/test/libcxx/clang_tidy.sh.cpp =================================================================== --- libcxx/test/libcxx/clang_tidy.sh.cpp +++ libcxx/test/libcxx/clang_tidy.sh.cpp @@ -16,9 +16,7 @@ // RUN: %{clang-tidy} %s --warnings-as-errors=* -header-filter=.* --config-file=%S/../../.clang-tidy -- -Wweak-vtables %{compile_flags} -fno-modules // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated /* BEGIN-SCRIPT Index: libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp =================================================================== --- libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp +++ libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp @@ -9,9 +9,7 @@ // UNSUPPORTED: modules-build // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated #include #include Index: libcxx/test/libcxx/containers/gnu_cxx/hash_map_name_lookup.pass.cpp =================================================================== --- libcxx/test/libcxx/containers/gnu_cxx/hash_map_name_lookup.pass.cpp +++ libcxx/test/libcxx/containers/gnu_cxx/hash_map_name_lookup.pass.cpp @@ -16,9 +16,7 @@ struct unique_ptr; // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated #include Index: libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp =================================================================== --- libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp +++ libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp @@ -9,9 +9,7 @@ // UNSUPPORTED: modules-build // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated #include #include Index: libcxx/test/libcxx/containers/gnu_cxx/hash_set_name_lookup.pass.cpp =================================================================== --- libcxx/test/libcxx/containers/gnu_cxx/hash_set_name_lookup.pass.cpp +++ libcxx/test/libcxx/containers/gnu_cxx/hash_set_name_lookup.pass.cpp @@ -16,9 +16,7 @@ struct unique_ptr; // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated #include Index: libcxx/test/libcxx/double_include.sh.cpp =================================================================== --- libcxx/test/libcxx/double_include.sh.cpp +++ libcxx/test/libcxx/double_include.sh.cpp @@ -17,9 +17,7 @@ // XFAIL: LIBCXX-AIX-FIXME // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated /* BEGIN-SCRIPT Index: libcxx/test/libcxx/extensions/hash/specializations.pass.cpp =================================================================== --- libcxx/test/libcxx/extensions/hash/specializations.pass.cpp +++ libcxx/test/libcxx/extensions/hash/specializations.pass.cpp @@ -9,7 +9,8 @@ // UNSUPPORTED: modules-build // NOTE: Undefined __DEPRECATED to prevent this test from failing with -Werror -#undef __DEPRECATED +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated + #include #include #include Index: libcxx/test/libcxx/min_max_macros.compile.pass.cpp =================================================================== --- libcxx/test/libcxx/min_max_macros.compile.pass.cpp +++ libcxx/test/libcxx/min_max_macros.compile.pass.cpp @@ -13,9 +13,7 @@ // XFAIL: LIBCXX-AIX-FIXME // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated #define TEST_MACROS() static_assert(min() == true && max() == true, "") #define min() true Index: libcxx/test/libcxx/modules_include.sh.cpp =================================================================== --- libcxx/test/libcxx/modules_include.sh.cpp +++ libcxx/test/libcxx/modules_include.sh.cpp @@ -24,9 +24,7 @@ // XFAIL: LIBCXX-ANDROID-FIXME // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated #include <__config> Index: libcxx/test/libcxx/nasty_macros.compile.pass.cpp =================================================================== --- libcxx/test/libcxx/nasty_macros.compile.pass.cpp +++ libcxx/test/libcxx/nasty_macros.compile.pass.cpp @@ -13,9 +13,7 @@ // XFAIL: LIBCXX-AIX-FIXME // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated #define NASTY_MACRO This should not be expanded!!! Index: libcxx/test/libcxx/no_assert_include.compile.pass.cpp =================================================================== --- libcxx/test/libcxx/no_assert_include.compile.pass.cpp +++ libcxx/test/libcxx/no_assert_include.compile.pass.cpp @@ -13,9 +13,7 @@ // XFAIL: LIBCXX-AIX-FIXME // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated /* BEGIN-SCRIPT Index: libcxx/test/libcxx/transitive_includes.sh.cpp =================================================================== --- libcxx/test/libcxx/transitive_includes.sh.cpp +++ libcxx/test/libcxx/transitive_includes.sh.cpp @@ -36,9 +36,7 @@ // UNSUPPORTED: transitive-includes-disabled // Prevent from generating deprecated warnings for this test. -#if defined(__DEPRECATED) -# undef __DEPRECATED -#endif +// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated /* BEGIN-SCRIPT