Dune Core Modules (2.9.0)

deprecated.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 // SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
4 // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5 #ifndef DUNE_DEPRECATED_HH
6 #define DUNE_DEPRECATED_HH
7 
14 #ifdef DOXYGEN
32 #define DUNE_NO_DEPRECATED_BEGIN ...
38 #define DUNE_NO_DEPRECATED_END ...
39 #else
40 # if defined __clang__
41 # define DUNE_NO_DEPRECATED_BEGIN \
42  _Pragma("clang diagnostic push") \
43  _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
44 # define DUNE_NO_DEPRECATED_END _Pragma("clang diagnostic pop")
45 # elif defined __INTEL_COMPILER
46 # define DUNE_NO_DEPRECATED_BEGIN \
47  _Pragma("warning push") \
48  _Pragma("warning(disable:1478)") \
49  _Pragma("warning(disable:1786)")
50 # define DUNE_NO_DEPRECATED_END _Pragma("warning pop")
51 # elif defined __GNUC__
52 # define DUNE_NO_DEPRECATED_BEGIN \
53  _Pragma("GCC diagnostic push") \
54  _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
55 # define DUNE_NO_DEPRECATED_END _Pragma("GCC diagnostic pop")
56 # else
57 # define DUNE_NO_DEPRECATED_BEGIN /* Noop. */
58 # define DUNE_NO_DEPRECATED_END /* Noop. */
59 # endif
60 #endif
61 
63 
64 #endif
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 29, 22:29, 2024)