From 901cab10609dc9795e57163834512373530fc4a5 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 4 Dec 2015 13:25:26 +0100 Subject: 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. --- .arclint | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.arclint') 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" } }, -- cgit v1.2.1