diff options
author | Ben Gamari <ben@smart-cactus.org> | 2015-12-04 13:25:26 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-04 17:31:55 +0100 |
commit | 901cab10609dc9795e57163834512373530fc4a5 (patch) | |
tree | e327950c0dce4d0c5aac3e5d49d18fc343150f9b /.arclint | |
parent | 020375d1e723339a95b86d0d3b8a8214b1cc144a (diff) | |
download | haskell-901cab10609dc9795e57163834512373530fc4a5.tar.gz |
lint: Add linter to catch uses of ASSERT macro that Clang dislikes
In particular Clang rejects uses of CPP macros where the argument list
is separated by a space from the macro name. Warn when we see ASSERT
used in this way.
Diffstat (limited to '.arclint')
-rw-r--r-- | .arclint | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -56,6 +56,11 @@ "check-binaries": { "type": "external-json", "external-json.script": "python .arc-linters/check-binaries.py" + }, + "bad-assert-clang-cpp": { + "type": "external-json", + "include": ["(\\.(l?hs|x|y\\.pp)(\\.in)?$)"], + "external-json.script": "python .arc-linters/check-cpp.py" } }, |