mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-08-05 16:25:30 +00:00
Allow blank Doxygen-style comments. Patch by mball@google.com.
This commit is contained in:
Vendored
+3
@@ -1736,9 +1736,12 @@ def CheckSpacing(filename, clean_lines, linenum, error):
|
||||
# but some lines are exceptions -- e.g. if they're big
|
||||
# comment delimiters like:
|
||||
# //----------------------------------------------------------
|
||||
# or are an empty C++ style Doxygen comment, like:
|
||||
# ///
|
||||
# or they begin with multiple slashes followed by a space:
|
||||
# //////// Header comment
|
||||
match = (Search(r'[=/-]{4,}\s*$', line[commentend:]) or
|
||||
Search(r'^/$', line[commentend:]) or
|
||||
Search(r'^/+ ', line[commentend:]))
|
||||
if not match:
|
||||
error(filename, linenum, 'whitespace/comments', 4,
|
||||
|
||||
Reference in New Issue
Block a user