From c5db77ed501402965ff47ad3a4462aa79c674bf6 Mon Sep 17 00:00:00 2001 From: Keith OHara Date: Sun, 31 Jul 2011 21:11:17 -0700 Subject: [PATCH] scripts/auxiliar/fixcc.py: remove annoyances Don't touch an operator that lies alone on a line Let the C++ nit-picking rules see the open double quote of strings --- scripts/auxiliar/fixcc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/auxiliar/fixcc.py b/scripts/auxiliar/fixcc.py index ca7806fe58..4449a45b47 100755 --- a/scripts/auxiliar/fixcc.py +++ b/scripts/auxiliar/fixcc.py @@ -67,7 +67,7 @@ rules = { ('([\w\(\)\]]) +(&&|\|\||<=|>=|!=|\|=|==|\+=|-=|\*=|/=|\?|<|>|\+|-|=|/|:|&|\||\*) +([\w\(\)])', '\\1 \\2 \\3'), # trailing operator, but don't un-trail close angle-braces > nor pointer *, and not before a preprocessor line - (' (::|&&|\|\||<=|>=|!=|\|=|==|\+=|-=|\*=|/=|\?|<|\+|-|=|/|:|&XXX|\||\*XXX) *\n( *)([^\s#])', '\n\\2\\1 \\3'), + ('(?=|!=|\|=|==|\+=|-=|\*=|/=|\?|<|\+|-|=|/|:|&XXX|\||\*XXX) *\n( *)([^\s#])', '\n\\2\\1 \\3'), # space after `operator' ('(\Woperator) *([^\w\s])', '\\1 \\2'), # trailing parenthesis open @@ -133,9 +133,10 @@ snippet_res = { 'string': r'''(?x) + " # leave the leading " character visible to CXX rules (?P (?P - "([^"\n]|\\")*"))''', + ([^"\n]|\\")*"))''', 'char': r'''(?x) -- 2.39.2