From 64d591a61d658074ee43b9e88a33bf4230889716 Mon Sep 17 00:00:00 2001 From: bern Date: Sat, 23 Apr 2016 17:28:30 +0200 Subject: [PATCH] Quick hack for QT Based on https://github.com/google/styleguide/issues/43 by bern...@plessier.net --- cpplint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpplint.py b/cpplint.py index 7ccdda0..56d0f4f 100644 --- a/cpplint.py +++ b/cpplint.py @@ -4439,7 +4439,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]