From 3bf9a5f09f9847db3d7286898dc80c82c6f1a102 Mon Sep 17 00:00:00 2001 From: Henry Chan Date: Tue, 20 Jun 2017 16:29:17 -0700 Subject: [PATCH] Fix indentation check for access keywords No whitespace before the access keywords in class/struct declarations should be acceptable. The behavior of the check correctly reflects the comment. --- cpplint/cpplint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index 949c510..4d98078 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -2596,7 +2596,7 @@ class NestingState(object): # check if the keywords are not preceded by whitespaces. indent = access_match.group(1) if (len(indent) != classinfo.class_indent + 1 and - Match(r'^\s*$', indent)): + Match(r'^\s+$', indent)): if classinfo.is_struct: parent = 'struct ' + classinfo.name else: