summaryrefslogtreecommitdiff
path: root/.arclint
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2015-12-04 13:25:26 +0100
committerBen Gamari <ben@smart-cactus.org>2015-12-04 17:31:55 +0100
commit901cab10609dc9795e57163834512373530fc4a5 (patch)
treee327950c0dce4d0c5aac3e5d49d18fc343150f9b /.arclint
parent020375d1e723339a95b86d0d3b8a8214b1cc144a (diff)
downloadhaskell-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--.arclint5
1 files changed, 5 insertions, 0 deletions
diff --git a/.arclint b/.arclint
index 1b135075d0..ef43856bda 100644
--- a/.arclint
+++ b/.arclint
@@ -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"
}
},