]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
checkSpace: permit wide lines for LCOV_EXCL
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 21:24:36 +0000 (16:24 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 21:25:56 +0000 (16:25 -0500)
We're telling clang-format that a line with LCOV_EXCL must not be
split -- that's fine, but we shouldn't complain when it indents it.

scripts/maint/checkSpace.pl

index 27615f910cc0e00af8661694450d011e48f2b8bc..857ce6f6f107f7f3e42681f73acc65a5baaa6b12 100755 (executable)
@@ -130,7 +130,7 @@ for my $fn (@ARGV) {
         ## Terminals are still 80 columns wide in my world.  I refuse to
         ## accept double-line lines.
         #   (Don't make lines wider than 80 characters, including newline.)
-        if (/^.{80}/) {
+        if (/^.{80}/ and not /LCOV_EXCL/) {
             msg "Wide:$fn:$.\n";
         }
         ### Juju to skip over comments and strings, since the tests