]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Better document early deprecation. 11750/head
authorDavid Wells <drwells@email.unc.edu>
Sun, 14 Feb 2021 23:34:07 +0000 (18:34 -0500)
committerDavid Wells <drwells@email.unc.edu>
Mon, 15 Feb 2021 02:13:59 +0000 (21:13 -0500)
cmake/checks/check_01_cxx_features.cmake
doc/news/changes/minor/20210105DanielArndt [new file with mode: 0644]
include/deal.II/base/config.h.in

index 53a43942b1fce5334854a9c79701c5b6bc219e39..7e395b70df90a726e704802a51098671e00cd9fa 100644 (file)
@@ -28,6 +28,7 @@
 #   DEAL_II_HAVE_CXX17_LEGENDRE_FUNCTIONS
 #   DEAL_II_FALLTHROUGH
 #   DEAL_II_DEPRECATED
+#   DEAL_II_DEPRECATED_EARLY
 #   DEAL_II_CONSTEXPR
 #
 
diff --git a/doc/news/changes/minor/20210105DanielArndt b/doc/news/changes/minor/20210105DanielArndt
new file mode 100644 (file)
index 0000000..494e3bb
--- /dev/null
@@ -0,0 +1,12 @@
+New: The policy under which things in deal.II are deprecated has changed.
+Deprecated features are now first marked with DEAL_II_DEPRECATED_EARLY until the
+next release of the library, at which point they will be remarked with
+DEAL_II_DEPRECATED. By default, things marked with DEAL_II_DEPRECATED_EARLY do
+not print deprecation warnings - this is controlled with the
+DEAL_II_EARLY_DEPRECATIONS CMake configuration option. This change was made so
+that users can use multiple recent checkouts of the development branch without
+needing to address the problem that some will print deprecation warnings and
+others do not, and also so that new deprecation warnings do not appear outside
+of the release period.
+<br>
+(Daniel Arndt, 2021/01/05)
index fba8f32f6909f4a5fe91c7d40ca99bfb90bbaed8..1d46ca7b2cffa07a066b4fc48bef31ac6ce0f0bf 100644 (file)
 #cmakedefine DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS
 #cmakedefine DEAL_II_CXX14_CONSTEXPR_BUG
 
+/**
+ * Macro indicating that the current feature will be removed in a future
+ * release.
+ */
 #cmakedefine DEAL_II_DEPRECATED @DEAL_II_DEPRECATED@
+
+/**
+ * Same as above, but for things that have been deprecated during the current
+ * development cycle. By default, no warnings are printed for a feature
+ * deprecated prior to a release until <em>after</em> that release has been
+ * finalized - see DEAL_II_EARLY_DEPRECATIONS for more information.
+ */
 #cmakedefine DEAL_II_DEPRECATED_EARLY @DEAL_II_DEPRECATED_EARLY@
 #cmakedefine DEAL_II_FALLTHROUGH @DEAL_II_FALLTHROUGH@
 #cmakedefine DEAL_II_CONSTEXPR @DEAL_II_CONSTEXPR@

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.