[commit: ghc] master: linters: Check for WARN macro with space separating it from its paren (6d2f6df)

git at git.haskell.org git at git.haskell.org
Sat Dec 22 05:54:25 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6d2f6df3543bc287e59151e823b7a62c245c27b0/ghc

>---------------------------------------------------------------

commit 6d2f6df3543bc287e59151e823b7a62c245c27b0
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Dec 22 00:53:45 2018 -0500

    linters: Check for WARN macro with space separating it from its paren


>---------------------------------------------------------------

6d2f6df3543bc287e59151e823b7a62c245c27b0
 .gitlab/linters/check-cpp.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitlab/linters/check-cpp.py b/.gitlab/linters/check-cpp.py
index 144ab7d..c894513 100755
--- a/.gitlab/linters/check-cpp.py
+++ b/.gitlab/linters/check-cpp.py
@@ -6,6 +6,8 @@
 from linter import run_linters, RegexpLinter
 
 linters = [
+    RegexpLinter(r'WARN\s+\(',
+                 message='CPP macros should not have a space between the macro name and their argument list'),
     RegexpLinter(r'ASSERT\s+\(',
                  message='CPP macros should not have a space between the macro name and their argument list'),
     RegexpLinter(r'ASSERT2\s+\(',



More information about the ghc-commits mailing list