mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 22:36:06 +00:00

This PR deprecates `<ccomplex>`, `<cstdbool>`, `<ctgmath>`, and `<ciso646>` in C++17 and "removes" them in C++20 by special deprecation warnings. `<cstdalign>` is previously missing. This PR also tries to add them, and then deprecates and "removes" `<cstdalign>`. Papers: - https://wg21.link/P0063R3 - https://wg21.link/P0619R4 Closes #99985. --------- Co-authored-by: Louis Dionne <ldionne.2@gmail.com>
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef _LIBCPP_CTGMATH
|
|
#define _LIBCPP_CTGMATH
|
|
|
|
/*
|
|
ctgmath synopsis
|
|
|
|
#include <ccomplex>
|
|
#include <cmath>
|
|
|
|
*/
|
|
|
|
#include <cmath>
|
|
#include <complex>
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
# pragma GCC system_header
|
|
#endif
|
|
|
|
#if _LIBCPP_STD_VER >= 20
|
|
|
|
using __standard_header_ctgmath _LIBCPP_DEPRECATED_("removed in C++20. Include <cmath> and <complex> instead.") = void;
|
|
using __use_standard_header_ctgmath = __standard_header_ctgmath;
|
|
|
|
#elif _LIBCPP_STD_VER >= 17
|
|
|
|
using __standard_header_ctgmath _LIBCPP_DEPRECATED_("Include <cmath> and <complex> instead.") = void;
|
|
using __use_standard_header_ctgmath = __standard_header_ctgmath;
|
|
|
|
#endif
|
|
|
|
#endif // _LIBCPP_CTGMATH
|