Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters