Skip to content
Permalink
Browse files

Prepare commit ensures empty line before doxygen block

  • Loading branch information
nyalldawson committed Nov 7, 2016
1 parent fd15090 commit 3b30701780c509e120532b43f49b1b14a7b0f975
Showing with 31 additions and 0 deletions.
  1. +1 −0 scripts/astyle.sh
  2. +29 −0 scripts/doxygen_space.pl
  3. +1 −0 scripts/remove_temporary_files.sh
@@ -65,6 +65,7 @@ astyleit() {
modified=$1.unify_includes_modified
cp "$1" "$modified"
scripts/unify_includes.pl "$modified"
scripts/doxygen_space.pl "$modified"
diff "$1" "$modified" >/dev/null || mv "$modified" "$1"
rm -f "$modified"
}
@@ -0,0 +1,29 @@
#!/usr/bin/perl -0 -i.sortinc -n
###########################################################################
# doxygen_space.pl
# ---------------------
# begin : October 2016
# copyright : (C) 2016 by Nyall Dawson
# email : nyall dot dawson at gmail dot com
#
###########################################################################
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
###########################################################################

# adapted from scripts/sort_includes.sh

# this is slurped in whole-file mode, as opposed to unify_incudes.pl
# which slurps in per-line mode

use strict;
use warnings;

# Space around doxygen start blocks (force blank line before /**)
s#(?<!\n)(\n\h*\/\*\*(?!\*))#\n$1#g;

print;
@@ -24,6 +24,7 @@ find . \
-name "*.orig" \
-o -name "*.prepare" \
-o -name "*.sortinc" \
-o -name "*.unify_includes_modified" \
-o -name "*.nocopyright" \
-o -name "astyle*.diff" \
-o -name "sha-*.diff" \

0 comments on commit 3b30701

Please sign in to comment.
You can’t perform that action at this time.