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() {
65
65
modified=$1 .unify_includes_modified
66
66
cp " $1 " " $modified "
67
67
scripts/unify_includes.pl " $modified "
68
+ scripts/doxygen_space.pl " $modified "
68
69
diff " $1 " " $modified " > /dev/null || mv " $modified " " $1 "
69
70
rm -f " $modified "
70
71
}
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 . \
24
24
-name " *.orig" \
25
25
-o -name " *.prepare" \
26
26
-o -name " *.sortinc" \
27
+ -o -name " *.unify_includes_modified" \
27
28
-o -name " *.nocopyright" \
28
29
-o -name " astyle*.diff" \
29
30
-o -name " sha-*.diff" \
You can’t perform that action at this time.
0 commit comments