diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-04-13 22:04:48 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-04-13 22:05:28 -0400 |
commit | 8a54a4ff5565a2130f5c122ce5368446bfb2f22e (patch) | |
tree | 1968471c6aab147edd31f41e99f79603c9f2092c /.arc-linters | |
parent | 13131ce9165b4e5e5193dc381f6f3d021e53792f (diff) | |
download | haskell-8a54a4ff5565a2130f5c122ce5368446bfb2f22e.tar.gz |
linters/cpp: Catch #ifndef
Diffstat (limited to '.arc-linters')
-rwxr-xr-x | .arc-linters/check-cpp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.arc-linters/check-cpp.py b/.arc-linters/check-cpp.py index 71154883bd..1bbcbbdfb6 100755 --- a/.arc-linters/check-cpp.py +++ b/.arc-linters/check-cpp.py @@ -72,6 +72,8 @@ linters = [ message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(br'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), + RegexpLinter(br'#ifndef\s+', + message='`#if !defined(x)` is preferred to `#ifndef x`'), ] if __name__ == '__main__': |