From a1cce83d3c7a0b3b9f63db837db521e0b4e6a31f Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 6 Jan 2017 01:52:36 +0300 Subject: clint: Add more exceptions to “space after a cast” rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python does not allow branching here, complaining that look-behind is not fixed-width. --- src/clint.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/clint.py b/src/clint.py index efc5f18378..0470f824fa 100755 --- a/src/clint.py +++ b/src/clint.py @@ -2516,6 +2516,10 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error): cast_line = re.sub(r'^# *define +\w+\([^)]*\)', '', line) match = Search(r'(?