Commit 4157ba1c authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Update cpplint.

da90c53e was incorrect; the size()
functions take almost anything, not just word characters, and
std::extent() uses brackets.

BUG=837308

Change-Id: I6ee75a5da7a021758bbfb0996aeaef81f2003cd9
Reviewed-on: https://chromium-review.googlesource.com/c/1401581Reviewed-by: 's avatarMarc-Antoine Ruel <maruel@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
parent 9d5b4682
......@@ -4665,9 +4665,9 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension,
if Search(r'sizeof\(.+\)', tok): continue
if Search(r'arraysize\(\w+\)', tok): continue
if Search(r'base::size\(\w+\)', tok): continue
if Search(r'std::size\(\w+\)', tok): continue
if Search(r'std::extent\(\w+\)', tok): continue
if Search(r'base::size\(.+\)', tok): continue
if Search(r'std::size\(.+\)', tok): continue
if Search(r'std::extent<.+>', tok): continue
tok = tok.lstrip('(')
tok = tok.rstrip(')')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment