From cccd2d543a670a9987d821b461b2efc11d720be2 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 31 Dec 2019 18:05:58 -0500 Subject: [PATCH] Keep the 'dealii::' in 'using namespace dealii::'. Some of our example code on the website (e.g., step-40) doesn't work since we get rid of the preceding dealii and print using namespace ::LinearAlgebraPETSc; when it should be using namespace dealii::LinearAlgebraPETSc; instead. This change keeps the 'dealii::' only in this case, which currently only occurs in step-40.cc, step-50.cc, step-55.cc, and local_integrators.h. --- doc/doxygen/scripts/filter | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/doxygen/scripts/filter b/doc/doxygen/scripts/filter index 16666a2a7a..5195da724a 100755 --- a/doc/doxygen/scripts/filter +++ b/doc/doxygen/scripts/filter @@ -60,6 +60,11 @@ while (<>) s/::dealii::(.*)\\$/::\1 \\/g; s/dealii::(.*)\\$/\1 \\/g; } + elsif (m/using namespace dealii::/) + { + # namespace declarations (see, e.g., step-40) in source code don't work + # if we cut off the 'dealii::' part, so leave it in that case. + } else { s/(::)?dealii::/::/g; -- 2.39.5