From 42917be1e31c2cb042cb9e947b621a77d23bfe70 Mon Sep 17 00:00:00 2001 From: Thibault Kruse Date: Sat, 23 Apr 2016 15:14:45 +0200 Subject: [PATCH] Quick hack for QT --- cpplint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpplint.py b/cpplint.py index ccc25d4..b242b0c 100755 --- a/cpplint.py +++ b/cpplint.py @@ -4410,7 +4410,7 @@ def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state, # if(match($0, " <<")) complain = 0; # if(match(prev, " +for \\(")) complain = 0; # if(prevodd && match(prevprev, " +for \\(")) complain = 0; - scope_or_label_pattern = r'\s*\w+\s*:\s*\\?$' + scope_or_label_pattern = r'\s*(\w+|private slots)\s*:\s*\\?$' classinfo = nesting_state.InnermostClass() initial_spaces = 0 cleansed_line = clean_lines.elided[linenum]