Merge 98f4c454114532d9f42b015362d5806af1c7eb08 into 8487c083e1faecb1259be8a8873618cfdb69d33d

This commit is contained in:
Clemens Backes 2024-02-27 16:46:46 -07:00 committed by GitHub
commit 88541b2e68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
cpplint/cpplint.py vendored
View File

@ -2653,7 +2653,7 @@ class NestingState(object):
# }; # };
class_decl_match = Match( class_decl_match = Match(
r'^(\s*(?:template\s*<[\w\s<>,:]*>\s*)?' r'^(\s*(?:template\s*<[\w\s<>,:]*>\s*)?'
r'(class|struct)\s+(?:[A-Z_]+\s+)*(\w+(?:::\w+)*))' r'(class|struct)\s+(?:[A-Z0-9_]+\s+)*(\w+(?:::\w+)*))'
r'(.*)$', line) r'(.*)$', line)
if (class_decl_match and if (class_decl_match and
(not self.stack or self.stack[-1].open_parentheses == 0)): (not self.stack or self.stack[-1].open_parentheses == 0)):