move clang-format-xs into utils

This commit is contained in:
Ailin Nemui 2021-01-06 22:22:00 +01:00
commit 7379833b53
5 changed files with 1 additions and 1 deletions

View file

@ -1,10 +0,0 @@
use strict;
use warnings;
my $doc = do { local $/; <> };
$doc =~ s{\}[ \t]*/[*] -xs- [*]/\s*}{}g;
$doc =~ s{^[ \t]*?/[*] =xs= (.*?) [*]/(\s*\{$)?}{$1}gms;
$doc =~ s{^[ \t]*?/[*] clang-format off [*]//[*] =xs= (.*?) [*]/\s?/[*] clang-format on [*]/(\s*\{$)?}{$1}gms;
print $doc;