mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
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.
This commit is contained in:
parent
142b0e64ba
commit
3bf9a5f09f
2
cpplint/cpplint.py
vendored
2
cpplint/cpplint.py
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user