File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ astyleit() {
6565 modified=$1 .unify_includes_modified
6666 cp " $1 " " $modified "
6767 scripts/unify_includes.pl " $modified "
68+ scripts/doxygen_space.pl " $modified "
6869 diff " $1 " " $modified " > /dev/null || mv " $modified " " $1 "
6970 rm -f " $modified "
7071}
Original file line number Diff line number Diff line change 1+ # !/usr/bin/perl -0 -i.sortinc -n
2+ # ##########################################################################
3+ # doxygen_space.pl
4+ # ---------------------
5+ # begin : October 2016
6+ # copyright : (C) 2016 by Nyall Dawson
7+ # email : nyall dot dawson at gmail dot com
8+ #
9+ # ##########################################################################
10+ # #
11+ # This program is free software; you can redistribute it and/or modify #
12+ # it under the terms of the GNU General Public License as published by #
13+ # the Free Software Foundation; either version 2 of the License, or #
14+ # (at your option) any later version. #
15+ # #
16+ # ##########################################################################
17+
18+ # adapted from scripts/sort_includes.sh
19+
20+ # this is slurped in whole-file mode, as opposed to unify_incudes.pl
21+ # which slurps in per-line mode
22+
23+ use strict;
24+ use warnings;
25+
26+ # Space around doxygen start blocks (force blank line before /**)
27+ s # (?<!\n )(\n\h *\/\*\* (?!\* ))# \n $1 # g ;
28+
29+ print ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ find . \
2424 -name " *.orig" \
2525 -o -name " *.prepare" \
2626 -o -name " *.sortinc" \
27+ -o -name " *.unify_includes_modified" \
2728 -o -name " *.nocopyright" \
2829 -o -name " astyle*.diff" \
2930 -o -name " sha-*.diff" \
You can’t perform that action at this time.
0 commit comments