From: David Wells Date: Tue, 31 Dec 2019 23:05:58 +0000 (-0500) Subject: Keep the 'dealii::' in 'using namespace dealii::'. X-Git-Tag: v9.2.0-rc1~753^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9209%2Fhead;p=dealii.git 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. --- 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;