Updated 'support/cpplint.py' to allow 'operator<<'.

Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/888e56e2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/888e56e2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/888e56e2

Branch: refs/heads/master
Commit: 888e56e23a70f1b028d4f272641e57f9ba6de3b8
Parents: 5641325
Author: Michael Park <[email protected]>
Authored: Sun Aug 9 20:50:06 2015 -0400
Committer: Michael Park <[email protected]>
Committed: Sun Aug 9 20:58:27 2015 -0400

----------------------------------------------------------------------
 support/cpplint.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/888e56e2/support/cpplint.py
----------------------------------------------------------------------
diff --git a/support/cpplint.py b/support/cpplint.py
index bfd3390..6890e27 100644
--- a/support/cpplint.py
+++ b/support/cpplint.py
@@ -2692,11 +2692,11 @@ def CheckSpacing(filename, clean_lines, linenum, 
nesting_state, error):
           'Missing spaces around %s' % match.group(1))
   # We allow no-spaces around << when used like this: 10<<20, but
   # not otherwise (particularly, not when used as streams)
-  # Also ignore using ns::operator<<;
+  # Also ignore 'operator<<'.
   match = Search(r'(operator|\S)(?:L|UL|ULL|l|ul|ull)?<<(\S)', line)
   if (match and
       not (match.group(1).isdigit() and match.group(2).isdigit()) and
-      not (match.group(1) == 'operator' and match.group(2) == ';')):
+      not (match.group(1) == 'operator')):
     error(filename, linenum, 'whitespace/operators', 3,
           'Missing spaces around <<')
   elif not Match(r'#.*include', line):

Reply via email to